moleculerjs / moleculer-cli

:herb: Command line tool for Moleculer
http://moleculer.services/docs/moleculer-cli.html
MIT License
48 stars 28 forks source link

add functionality to load templates by aliased name in config file #13

Closed faeron closed 6 years ago

faeron commented 6 years ago

When creating a new project from a custom template it is now possible to have a mapping from custom template name to template/repo url. So the init command is usable for custom templates as it is for built in templates (even overrides are possible).

The config file ~/.moleculer-templates.json is just a simple mapping where key is the template name and value is the desired template/repo url. The resolution works just like if the templateName was given to the original init command

icebob commented 6 years ago

Nice new feature, thanks!

icebob commented 6 years ago

I released it in 0.6.1. By the way, if you have time, could you help me to add this feature to the docs of CLI? https://github.com/moleculerjs/site/blob/master/source/docs/0.13/moleculer-cli.md#commands

Thanks in advance!