Make sure you have node installed and run npm install
.
We use gulp as our task runner. There are 2 main tasks:
- Use
gulp build
to compile and minify the JS and SASS. You can find the output in the public directory. - Simply call
gulp
to launch a dev server that automatically recompiles the source when files are changed. This basically callsgulp build
every time it detects a file change. No need to callgulp build
before publishing if the content in the public directory is up to date.
The site is hosted on Amazon S3.
Create a file in the root of this project called aws-credentials.json
. It should look like this:
{
"accessKeyId": "ACCESS_KEY_ID",
"secretAccessKey": "SECRET_ACCESS_KEY"
}
Include your keys in the json file and you will be able to automatically deploy everything from the public directory to the S3 bucket using the gulp command gulp publish
.