Generalization of gruntFile