Angular Schematics – the unknown hero
summary
Schematics underpins the Angular CLI and upgrade tools and actually scaffolds or edits code. The talk shows creating four files in a dry run then turning off dry run to write them, piggybacking on @schematics/angular’s component schematic to prepend a header to every TS file, and using the TypeScript compiler AST to locate exact insertion positions. Workflow uses npm link/ng generate/ng add and demonstrates ng deploy uploading a build; changes succeed when positions and commits are correct.
AI-written summary · about
chapters (11)
- 0:00Start
- 4:20PROJECT STRUCTURE
- 10:08LET'S SWITCH TO PRODUCTION MODE
- 15:44INSTALL DEPENDENCIES
- 16:53DEFINE THE RULE
- 20:12LET'S LOOK AT TEMPLATE FILE
- 24:01LET'S RUN OUR SCHEMATIC
- 26:51GET NODE REPRESENTATION
- 28:32HOW DO WE CHANGE THIS TREE?
- 30:34CREATING THE CHANGE
- 31:06COMMIT UPDATE
related talks
22mAngular Schematics - the unknown hero
14mAngular Schematics for Better Productivity
45mTotal Guide To Custom Angular Schematics
20mSchematics: an untapped frontier
29mAutomating your Angular projects with Schematics
50mHow to leverage Angular Schematics to empower Devs of Frontend Apps & Libraries
31mAutomated Scaffolding with Schematics (Angular)
41mAngular Schematics - Develop for developers
