npm install -g @angular/cli
npm install
git checkout -b x-name
x reference to issue
git commit -p
Split diff to exclude non-necesary code
#x in commit message
This project was generated with Angular CLI version 1.5.2.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
If you want to build and use ng serve for development, you need to install dependencies in your local repository. For mac user, you can skip --user $UID:$(id -g $UID).
$ docker build -t insanity .
$ docker run --rm -it -v $PWD:/app --user $UID:$(id -g $UID) insanity install
You can now use your local repository for development and use hotswap.
$ docker run --rm -it -v $PWD:/app -p 4200:4200 insanity
Otherwise, you can use the base image if you don't want node_modules/ folder.
$ docker run --rm -it -p 4200:4200 insanity
If you want to use npm script to use docker commands
npm run-script build-insanity
mac user
npm run-script install-insanity-mac
other user
npm run-script install-insanity-all
npm run-script insanity