-
Notifications
You must be signed in to change notification settings - Fork 0
Branches
The project uses a Git Flow branching model.
The 3 main branches are:
-
master
Branch (acts more like a 'remote build') -
dev
Branch (acts more like a traditional master) -
next
Branch (actions more like a traditional develop)
Contains every build (deployment). Pushing/merging to master is never explicit. Instead, there are build/deploy scripts that are run from the dev branch.
npm run deploy
will:
- build the Vue bundle into the
/dist
folder - copy the CNAME and README.md into the
/dist
folder - force push the master branch to contain only the contents of the
/dist
folder - cleanup afterwards
Continuous Integration is currently setup to deploy after successful builds run on the dev
branch. In practice, this means that pull requests into dev with passing builds should fire a deploy.
The setup (found in .travis.yml) is as follows:
-
npm run build
(buildes the Vue sources into/dist
) -
npm run copyreadme
(copies the README.md into the/dist
folder) - push (From Travis build) onto
master
using an ENV variable$GITHUB_TOKEN
- The setting
fqdn
will automatically create the CNAME file on the master branch
NOTES:
- Future developers will have to generate their own personal access token to run from Travis. See here for details.
- Automatic deploys only work for builds triggered onto the
dev
branch. You can use Travis CI on any other branch or in a PR without triggering deployment.
Contains the most recent source code that was built and deployed. next
should branch from here, and active development will continue until a release is near. release branches and hotfixes are the only merges into dev
.
Contains active feature development. Once enough features/commits are acquired, draft a release branch. The release branch should be cleaned up (including history) and then merged into dev
.