oskarjakiela / gulp-gulp

MIT License
6 stars 1 forks source link

When i run 2x default #3

Open sp90 opened 9 years ago

sp90 commented 9 years ago

My task looks like this:

'use strict';

var gulp = require('gulp');
var gulpGulp = require('gulp-gulp');

gulp.task('default', function() {
  return gulp.src('./app*/gulpfile.js')
    .pipe(gulpGulp({
      tasks: ['default']
    }));
});

'default' errored after 2.1 s

Error in plugin 'gulp-gulp' Message: gulp-gulp: returned 1

What can this be?

ajschlosser commented 8 years ago

@sp90 That seems like it would be an issue with your app*/gulpfile.js code. It means that the child process (in this case, your gulpfile) is exiting with a status of 1 (e.g., as in process.exit(1)), which indicates some form of error.

Edit: See https://nodejs.org/api/process.html#process_exit_codes for more information on exit codes.

@oskarjakiela Please see the linked PR -- I think that it would resolve this issue, no?