This project was generated with Angular CLI version 11.2.10.
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 Overview and Command Reference page.
save changes > stage > commit > push to main
$ ng build --prod --base-href https://johnpgeipel.github.io/ng-test-app/
$ ngh --dir=dist/ng-test-app
This allows for the one step build and deployment to gh-pages with the command npm run deploy
. After making changes to src
, add, commit and push to main branch, then run npm run deploy
to update app.
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"deploy": "ng build --prod --base-href https://johnpgeipel.github.io/ng-test-app/ && ngh --dir=dist/ng-test-app"
},