gruntjs - Run all Grunt SubTasks except one -
i've bunch of subtasks grunt watch (e.g. grunt watch:styles, grunt watch:sprites, etc). many other tasks run grunt watch
. exclude 1 task. there way specify that? run grunt watch
subtasks except grunt watch:dist
.
i know create task , specify subtasks i'm interested on, however, if add subtask later, means i've add it, rather not way.
thanks
there might better way, doing trick now:
grunt.registertask('watch:basic', function () { delete grunt.config.data.watch.dist; grunt.task.run('watch'); });
fortunately, in case, don't have other tasks might run grunt watch:dist
, it's safe remove config, can think of other cases approach create conflicts.
Comments
Post a Comment