- Install the Editorconfig text-editor plugin.
- Ensure you have the latest Node and NPM installed on your machine.
$ node -v
$ npm -v
- Fork the repository.
- Run the following command from root to perform the initial setup:
$ bash ./setup.sh
. The browser should openlocalhost:3000
if successful. - After the initial setup, you can simply run the following command:
$ gulp --dev
.
- Gulp will lint your code on each commit, and will abort the commit unless all tests pass. Be sure to commit often to catch any linting errors. You can run each of the lint tasks individually if you wish to lint during development (recommended):
$ gulp styles:lint
// CSS$ gulp scripts:lint
// JS$ gulp html:lint
// HTML (dist)$ gulp lint
// All
- Each commit must reference a valid Assembla ticket. Please add
re #<ticket number>
to the end of your commit message. You will receive the following warning if this is not followed, and the commit will fail:Aborting commit. Your commit message is missing an Assembla ticket reference (e.g. re #38)
- If you don't want to use the hook explained in the previous step, omit the following two lines from setup.sh:
cp .git/hooks/commit-msg.sample .git/hooks/commit-msg
cat ./.githooks > .git/hooks/commit-msg
- If you wish to produce Production code (minified assets, etc), run the default
$ gulp
task.
- The initial
$ bash ./setup.sh
command will generate a deploy.json file in root with placeholder text for FTP credentials. - Replace the placeholder text with the relevant credentials.
- To deploy to the staging environment, run the following command
$ gulp deploy:staging
.