5

I'm using script like this:

run.js:

var gulp = global.gulp  = require('gulp');
require('./gulpfile.js');

//interaction
gulp.start('zip');

gulpfile.js:

global.gulp = global.gulp || require('gulp');

gulp.task('zip', function () {});

And start: node run.js

I need it because I need collect some data via inquirer.prompt() before task start.

Everything works, but console freeze cursor after script end(in PHPStorm).

I don't understand why. If I run task via gulp, it's ok.

1
  • 1
    Have you tried to add a callback to your zip task? Commented Feb 26, 2015 at 10:53

1 Answer 1

1

As mentioned by Aperçu in the comments, try letting gulp know that you're done your task.

Change

gulp.task('zip', function () {});

to

gulp.task('zip', function (done) {done()});
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.