Continuous Integration - antonybudianto/angular-webpack-starter GitHub Wiki
The starter supports Continuous integration and delivery pipeline by:
- Run linting and unit test and will fail the build if one test failed or any error thrown
- Build the production ready artifact
Prerequisites
- NodeJS and npm, using nvm is recommended
- Git
- Any CI servers (Jenkins, Travis, etc)
- Production
.envfile withAPP_ENVis set toproduction
Getting started
-
Clone or pull your project repository and change directory to there
-
Install packages
npm install -
Run test
npm test -- --ci -
Finally run the build tasks
npm run buildIt will create the
coveragefolder and the artifact -
Now you can get the artifact in
distfolder and process it further (scan, delivery, deploy and etc.)