Bugfix/build failing on node10 (#58)

* Update dependencies
* Add note about create command and fix outdated docs
This commit is contained in:
Dan Mindru 2019-04-24 22:03:21 +02:00 committed by GitHub
parent d567e67d7e
commit a5f0b3e83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 664 additions and 452 deletions

View File

@ -51,7 +51,8 @@ Writing HTML emails & email signatures sucks. Let's make it easier. We can't fix
### Installing
```bash
$ 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.
@ -120,26 +121,31 @@ There are 2 examples of template structures, one for the `light` email template
Here's how the dark one looks:
```bash
./src
./templates
├── dark
├── conf.js # Template strings, logo, etc.
├── assets
├── dark.png # Image to embed as base64
├── conf.json # Template strings, logo, etc.
├── dark.css # Stylesheet.
├── footer.inc.html # Contact info & logo
├── head.inc.html # 'Responsive' CSS goes here
├── signature-reply.inc.html # Simplified signature (loads head)
├── signature.html # Full signature (loads head/footer)
├── signature-reply.html # Simplified signature (loads head)
```
Here's how the light one looks:
```bash
./src
./templates
├── 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
├── full-mail.html # Body + signature
├── 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-reply.html # Simplified signature (loads head)
```
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
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`.
![Responsive HTML email template/signatures diagram](https://user-images.githubusercontent.com/1515742/45000195-35268300-afc3-11e8-82b4-7507430c48a0.png)

1070
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,27 +23,31 @@
},
"homepage": "https://github.com/danmindru/responsive-html-email-signature#readme",
"dependencies": {
"autoprefixer": "^9.1.3",
"del": "^3.0.0",
"autoprefixer": "^9.5.1",
"del": "^4.1.0",
"graceful-fs": "^4.1.15",
"gulp": "~3.9.1",
"gulp-autoprefixer": "^6.0.0",
"gulp-autoprefixer": "^6.1.0",
"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-jsonlint": "^1.2.2",
"gulp-jsonlint": "^1.3.0",
"gulp-less": "^4.0.1",
"gulp-minify-html": "~1.0.5",
"gulp-minify-inline": "^1.0.0",
"gulp-plumber": "^1.2.0",
"gulp-minify-inline": "^1.1.0",
"gulp-plumber": "^1.2.1",
"gulp-postcss": "^8.0.0",
"gulp-preprocess": "^3.0.1",
"gulp-preprocess": "^3.0.2",
"gulp-rename": "^1.4.0",
"gulp-sass": "^4.0.1",
"gulp-sass": "^4.0.2",
"klaw": "^3.0.0",
"lodash": "^4.17.11",
"q": "^1.5.1"
},
"resolutions": {
"graceful-fs": "^4.1.15"
},
"scripts": {
"create": "node_modules/.bin/gulp",
"deploy": "cp -r dist demo && git push origin `git subtree split --prefix demo develop`:gh-pages --force"
}
}