UNPKG

generator-summon

Version:

Set of small and composable generators

31 lines (26 loc) 732 B
'use strict'; var Easily = require('yeoman-easily').Easily; var chalk = require('chalk'); module.exports = Easily.createGenerator({ prompting: function () { return this.easily .greet('Welcome to the prime ' + chalk.red('generator-summon') + ' generator!') .confirmBeforeStart('Would you like to add lazynerd-devtools?') .prompt(); }, writing: function () { if (this.easily.checkForConfirmation()) { this.easily .extendJSONWithTemplate( '__package.json', 'package.json', this.props ) .copy('__eslintrc.js', '.eslintrc.js') .copy('docs/development.md'); } }, install: function () { this.installDependencies(); } });