Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ GulpRunner.prototype.run = function(tasks, options, cb) {
options.gulpfile = this.gulpfile;
tasks = util.isArray(tasks) ? tasks : [tasks];

var gulpBin = require.resolve('gulp/bin/gulp.js')
var gulpBin = options.gulpBin || require.resolve('gulp/bin/gulp.js')
var gulpOpts = [gulpBin].concat(buildOpts(tasks, options))
var gulp = child.spawn(process.execPath, gulpOpts, {
detached: true,
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ gulp.run('task', function(err) {
```
/* optional cli arguments (camelcased) */
var opts = {
gulpBin: 'path/to/proper/gulp.js', // use when multiple versions of gulp-cli is installed in subprojects
require: ['coffeescript', 'some-lib'],
tasksSimple: true,
production: true // also accepts arbitrary flags
Expand Down Expand Up @@ -64,4 +65,4 @@ gulp.on('error', function(err: Buffer) {
})

gulp.run('default')
```
```