gradle-gulp-plugin icon indicating copy to clipboard operation
gradle-gulp-plugin copied to clipboard

Extended Usage with Options

Open kubera opened this issue 9 years ago • 2 comments

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

kubera avatar Jul 19 '15 17:07 kubera

I'm having this issue as well.

briangoins avatar Apr 12 '16 17:04 briangoins

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"] }

d3vAdv3ntur3s avatar Sep 13 '16 11:09 d3vAdv3ntur3s