Skip to content

Continuous Integration

Antony Budianto edited this page Dec 18, 2016 · 15 revisions

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

  1. NodeJS and npm, using nvm is recommended
  2. Git
  3. Any CI servers (Jenkins, Travis, etc)
  4. Production .env file with APP_ENV is set to production

Getting started

  1. Clone or pull your project repository and change directory to there

  2. Install packages

    npm install
  3. Run test

    npm test -- --ci
  4. Finally run the build tasks

    npm run build

    It will create the coverage folder and the artifact

  5. Now you can get the artifact in dist folder and process it further (scan, delivery, deploy and etc.)


⭐ Support this starter by giving stars, sharing to your friends, or contributing

Clone this wiki locally