Skip to content

Instantly share code, notes, and snippets.

@misterdev
Last active March 21, 2019 16:05
Show Gist options
  • Save misterdev/734b7f03d012c8fc11b1a9756cdf4956 to your computer and use it in GitHub Desktop.
Save misterdev/734b7f03d012c8fc11b1a9756cdf4956 to your computer and use it in GitHub Desktop.
1
const Generator = require('yeoman-generator');
module.exports = class WebpackGenerator extends Generator {
constructor(args, opts) {
super(args, opts);
// => We will initialize our generator here
}
prompting() {
// => This is were we will print the questions to get the user preferences
}
writing() {
// => We will use this method to write our our configuration files to the file system
}
install() {
// => Here we will tell our scaffold how to install the dependencies
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment