Skip to content

Instantly share code, notes, and snippets.

@FireZenk
Created December 5, 2017 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save FireZenk/85698c47cd1d54dd1ab5ec98a878ebbf to your computer and use it in GitHub Desktop.
Save FireZenk/85698c47cd1d54dd1ab5ec98a878ebbf to your computer and use it in GitHub Desktop.
module.exports = function (plop) {
plop.addHelper('lowerCase', (text) => text.toLowerCase());
// add more helpers here
plop.setGenerator('feature', {
description: 'creates a new mvp-based feature',
prompts: [{
type: 'input',
name: 'package',
message: 'Package name?'
},{
type: 'input',
name: 'feature',
message: 'Feature name?'
}],
actions: [{
type: 'add',
path: 'src/{{properCase feature}}PresenterImpl.java',
templateFile: 'templates/presenterImpl.hbs'
}
});
// add more generators here
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment