Exclude any prompts for data that have been supplied via options
Please ★ this repo if you found it useful ★ ★ ★
- Supports boolean data types
- Supports string data types
- ES6 compatible
npm install --save yo-option-or-prompt
import Generator from 'yeoman-generator';
import yoOptionOrPrompt from 'yo-option-or-prompt';
class extends Generator {
initializing() {
this.optionOrPrompt = yoOptionOrPrompt;
}
async prompting() {
this.context = await this.optionOrPrompt([
{
type: 'input',
name: 'name',
message: 'Project Name:',
default: 'some-project'
}
]);
}
}
Submit an issue
Review the guidelines for contributing
Jam Risser © 2018
Review the changelog
- Jam Risser - Author
- Based on yeoman-option-or-prompt
A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.
Add some fuel if you'd like to keep me going!