Project requires having installed:
After downloading the project form Gitlab repository run command from command line:
npm install
By default after installation application configuration is set to
local based on src/config/environments/local.json
file.
Local server can by run by command:
grunt serve
Building tasks should be done automatically by CI jobs, but it is possible to locally create production version of code. Depending on selected configuration the build will optionally include source maps allowing to debug the code.
grunt build--[development|staging|production]
Important! During building process is included src/config/environments/build.json
configuration.
To make it work locally update values to the suitable ones.
Then run in order to test working app in browser:
grunt serve--build
Releasing tasks should be done automatically by CI jobs, but it is possible to do it manually. As an effect previously built production code will be zipped and put on Nexus repository depending on selected release configuration.
grunt release--[development|staging|production]
You can run multiple type of test on your local environment:
-
E2E (via. Protractor)
grunt test:e2e
-
Unit (via. Jasmine)
grunt test:unit
-
Code Coverage (via. Istanbul)
grunt coverage
To run all tests simply type:
grunt test
Before contributing please read following documents:
To check changes and migration guides between versions see changelog
Additional documentation available on wiki