CLI and composition with other possible addons generators
See original GitHub issueOnce #6 is done, a welcome suggestion (thanks @R0muald) was to provide a way to compose the base SK generator with any other “addon” generators.
One way could be to investigate yeoman’s composability features or maybe create a custom CLI to simply wraps the generators setup/install/running.
The basic idea is to gather in a simple way for the user the ability to mix the SK with addon generator, something like:
$ ngx new myAwesomeProject --addons="myCompanyUiLibrary someBackendGenerator"
or even maybe
# performs `npm install` + register addons with ngx cli
$ ngx addon install myCompanyUiLibrary someBackendGenerator
# registered addons will be used by default
$ ngx new myAwesomeProject
Yeoman also support generating a project from multiple generators, so we should also consider this.
Remaining tasks
- Extract generator code in a separate package
- Add template prefix to allow merging json files
- Refactor base generator to use core
- Create an example addon generator
- Create CLI
- Create generator for making addons
- Add documentation
- Create new issues for blueprints support…
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Top 6 Chord Generator Plugins 2022 That Inspire Melodies (+ ...
In this post, we will talk about the 6 best chord generator plugins of 2022. Chord progressions are the foundation of songs. A...
Read more >The Ultimate 2022 Guide to the Best Blender Add-ons
You can learn how to get started making your own add-on by following this other guide. Do you need to use add-ons? Not...
Read more >Local Generators | Nx
Nx provides tooling around creating, and running custom generators from within ... Use the Nx CLI to generate the initial files needed for...
Read more >Documentation for the python Generator
CONFIG OPTIONS Specifies that only a library source code is to be generated. Hides the generation timestamp when files are generated. Composition validation...
Read more >Add addons/tools after generation through CLI #508 - GitHub
Similar to the update method asking you which files you want to update and which tools/addons you want to install, there should be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For those interested, the CLI is fully working at this point. By default, all locally installed addon generators are used, but you can enable/disable them individually with
ngx config
.A basic addon example is also ready and published to play with.
Now there’s a lot of documentation to write for it, and I’ll finish with an addon boilerplate generator to make addon creation even easier 😄
Any feedback is welcome!
Finally!! 🎉 👯 🍾
A lot efforts went in this, but it’s done 😃
See the docs and tools in: