srs / gradle-gulp-plugin

Gradle plugin for running Gulp tasks
70 stars 9 forks source link

Extended Usage with Options #8

Open kubera opened 9 years ago

kubera commented 9 years ago

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
briangoins commented 8 years ago

I'm having this issue as well.

d3vAdv3ntur3s commented 8 years ago

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