gradle-gulp-plugin
gradle-gulp-plugin copied to clipboard
Extended Usage with Options
This doesn't work for me:
task gulpBuildWithOpts(type: GulpTask) {
args = ["build", "arg1", "arg2"]
}
It tries to find a gulp task arg1:
[18:57:57] Task 'arg1' is not in your gulpfile
I'm having this issue as well.
Performing the following, yields just undefined
task gulpBuildWithOpts(type: GulpTask) { args = ["build", "--env production", "--buildType gradle"] }
However, performing the same directly with gulp works perfectly fine. (Using yargs )
gulp --env production --buildType gradle build
EDIT
It would appear I've been somewhat silly.... for this to work in version 0.0.13 (or any other, but not tested) you need to separate the args key & val, like so instead:
task gulpBuildWithOpts(type: GulpTask) { args = ["build", "--env", "production", "--buildType", "gradle"] }