Docs: Libraries ecosystem: developer workflows and guidelines
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Documentación
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- angular, typescript
Línea de trabajo
Start with the Libraries overview at angular.dev/tools/libraries and compare its sub-pages, especially creating-libraries, using-libraries, and angular-package-format. Review the related context in #70830 and angular/angular-cli#34106 before outlining the proposed workflow-focused structure. Done means the documentation explains when to create a library, distinguishes workspace-local and npm-published libraries, and adds the requested publishing and entry-point guidance.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the problem that you experienced
Context of this issue:
- #70830
- angular/angular-cli#34106
The Libraries documentation (incl. its sub-pages) as of today are a rather mechanical description what a library is, what can be done with it, mentioning there is an architectural decision around creating a library.
Enter the URL of the topic with the problem
https://angular.dev/tools/libraries
Describe what you were looking for in the documentation
With the new Angular library builder on the horizon, it's a good point in time to look at the libraries documentation again.
I will say that most of the time developers are users of libraries. Creating and publishing a library affects developers less frequently. I propose to re-phrase the libraries documentation to address the developers workflow and put more emphasis on guidelines rather than mechanical how tos.
Describe the actions that led you to experience the problem
No response
Describe what you want to experience that would fix the problem
Proposal for new-looking libraries documentation pages.
When to create a Library (vs. when not)
Instead of just mentioning whether to create or not to create a library is an architectural decision, the documentation should list decision criteria when to create a library and the consequences of it. This is not only a binary decision ("when to..." vs. "when not to..."), but also is a decision of when to create library published to npm" vs. "when to create a workspace-local library" (like the Nx monorepo pattern for sharing libraries through path mappings) vs. "when not to create a library".
Using vs. Creating a Library
A second point is to re-phrase the libraries documentation with an emphasis on library users (consumers), following the same pattern of the Angular elements docs. The starting page of the "Libraries" docs has a headline "Overview" and "Creating libraries". I propose to structure the Overview page:
- What is a library?
- Shorten the intro
- Libraries vs. custom elements
- How to use a library?
- Example
- Cross-reference to
ng updateschematics
- Creating a library
- When to create a library
- Deciding on workspace-local (monorepo pattern) vs. publishing to npm
- Example for creating a library with
ng generate library
Sub Pages of the libraries documentation:
- Creating libraries
- Focus on "publishable to npm"-libraries
- Add "Versioning" and "Release": Semver, Conventional Commits as a guideline, Changelogs, link to external tools such as standard-version or semantic-release
- Creating libraries with the
ngCLI: keep most of the How To-instructions intact (I think it's quite good), wrapping up with references to community documentation around library workflows - Entry points: primary entry points and secondary entry points, when to use, why to use, example
- Using Libraries and Angular Package Format: keep as is
Add a screenshot if that helps illustrate the problem
No response
If this problem caused an exception or error, please paste it here
If the problem is browser-specific, please specify the device, OS, browser, and version
Provide any additional information here in as much as detail as you can
- Lenguaje dominante
- TypeScript
- Estrellas
- 101k
- Forks
- 28.1k
- Merge medio
- 2 d 6 h
- PR fusionados (30 d)
- 307
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de angular/angular
-
area: docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
area: forms forms: signals
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
area: docs gemini-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
area: forms forms: signals
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
area: docs area: forms
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Todos los issues de angular/angular
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
TanStack/tanstack.com#1293 ·