NX Generators or how to skip boring tasks
summary
Shows how NX generators automate creating a local plugin, call other generators (nesting the Angular plugin), and use schema.json plus a generator TypeScript file to inject templates, enforce patterns and required fields, and run a dry run before changes. Demonstrates renaming e2e to system tests, updating a root YAML, and keeping atomic file moves. Claims this reduced drift across distributed teams that maintained roughly 150–180 single‑page apps and the generator workflow proves reliable.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:05NX generators overview
- 3:10Custom generators step by step
- 5:58Generator structure
- 10:14Schema.json properties
- 12:00Virtual file system
- 14:06Nested generators
- 17:39Dynamic file generation
- 19:48Live demo
- 21:13Real-world benefits
- 22:20Advanced possibilities and resources
- 23:01Q&A
related talks
25mMake Nx Work for You with Custom Generators
22mFine-Tuning Your Angular Workflow with Nx: Beyond the CLI
26mNx for Angular Developers
36mHow to scale up your angular projects like a pro
09mUsing Nx: Angular CLI Power-ups for Modern Development
29mSupercharging the Angular CLI with Nx
23mThe power of Nx Console
25mUtilizing the JavaScript Abstract Syntax Tree (AST) for Automated Frontend Lifecycle Management
