I'm looking for best way to divide my Gruntfile.js
where grunt tasks are defined.
Right now I have made it with require
and look like this:
require('./grunt_tasks/task_1')(grunt);
And task_1.js
looks like:
module.exports = function(grunt){
grunt.registerTask('task_1', [
'sub_task_1',
'sub_task_2',
'sub_task_3'
]);
};
It work nice, but I'm looking for a cleaner way. Thanks.