I am using a script as follows:
run.js:
var gulp = global.gulp = require('gulp'); require('./gulpfile.js');
gulpfile.js:
global.gulp = global.gulp || require('gulp'); gulp.task('zip', function () {});
And node run.js : node run.js
I need this because I need to collect some data through inquirer.prompt() before starting the task.
Everything works, but the console freeze cursor after the script end (in PHPStorm).
I do not understand why. If I run the task through gulp, that's fine.
source share