You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry if this question has a simple answer, but I spent quite some time trying to integrate gulp-prompt in my tasks and I don't seem to be able to make it work correctly.
As an example, here is the definition of a sample task, taken from your own examples and slightly modified to be written in the Gulp 4 default task syntax:
functionsetversion(done){src('test.js').pipe(prompt.prompt({type: 'checkbox',name: 'bump',message: 'What type of bump would you like to do?',choices: ['patch','minor','major']},function(res){//value is in res.bump (as an array)})).pipe(dest('./'))done();}exports.setversion=setversion;
If I want, in example, integrate gulp-bump and passing to it the value taken from choices, what exactly should I write in the line that currently has //value is in res.bump (as an array)?
Like I said I've tried a lot but can't seem to find the proper syntax to make this work correctly.
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered:
I'm sorry if this question has a simple answer, but I spent quite some time trying to integrate
gulp-prompt
in my tasks and I don't seem to be able to make it work correctly.As an example, here is the definition of a sample task, taken from your own examples and slightly modified to be written in the Gulp 4 default task syntax:
If I want, in example, integrate
gulp-bump
and passing to it the value taken fromchoices
, what exactly should I write in the line that currently has//value is in res.bump (as an array)
?Like I said I've tried a lot but can't seem to find the proper syntax to make this work correctly.
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: