generator-reaction
Version:
Project generator for Reaction NodeJS projects. Built with Yeoman.
21 lines (16 loc) • 452 B
JavaScript
;
const Generator = require('yeoman-generator');
module.exports = class extends Generator {
writing() {
const templateProps = this.options.props;
this.fs.copy(this.templatePath('docs'), this.destinationPath('docs'), templateProps);
this.fs.copy(
this.templatePath('adr.json'),
this.destinationPath('.adr.json'),
templateProps
);
}
install() {
this.yarnInstall(['adr'], { dev: true });
}
};