Last active
March 18, 2019 07:28
-
-
Save divyanshu013/7d230bcaf99ae60f47eda3ca6870b075 to your computer and use it in GitHub Desktop.
Generator - Basic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Generator = require('yeoman-generator'); | |
module.exports = class extends Generator { | |
constructor(args, options) { | |
super(args, options); | |
} | |
// first stage | |
async prompting() { | |
this.log('Generator starting... π€'); | |
} | |
// second stage | |
writing() { | |
this.log('Writing files... π'); | |
} | |
// last stage | |
end() { | |
this.log('Bye... π'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment