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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -