grunt-run-grunt
grunt-run-grunt copied to clipboard
Ignore options set to undefined or null
We will be using the following pattern in initConfig to pass certain options passed via commandline to the called grunt file. Doing this with the current code causes options not passed at all to be forwarded as flags. This pull request ignores null and undefined values. If you have any alternatives on how to achieve this please let me know.
run_grunt: {
gruntOptions: {
test: grunt.option('test'),
chunk: grunt.option('chunk')
},
...
}