- First you will need to install NPM to manage packages https://nodejs.org/
- Install Grunt
- Clone the repo:
git clone [email protected]:womenhackfornonprofits/tgiuk-static-site.git
- Install all required packages:
npm install
in the directory root, this will read the package.json file and install all required packages. - You will need to have Ruby on your machine
- You will need to create a file
s3settings.json
ands3settingsprod.json
with the following content:
Development bucket
{
"key": "your key here",
"secret": "your secret here",
"bucket": "tbd",
"region": "tbd"
}
Production bucket
{
"key": "your production key here",
"secret": "your production secret here",
"bucket": "tbd",
"region": "tbd"
}
- HTML, CSS/SASS changes
In order to compile and watch the SASS and the templates run
grunt watch
, this will watch for changes to html and sass and compile it all.
- Make sure the gruntfile is pointing to the right credential file
s3settings.json
this should be by default using dev credentials - All you need is to run
grunt deploy
This will minify, copy and do everything else needed to push the site to the dev bucket.
Note: All this information can be filled out once you have access to the bucket to deploy to DEV & PROD.
- Front End Dev: Liliana Kastilio
- CSS
- HTML
- Grunt
- AWS S3
- Jira
- Browserstack
- Slack
In the Gruntfile.js you can find various tasks to compile, deploy and help you work locally, take a peek in there.