This project was generated with Angular CLI version 8.3.21.
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 lint
to scan the project for code quality mistakes and common coding errors.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
This repo contains 3 scripts in the /scripts
directory to help build, test, and deploy the project. These scripts can be called in the CI/CD pipeline to deploy the application.
- build.sh: This script pulls in the NPM dependencies and then compiles the project using Webpack. The output is contained in the
/dist
directory. - test.sh: This script does a combination of linting, unit testing, and e2e testing using tslint, karma + Jasmine, and Protractor.
- deploy.sh: This script just deploys to cloud foundry. It is meant to be consumed by the IBM Continuous Delivery pipelines service on IBM Cloud.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.