The DigiTrust code base relies on Node.js, Grunt and Browserify among other libraries.
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 N
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 test
They will be automatically run on push. The Circle CI build will fail if the unit tests fail
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
version
inpackage.json
- Update
digitrustHostPath
,digitrustRedirect
, anddigitrustIframe
in theprod
section 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