UNPKG

generator-loom

Version:
25 lines (22 loc) 973 B
'use strict'; const Generator = require('yeoman-generator'); const chalk = require('chalk'); const yosay = require('yosay'); module.exports = class extends Generator { prompting() { // Have Yeoman greet the user. this.log(yosay( 'Welcome to the pioneering ' + chalk.red('generator-loom') + ' generator!' )); this.log(chalk.bold.yellow('This module helps you with code generation for loom projects.')); this.log(chalk.bold.yellow('Following commands are available.\n\n')); this.log(chalk.bold.yellow('1. yo loom:page = Creates a simple page with no table.')); this.log(chalk.bold.yellow('2. yo loom:page-table = Creates a simple page with table.')); this.log(chalk.bold.yellow('\n\n')); } references() { this.log("How-to-yeoman: https://scotch.io/tutorials/create-a-custom-yeoman-generator-in-4-easy-steps"); this.log("Generator File Operations: https://github.com/SBoudrias/mem-fs-editor"); process.exit(0); } };