1.5.33 • Published 6 years ago
digitrust v1.5.33
DigiTrust
The DigiTrust code base relies on Node.js, Grunt and Browserify among other libraries.
Local Development
To initialize your local repository for development, clone this repository and run:
#install dependencies
yarn install
# build only
yarn build
# build & watch script for client
yarn devclient
# deploy to cdn
yarn deploy
# generate new key pair
grunt generateKey --keyversion NEnvironment Setup
Use your host file to set this host pointer to a local webserver.
local.digitru.st 127.0.0.1
Available environments: local, dev, prod
Before committing, you can run the following to validate your code
yarn testThey will be automatically run on push. The Circle CI build will fail if the unit tests fail
Production Releases
In general we are using "three-flow" to manage mostly automated releases. Releases are branched off of master into candidate and then into a release branch.
- Update
versioninpackage.json - Update
digitrustHostPath,digitrustRedirect, anddigitrustIframein theprodsection ofsrc/config/general.json - git checkout candidate
- git pull
- git merge --no-ff master
- git tag candidate-1.5.13
- git push --follow-tags
- git push --force origin candidate-1.5.13:release