9.8.0
grunt
To build files to ./dist
:
grunt build
The BUILD_CONFIG=staging|production|development
(defaults to development
) environment variable should be used to define to the application the environment it is running in. This is separate to NODE_ENV
since many libraries (React included) rely on the de-facto standard values of production|development
to optimise their running.
Setting BUILD_CONFIG
sets NODE_ENV
automatically accordingly in webpack.js.
A feature branch branching strategy is in use, specifically:
develop
naming the new branch feature/[userstory-id]-[short description of new feature for humans]
develop
branch.package.json
.changelog
is up to date, whereby changes for the release are listed underneath the version.develop
into master
.release/vX.Y.Z
where the release number relates to the semantic version of the release.BuddyCI is used for the CI server (see buddy.yaml
).
Build
CI task validates all branchesBuild & Deploy
task runs whenever an update to develop
is made. This task will update the staging server.To give BuddyCI access to the integration server, the public key (found at https://app.buddy.works/kode/uksa-alpha/environment-variables) should be added to the deploy
user's ~/.ssh/authorized_keys
file on the staging server.