Bugfix/build failing on node10 (#58)
* Update dependencies * Add note about create command and fix outdated docs
This commit is contained in:
parent
d567e67d7e
commit
a5f0b3e83f
22
README.md
22
README.md
|
|
@ -51,7 +51,8 @@ Writing HTML emails & email signatures sucks. Let's make it easier. We can't fix
|
||||||
### Installing
|
### Installing
|
||||||
```bash
|
```bash
|
||||||
$ npm install
|
$ npm install
|
||||||
$ gulp # By default, HTML & CSS files in './src' will be watched for changes
|
$ gulp # or npm run create
|
||||||
|
# By default, HTML & CSS files in './templates' will be watched for changes
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note: it's built using node v8.x, so please make sure your node.js version is up to date. Version 6+ should be fine.
|
> Note: it's built using node v8.x, so please make sure your node.js version is up to date. Version 6+ should be fine.
|
||||||
|
|
@ -120,26 +121,31 @@ There are 2 examples of template structures, one for the `light` email template
|
||||||
|
|
||||||
Here's how the dark one looks:
|
Here's how the dark one looks:
|
||||||
```bash
|
```bash
|
||||||
./src
|
./templates
|
||||||
├── dark
|
├── dark
|
||||||
├── conf.js # Template strings, logo, etc.
|
├── assets
|
||||||
|
├── dark.png # Image to embed as base64
|
||||||
|
├── conf.json # Template strings, logo, etc.
|
||||||
├── dark.css # Stylesheet.
|
├── dark.css # Stylesheet.
|
||||||
├── footer.inc.html # Contact info & logo
|
├── footer.inc.html # Contact info & logo
|
||||||
├── head.inc.html # 'Responsive' CSS goes here
|
├── head.inc.html # 'Responsive' CSS goes here
|
||||||
├── signature-reply.inc.html # Simplified signature (loads head)
|
|
||||||
├── signature.html # Full signature (loads head/footer)
|
├── signature.html # Full signature (loads head/footer)
|
||||||
|
├── signature-reply.html # Simplified signature (loads head)
|
||||||
```
|
```
|
||||||
|
|
||||||
Here's how the light one looks:
|
Here's how the light one looks:
|
||||||
```bash
|
```bash
|
||||||
./src
|
./templates
|
||||||
├── light
|
├── light
|
||||||
├── conf.js # Template strings, logo, etc.
|
├── assets
|
||||||
|
├── light.png # Image to embed as base64
|
||||||
|
├── conf.json # Template strings, logo, etc.
|
||||||
├── footer.inc.html # Contact info & logo
|
├── footer.inc.html # Contact info & logo
|
||||||
├── full-mail.html # Body + signature
|
├── full-mail.html # Body + signature
|
||||||
├── head.inc.html # 'Responsive' CSS goes here
|
├── head.inc.html # 'Responsive' CSS goes here
|
||||||
├── signature-reply.inc.html # Simplified signature (loads head)
|
├── light.css # Stylesheet.
|
||||||
├── signature.html # Full signature (loads head/footer)
|
├── signature.html # Full signature (loads head/footer)
|
||||||
|
├── signature-reply.html # Simplified signature (loads head)
|
||||||
```
|
```
|
||||||
|
|
||||||
Files are included via [gulp-preprocess](https://www.npmjs.com/package/gulp-preprocess).
|
Files are included via [gulp-preprocess](https://www.npmjs.com/package/gulp-preprocess).
|
||||||
|
|
@ -151,7 +157,7 @@ You are of course encouraged to change the default structure for your use case.
|
||||||
|
|
||||||
## Overview of the build process
|
## Overview of the build process
|
||||||
The diagram below shows what happens to your email templates.
|
The diagram below shows what happens to your email templates.
|
||||||
Each folder in 'src' is considered a `template group`. A template file will be generated for each of the configuration objects you add have in the template group -> `conf.js`.
|
Each folder in 'templates' is considered a `template group`. A template file will be generated for each of the configuration objects you add have in the template group -> `conf.js`.
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
24
package.json
24
package.json
|
|
@ -23,27 +23,31 @@
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/danmindru/responsive-html-email-signature#readme",
|
"homepage": "https://github.com/danmindru/responsive-html-email-signature#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"autoprefixer": "^9.1.3",
|
"autoprefixer": "^9.5.1",
|
||||||
"del": "^3.0.0",
|
"del": "^4.1.0",
|
||||||
|
"graceful-fs": "^4.1.15",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"gulp-autoprefixer": "^6.0.0",
|
"gulp-autoprefixer": "^6.1.0",
|
||||||
"gulp-david": "^1.0.1",
|
"gulp-david": "^1.0.1",
|
||||||
"gulp-inline-css": "^3.3.0",
|
"gulp-inline-css": "^3.3.1",
|
||||||
"gulp-inline-images-no-http": "^1.3.0",
|
"gulp-inline-images-no-http": "^1.3.0",
|
||||||
"gulp-jsonlint": "^1.2.2",
|
"gulp-jsonlint": "^1.3.0",
|
||||||
"gulp-less": "^4.0.1",
|
"gulp-less": "^4.0.1",
|
||||||
"gulp-minify-html": "~1.0.5",
|
"gulp-minify-html": "~1.0.5",
|
||||||
"gulp-minify-inline": "^1.0.0",
|
"gulp-minify-inline": "^1.1.0",
|
||||||
"gulp-plumber": "^1.2.0",
|
"gulp-plumber": "^1.2.1",
|
||||||
"gulp-postcss": "^8.0.0",
|
"gulp-postcss": "^8.0.0",
|
||||||
"gulp-preprocess": "^3.0.1",
|
"gulp-preprocess": "^3.0.2",
|
||||||
"gulp-rename": "^1.4.0",
|
"gulp-rename": "^1.4.0",
|
||||||
"gulp-sass": "^4.0.1",
|
"gulp-sass": "^4.0.2",
|
||||||
"klaw": "^3.0.0",
|
"klaw": "^3.0.0",
|
||||||
"lodash": "^4.17.11",
|
|
||||||
"q": "^1.5.1"
|
"q": "^1.5.1"
|
||||||
},
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"graceful-fs": "^4.1.15"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"create": "node_modules/.bin/gulp",
|
||||||
"deploy": "cp -r dist demo && git push origin `git subtree split --prefix demo develop`:gh-pages --force"
|
"deploy": "cp -r dist demo && git push origin `git subtree split --prefix demo develop`:gh-pages --force"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue