Custom Generate Templates


#1

I understand that I can modify the templates under “node_modules\ionic-angular\templates”.
Sometimes I want to “ionic g page home”
Sometimes I want to “ionic g mycartpage shopping-cart” (or a half-dozen other possibilities I have)

I tried adding a folder under “templates” but received “type must be one of…”

Is there a way to customize, override or enhance the template types?
Thanks


#2

Angular now has Schematics: https://github.com/angular/devkit

And example: https://github.com/Robinyo/ionic-angular-schematics


#3

Thank You @robinyo for your response.
It was not immediately obvious how this helps me, though I have spent little time looking at it.


#4

You could follow this process, without submitting to the community: https://github.com/ionic-team/starters/blob/master/CONTRIBUTING.md#community-starters