Closed warang580 closed 8 years ago
You can .use()
any other stimpak generator in your own generator, and it will seamlessly integrate all of it's features with your own:
import StimpakNpm from "stimpak-npm";
import StimpakTestDriven from "stimpak-test-driven";
export default class MyGenerator {
setup(stimpak) {
stimpak.use(
StimpakNpm,
StimpakTestDriven
)
.then(this.showAnswers);
}
showAnswers(stimpak) {
stimpak.answers(); // All answers from stimpak-npm and stimpak-test-driven
}
}
You can also combine generators on-the-fly via the cli:
$ npm install stimpak-npm stimpak-test-driven -g --production
...
$ stimpak npm test-driven
Let me know if this is the same as what you were thinking
This has the latest docs: https://github.com/FreeAllMedia/stimpak/tree/feature/readme
I'm currently working on: https://github.com/FreeAllMedia/stimpak/blob/feature/readme/GENERATORS.md
So if there's anything I can elaborate on in this guide, please let me know.
Re-open if this is still an issue.
I was reading Yeoman documentation and I saw this :
Is it possible in Stimpak to make and run "sub-generators" ? Or something that would behave in a similar manner ?