Created
December 5, 2017 15:07
-
-
Save FireZenk/85698c47cd1d54dd1ab5ec98a878ebbf to your computer and use it in GitHub Desktop.
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
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