Alternative lookup convention for `ng-add` schematics
- Lenguaje dominante
- TypeScript
- Estrellas
- 27k
- Forks
- 11.8k
- Merge medio
- 14 h 23 min
- PR fusionados (30 d)
- 162
Descripción
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.
Guía de contribución
Línea de trabajo
Comienza con el comando `ng add` y el campo `ng-add` en `package.json`; revisa cómo se utiliza actualmente el paquete especificado para schematics. Se considera completado cuando una entrada `ng-add` puede apuntar a otro paquete, lo que permite externalizar los schematics del paquete nombrado en el comando.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- cli
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100