angular / angular/angular-cli

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

Abierto
#13,999 23 comentarios 81 reacciones 0 asignados Ver en GitHub
area: @schematics/angular feature feature: under consideration
Lenguaje dominante
TypeScript
Estrellas
27k
Forks
11.8k
Merge medio
14 h 23 min
PR fusionados (30 d)
162

Descripción

# 🚀 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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza revisando el flujo de generación de `ng g library` y cómo la configuración de ng-packager controla las salidas de compilación de las bibliotecas. El trabajo estará terminado cuando las bibliotecas generadas puedan compilar Angular Elements/Web Components junto con los formatos ES2015, ES5, UMD y otros existentes.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
build-system, 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
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.