in generators/module/index.js [16:59]
constructor(args, opts) {
// Calling the super constructor is important so our generator is correctly set up
super(args, opts);
this.option('solutionName', {
type: String,
required: false,
desc: 'The name of the solution.',
});
this.option('moduleType', {
type: String,
required: false,
desc: 'The type of the module (Foundation|Feature|Project).',
});
this.option('moduleName', {
type: String,
required: false,
desc: 'The name of the module.',
});
this.option('sitecoreVersion', {
type: String,
required: false,
desc: 'The version of sitecore to use.',
});
this.option('sitecoreUpdate', {
type: String,
required: false,
desc: 'The version of sitecore to use.',
});
const config = this.config.getAll();
if (config && config.promptValues) {
this.options.solutionName = config.promptValues.solutionName;
this.options.sitecoreVersion = config.promptValues.sitecoreVersion;
this.options.sitecoreUpdate = config.promptValues.sitecoreUpdate;
}
this.options.solutionNameUri = config && config.solutionNameUri;
this.options.unicornSerializationDependenciesX = '';
if (config && config.supportHelix20 !== undefined) {
this.options.supportHelix20 = config.supportHelix20;
}
}