angular / angular/angular-cli

Add Angular Elements to the "ng g library" compilation's results

Aberta
#13,999 23 comentários 81 reações 0 responsáveis Ver no GitHub
area: @schematics/angular feature feature: under consideration
Linguagem predominante
TypeScript
Estrelas
27k
Forks
11.8k
Merge médio
14h 23min
PRs com merge (30d)
162

Descrição

# 🚀 Feature request

### Command (mark with an `x`)
```
- [x] generate
```

### Description
We know that the "ng g library" helps us with the creation of reusable libraries. The components we create into ous libs can be compiled into multiple JS formats (ES2015, ES5, UMD, ...), which is awesome! Thank you CLI team! However, would it be possible to have them compiled into Web Components as well?

### Describe the solution you'd like
I know that Angular Elements assist with the creation of Web Components. However, I was not able to add Elements to the libs created to "ng g library". Nonetheless, rather than adding it manually... it would be amazing if the CLI team could add that capability to the "ng g library" directly... so that this cmd could insert the necessary configuration for the ng-packager to use and automatically build Web Components alongside the ES2105, UMD, and other formats.

### Describe alternatives you've considered
None yet.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece revisando o fluxo de geração de `ng g library` e como a configuração do ng-packager controla as saídas da compilação das bibliotecas. O trabalho estará concluído quando as bibliotecas geradas puderem compilar Angular Elements/Web Components juntamente com os formatos ES2015, ES5, UMD e outros formatos existentes.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
angular, typescript
Domínio
build-system, cli
Tipo de issue
Funcionalidade
Dificuldade
5/5
Tempo estimado
Mais de uma semana
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.