question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI and composition with other possible addons generators

See original GitHub issue

Once #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:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sinediedcommented, May 17, 2017

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!

0reactions
sinediedcommented, Jun 30, 2017
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found