Using Nx: Angular CLI Power-ups for Modern Development
Siwat Kaolueng
Siwat Kaolueng (Jame)
Outline
What is Nx?
Angular CLI Tools
Angular
Protractor
Karma
Jasmine
Modern development tools with Nx
Web Component
Cypress
Nest
React
Jest
Prettier
Create Nx Workspace
Add Capabilities
Full-stack development
How Nx help you scale your enterprise development?
Challenges of Large Organization
10 developers can reach mutual best practices by chatting over lunch.
500 developers cannot.
�You must use tools to promote best practices and team standards.
Enforce best practices
workspace-schematic�Organization-specific schematic
Use: ng generate workspace-schematic [name]
Enforce best practices
Workspace Lint Check �nx.json, tslint.json
nx-enforce-module-boundaries
nx.json
tslint.json
With 3 projects, developers will know what needs to be retested after making a change.
With 30 projects, ad-hoc process will no longer work with several large teams.
You have to rely on the automated CI process instead.
Rebuilding and Retesting What is Affected
Dependency Graph
npm run dep-graph
Set up automatic formatting
npm run format
Try Nx
Much more
Thanks to Nrwl
Resources
Nrwl Nx 6.3: Faster Testing with Jest�Nrwl Nx 7.0: Better E2E testing with Cypress�HTML Formatting and Improved Flexibility with Nx 7.1�Robust Backends with Nx 7.3 and NestJS�Nx’s New Look in v8�12 Things to Help Large Organizations Do Angular Right�Enterprise Angular Monorepo Pattern�Angular CLI power-ups for modern development�Nx Quickstart - How to Scale a JavaScript Project�Nrwl Connect
Siwat Kaolueng
Thank you!
Slide: https://bit.ly/2WzlJF5