Skip to content

Talk

Automating boring Tasks with the Angular CLI and Schematics

Frontend Loveby Manfred Steyer

Automating boring Tasks with the Angular CLI and Schematics

About the talk

For scaffolding files, the Angular CLI leverages the code generator Schematics. To customize its behavior, everyone can tweak the used templates and even create new ones. This session shows how to leverage this less known technology dozing under the CLI’s covers. For this, you will learn how Schematics work and how we can write npm packages that provide additional code generators. You will also see how to modify existing source files, e. g. in order to register a generated component with an existing module. For this, we will use the TypeScript’s compilers services which allow to directly manipulate the application’s abstract syntax tree. After this session you know the build-in options for automating repetitive and boring programming tasks.

Book tip

Modern Angular

Architecture, Concepts, Implementation: practical guidance for modern Angular – Signals, Signal Forms, the NgRx Signal Store, AI and architecture.

More about the book: Modern Angular (opens in a new window)