npm installnpm startspins up a dev server to track any changes livenpm run buildcreates a production dir calledcapp_portalcontaining c-app.org.uk site elements, minifiednpm testruns basic tests on capp_portal
- The files used in deployment are in
src.- c-app.org.uk is built from:
index.html,privacy.html,cssdir andimagesdir. - esa-assessment.support and pip-assessment.support utilise
css,helpers,images, andjsdir in their builds. Please see Readme atneontribe/seap-esaandneontribe/SEAP-PIPfor further information.
- c-app.org.uk is built from:
deploy.shmakes use of some encrypted vars used in deployment. To replace them, first delete the existing ones. To add new ones into.travis.ymluse travis encrypt on command line. (e.g.travis encrypt GIT_USER=mickeymouse --add)
Staging
- We are using Travis (.travis.yml) and grunt to build test (Gruntfile.js) and deploy (deploy.sh)
- On EVERY push, pull request or merge Travis uses Grunt test task to run all _test.coffee and _test.js files in /tests
- If the tests pass, Travis commits the new build to gh-pages branch (our staging server) http://neontribe.github.io/seap_core
Live
- When release is tagged and pushed
git tag -a v0.0.0-beta -m "description of release updates"git push origin --tags - Use Travis to carry out procedure as for Staging
- If tests pass, and build is successful, detect release tag and push the new build to the live site - overwriting whatever is there.
- A release.txt will be added at site root with tag name and datetime
- Both sites will pull resources from the master branch in this repo as part of build process. More information can be found at: https://github.com/neontribe/seap_esa and https://github.com/neontribe/SEAP_PIP