Local development build
- npm install
- npm run build-dev (Process will not end. It will keep watching for the changes in the source code)
- npm run start-dev
Build to higher environments
- npm run build-prod
- npm run pack
- docker build --no-cache -f deployment/Dockerfile -t browse-app .
Run the docker image:
- docker run -e ENV_SERVER=prod ENV_DEPLOYMENT_TYPE=ACS --name browse-app -p 0.0.0.0:8080:8080 -d browse-app
Possible values of ENV_SERVER are local, dev, staging, perf, prod
Run CSS lint:
- npm install
- npm run csslint-console (OR) npm run csslint
Run JS lint:
- npm install
- npm run jslint-console (OR) npm run jslint
Run Unit test:
- npm install
- npm run unit-test
Run Functional test(Headless):
- npm install
- npm run e2e-start (Will start the webdriver)
- npm run e2e-test Example : ENV_FUNCTIONAL_TEST_URL=http://52.186.66.18:8080 npm run e2e-start