Skip to content

Instantly share code, notes, and snippets.

@michaelpanik
Last active January 16, 2020 22:17
Show Gist options
  • Save michaelpanik/604dd09dbd0c2136ade0b71f1f524565 to your computer and use it in GitHub Desktop.
Save michaelpanik/604dd09dbd0c2136ade0b71f1f524565 to your computer and use it in GitHub Desktop.
Getting up and running with Grunt Email Workflow on MacOS, 2020
  1. Install NVM.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
  1. Install node.
nvm install node
  1. Clone the repo
git clone https://github.com/leemunroe/grunt-email-workflow.git
  1. Enter the folder
cd grunt-email-workflow
  1. 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
  1. Install node modules
npm i
  1. 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/)"
}
}
  1. Run gulp
gulp
@michaelpanik
Copy link
Author

If you hit an error that says, "Profile not found. Tried ~/.bashrc, ..." run the following command:

sudo cat > ~/.test << ENDOFFILE
export NVM_DIR="$HOME/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
ENDOFFILE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment