- Install NVM.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
- Install node.
nvm install node
- Clone the repo
git clone https://github.com/leemunroe/grunt-email-workflow.git
- Enter the folder
cd grunt-email-workflow
- Open
package.json
, change line 34 to:
"node-sass": "^4.13.0"
(change the 11 to a 13) 6. Install Gulp
npm i gulp -g
- Install node modules
npm i
- create a new file in the folder called "secrets.json" and add this boilerplate content for now:
{
"mailgun": {
"api_key": "YOUR MG PRIVATE API KEY",
"domain": "YOURDOMAIN.COM",
"sender": "E.G. POSTMASTER@YOURDOMAIN.COM",
"recipient": "WHO YOU WANT TO SEND THE EMAIL TO"
},
"litmus": {
"username": "LITMUS USER NAME",
"password": "LITMUS PASS",
"company": "LITMUS COMPANY/API SUBDOMAIN NAME"
},
"cloudfiles": {
"user": "CLOUDFILES USERNAME",
"key": "CLOUDFILES KEY",
"region": "CLOUDFILES REGION E.G. ORD",
"container": "CLOUDFILES CONTAINER NAME",
"uri": "CLOUDFILES URI"
},
"s3": {
"key": "AMAZON S3 KEY",
"secret": "AMAZON S3 SECRET",
"region": "AMAZON S3 REGION",
"bucketname": "AMAZON S3 BUCKET NAME",
"bucketdir": "AMAZON S3 BUCKET SUBDIRECTORY (optional)",
"bucketuri": "AMAZON S3 PATH (ex: https://s3.amazonaws.com/)"
}
}
- Run gulp
gulp
If you hit an error that says,
"Profile not found. Tried ~/.bashrc, ..."
run the following command: