I can't figure out why gulp.series()
is not firing in my callback function.
I'm trying to grab a string from a user input with gulp-prompt
and invoke a build and deployment function with gulp.series()
. My tasks within gulp.series()
don't fire at all.
gulp.task('test', function(){
const prompt = require('gulp-prompt');
return gulp.src('test.js')
.pipe(prompt.prompt({
type: 'checkbox',
name: 'env',
message: 'which environment do you want to deploy to?',
choices: ['qa','prod']
},function(res){
//console.dir(res.env);
var env = res.env;
console.log(env);
console.log('hi');
gulp.series('clean', 'patternlab:build', 'tag-version', deployWeb.bind(this, env), function(done){
done();
});
}));
});