core(architecture): optimize grunt tasks