🍃 Leaf

Angular

Installation

npm i -g @angular/cli

Usage

ng <command> [option]
ng new <project-name> [option]
ng add <dependency-name> [option]
ng generate <sub-command> [option]
ng serve [option]
ng build [option]
# Use with npm scripts
npm start
npm run build
// package.json e.g.:
{
  "scripts": [
    "start": "ng serve --port <port-number> --open --c development",
    "build": "ng build --c production"
  ]
}

Commands (angular.io):

More at: