Open dnoliver opened 7 years ago
To improve composability, add options to the generator code.
i.e:
constructor: function () { yeoman.Base.apply(this, arguments); this.option('boilerplate', { type: Boolean, required: false, desc: 'Include Boilerplate' }); }, initializing: function () { this.props = { boilerplate: Boolean(this.options.boilerplate) }; }, prompting: function () { var prompts = [{ type: 'confirm', name: 'boilerplate', message: 'Include Boilerplate', default: true,, when: this.options.boilerplate === undefined }]; return this.prompt(prompts) .then(function (props) { this.props = extend(this.props, props); }.bind(this)); }
I can contribute with this feature
To improve composability, add options to the generator code.
i.e: