Alternative lookup convention for `ng-add` schematics
- Lingua principale
- TypeScript
- Stelle
- 27k
- Fork
- 11.8k
- Merge medio
- 14h 23m
- PR unite (30g)
- 162
Descrizione
It would be nice to be able to externalize schematics from the package specified in the `ng add` command.
`ng add ionic` requires us to include schematics within the `ionic` package itself, which is not ideal for several reasons:
- **Separation of Concerns**. The `ionic` package isn't necessarily for Angular, but `ng add ionic` looks good 👌
- **Complication of the build within our main package.** Including the schematics in our main package would require including _a lot_ of the Angular DevKit into the build.
- **Slow "add".** It requires installing the entire package and all its dependencies (~38M) in a sandbox just to use a few files from the package.
In slack I believe we concluded that the best solution might be to have the `ng-add` field within `package.json` be allowed to point to another package.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il comando `ng add` e il campo `ng-add` in `package.json`; esamina come viene attualmente utilizzato il package specificato per gli schematics. Il lavoro è completato quando una voce `ng-add` può puntare a un altro package, consentendo di esternalizzare gli schematics dal package indicato nel comando.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 30/100