angular/angular-cli

Generate and manage schematic configuration files

Open

#22.288 aperta il 2 dic 2021

Vedi su GitHub
 (11 commenti) (3 reazioni) (0 assegnatari)TypeScript (11.999 fork)batch import
area: @angular-devkit/schematics-clifeaturefeature: insufficient voteshelp wanted

Metriche repository

Star
 (26.585 star)
Metriche merge PR
 (Merge medio 1g 18h) (135 PR mergiate in 30 g)

Descrizione

🚀 Feature request

Edit: The feature described in this comment already exists as schematics blank, the real feature request is here.

Command (mark with an x)

  • generate

Description

It came up in an Angular Nation discussion today that making a new schematic is really difficult and requires a lot of steps with complex documentation. I think this came up before but I wasn't able to find an existing issue quickly.

Describe the solution you'd like

Ideally we would have something like ng generate schematic (or schematics new) which could create a new schematic. We'll probably have to workshop how to support both creating a new collection and adding to an existing collection. This would also help improve some of the documentation, since users can get started with schematics much easily.

Describe alternatives you've considered

Alternative is to just document everything and make users type everything out by hand, which is how it works today.

/cc @kroeder.

Guida contributor