Generalize grunt config