- Navigate into the folder (in the command line/ terminal)
- Run " npm install " to install all required dependencies ย npm install -g gulp & npm install -g @angular/cli (Make sure you already have gulp and angular-cli in global env)
- Run " gulp " in a new command line/ terminal window => Keep this process running as well, it's your NodeJS server.
- Run " ng build -w " to run the development build script => Keep this process running! It recompiles your files upon changes.
- When Final : " ng build --prod " for build final product
Scaffold | Usage |
---|---|
Component | ng g component my-new-component |
Directive | ng g directive my-new-directive |
Pipe | ng g pipe my-new-pipe |
Service | ng g service my-new-service |
Class | ng g class my-new-class |
Interface | ng g interface my-new-interface |
Enum | ng g enum my-new-enum |
Module | ng g module my-module |
- v1.1.0 : Update angular@core to 4.0.0 , @angular/cli to 1.0