You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Grunt-cli and Grunt (`npm install grunt-cli -g`)
27
-
* (optional) [Litmus](https://litmus.com) - Tests the email across all clients/browsers/devices
28
27
29
28
## Getting started
30
29
@@ -39,12 +38,46 @@ cd grunt-email-workflow
39
38
npm install
40
39
```
41
40
42
-
#### 2. Run Grunt
41
+
#### 2. Create secrets.json
42
+
43
+
Create a `secrets.json` file in your project root as **outlined below under "[Sensitive Information](#sensitive-information)"**.
44
+
45
+
#### 3. Run Grunt
43
46
44
47
Run `grunt build` and check out your `/dist` folder to see your compiled and inlined email templates.
45
48
46
49
Run `grunt serve`, a new live-reload browser tab will open. Happy coding :)
47
50
51
+
### Sensitive information
52
+
53
+
We encourage you __not__ to store sensitive data in your git repository. If you must, please look into [git-encrypt](https://github.com/shadowhand/git-encrypt) or some other method of encrypting your configuration secrets.
54
+
55
+
1. Create a file `secrets.json` in your project root.
56
+
2. Paste the following sample code in `secrets.json` and enter the appropriate credentials for the services you want to connect with.
57
+
58
+
If you don't use or need these services **it's ok to skip this step**.
After this you should be good to go. Run `grunt build` and your email templates should appear automagically in a `/dist` folder.
80
+
48
81
## How it works
49
82
50
83
### CSS
@@ -87,7 +120,7 @@ In terminal, run `grunt build`. This will:
87
120
88
121
See the output HTML in the `dist` folder. Open them and preview it the browser.
89
122
90
-
Alternatively run `grunt serve`. This will check for any changes you make to your .scss and .hbs templates, automatically run the tasks, and serve you a preview in the browser on http://localhost:4000. Saves you having to run grunt every time you make a change.
123
+
Alternatively run `grunt serve`. This will check for any changes you make to your .scss and .hbs templates, automatically run the tasks, and serve you a preview in the browser on [http://localhost:4000](http://localhost:4000). Saves you having to run grunt every time you make a change.
0 commit comments