Playbook

  1. Install global Prerequisites

Install

Install Global Packages

List npm global packages

npm ls -global

Remove old npm global packages

npm uninstall -g @angular/cli
npm uninstall -g nx
npm uninstall -g commitizen
npm uninstall -g @nestjs/cli
npm uninstall -g bloomrpc-mock

Install latest npm global packages

npm install -g @angular/cli
npm install -g nx
npm install -g commitizen
npm install -g @nestjs/cli
npm install -g bloomrpc-mock

Install Chrome Extensions

Scaffold Project

steps below are for setting up a new project from the scratch.

Explicitly Passing Arguments to Angular CLI

nx/ng commands now accept a delimiter to distinguish the end of options for Nx and the beginning of options to Angular CLI with a (like npm run) according to Guideline 10 of POSIX.2 utility syntax guidelines.

npm affected -- --target lint --uncommitted --parallel -- --fix

Create Workspace

Switching an NX repo to use PNPM

https://medium.com/pixel-and-ink/switching-an-nx-repo-to-pnpm-5b1cbd5c3797

Dependencies

adding 3rd party modules/libs

update 3rd party modules/schematics use --allow-dirty --next --force` flags as needed

Tasks

Install Deps

Update Deps

Build

Run

Uint Test

E2E Test

Serve from dist

use this to test service-workers

Check

check if you on current versions.

IntelliJ/WebStorm

Right click on apps/webapp/src/styles in project vie --> Make Directory as --> Resources Root. Right click on apps/webapp/src in project vie --> Make Directory as --> Resources Root. Right click on docs in project view --> Make Directory as --> Excluded. Right click on dist in project view --> Make Directory as --> Excluded. Right click on coverage in project view --> Make Directory as --> Excluded.

Reference

Last updated

Was this helpful?