Gulp prompt
If you are interested in getting involved please send us an e-mail or open an issue. There are a couple of open issues and small clean up projects that we could use some help with.
Add interaction to gulp tasks.
.confirm([options])
Options:
- message - Message to be displayed
- default - Default response if none is provided
This method will allow the pipe to continue if the user input is true, otherwise, it will be terminated.
Default usage:
gulp ;
If a string is provided to the options, it will be set as the message:
gulp ;
Example when using options:
gulp ;
.prompt(questions, callback)
This is a clean pass-through function for gulp to utilize the full Inquirer.js Library, please refer to them for documentation on corresponding parameters.
Please note that all types are avaiable, not just the examples below.
Example Input:
gulp ;
Example Checkbox:
gulp ;
Example Password:
gulp ;
Example Multiple:
gulp ;
Example Validation:
gulp ;
Example List Selection: Note: see sample file
gulp ;
Example Templating: This was a fix to the issue #8 (https://github.com/Freyskeyd/gulp-prompt/issues/8) Note: see sample file
return gulp ;
Example Chaining Prompts: This was a fix to the issue #35 (https://github.com/Freyskeyd/gulp-prompt/issues/35) This was a fix to the issue #34 (https://github.com/Freyskeyd/gulp-prompt/issues/34) Note: see sample file
var index =0; var { console; if index <= 3 optionsmessage = `Hello this is iteration `; index++; return options; else return; }; gulp;
This was a fix to the issue #60 (https://github.com/Freyskeyd/gulp-prompt/issues/60) Note: see sample file
var index =0; var { console; if index <= 3 optionsmessage = `Hello this is iteration `; index++; return options; else return; }; gulp;