@luddites-me/generator
Version:
Project generator
21 lines (17 loc) • 655 B
JavaScript
'use strict';
const Generator = require('yeoman-generator');
module.exports = class extends Generator {
constructor(args, opts) {
super(args, opts);
this.option('platformName', { type: String, required: true });
}
writing() {
this.fs.copyTpl(this.templatePath('src'), this.destinationPath('src'), this.options);
this.fs.copyTpl(this.templatePath('docs'), this.destinationPath('docs'), this.options);
this.fs.copyTpl(this.templatePath('./.*'), this.destinationPath('./'), this.options);
this.fs.copyTpl(this.templatePath('./*.*'), this.destinationPath('./'), this.options);
}
install() {
this.yarnInstall();
}
};