Alternative lookup convention for `ng-add` schematics
- Linguagem predominante
- TypeScript
- Estrelas
- 27k
- Forks
- 11.8k
- Merge médio
- 14h 23min
- PRs com merge (30d)
- 162
Descrição
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.
Guia de contribuição
Direção de pesquisa
Comece com o comando `ng add` e o campo `ng-add` em `package.json`; revise como o pacote especificado é usado atualmente para schematics. Está concluído quando uma entrada `ng-add` puder apontar para outro pacote, permitindo que os schematics sejam externalizados do pacote nomeado no comando.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- angular, typescript
- Domínio
- cli
- Tipo de issue
- Funcionalidade
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 30/100