Closed pflannery closed 10 years ago
Would be nice to have the ability to put descriptions with the aliases declared in the aliases file.
Perhaps we can change this segment to something like this:
if (aliases) { for (var taskName in aliases) { var task = aliases[taskName]; if (typeof task === 'string' || Array.isArray(task)) grunt.registerTask(taskName, aliases[taskName]); else { grunt.registerTask(taskName, task.description, task.aliases); } } }
that way aliases can be like this:
{ //================ "default": [ "compile" ], //================ "compile": { description: "some description", tasks: [ "shell:someCompile" ] }, //================ "watch": [ "shell:someWatch" ] }
+1
good idea. I'll add this to the list.
Would be nice to have the ability to put descriptions with the aliases declared in the aliases file.
Perhaps we can change this segment to something like this:
that way aliases can be like this: