~/talk

Make Nx Work for You with Custom Generators

Talkat Nx Conf 2022 · on Monday, 2022-10-17· [developer-experience, typescript]
slides:none on file

Demonstrates writing local Nx plugins (since 13.10) that extend the Angular library generator using the Nx DevKit and AST to automate real tasks: set importPath, enforce three tag enums (scope/domain/type), generate four libraries at once (data-access, ui, feature, utils), add a custom test-setup for Angular Testing Library, and update CODEOWNERS. Generators include unit and e2e tests, can be published, and successfully produce nested directories, correct tags, and working test scaffolding.

AI-written summary · about

  1. 0:00Introduction to NX
  2. 1:30Why use generators
  3. 3:35Enforcing standards
  4. 5:44Benefits of generators
  5. 7:42Getting started
  6. 9:14Generator structure
  7. 12:27Extending existing plugins
  8. 14:14Automating configurations
  9. 15:46Enforcing architecture
  10. 18:08Advanced generation
  11. 19:18Customizing file edits
  12. 21:19Custom test setup
  13. 23:48Conclusion and takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.