grunt-run-grunt icon indicating copy to clipboard operation
grunt-run-grunt copied to clipboard

Ignore options set to undefined or null

Open kewisch opened this issue 10 years ago • 0 comments

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')
  },
  ...
}

kewisch avatar Jan 14 '15 21:01 kewisch