Email template for lacaravanecoop newsletter, "La feuille de chou" ; integrated upon mjml templating engine.
- Git and Git Flow
- Node (14.2.0) and npm(6.14.4) (via Node Version Manager)
- MJML to HTML generation
- images optimisation
$ git@github.com:lacaravanecoop/feuilledechou.git ./feuilledechoux
$ npm install
All the tasks works the same. Files from "src" folder are processed and generated in the dest directory.
Standalone build
$ npm run build
Build as any "src" files are modificated
$ npm run watch
-
|--cli
|--|--imagemin.js # Imagemin task for image optimisation
|
|--dest # Destination folder after build run (not to be edited)
|--|--assets # Assets destination folder (images)
|--|--index.html # Generated HTML mail file
|
|--src # Source folder
|--|--assets
|--|--|--images # Image sources
|--|
|--|--parts # External MJML files
|--|--|--content # External MJML files dedicated to contents
|--|--|--structure # External MJML files dedicated to email structure
|--|
|--|--index.mjml # Main MJML file
|
|--.gitignore # All git ignored file on the project
|--.nvmrc # Node Version environnement file on the project
|--package.json # Project infos and dependencies
|--package-lock.json # Project dependencies structure
|--README.medium # The file You read actually
-
tests, tests and retests
Kisses and love, anvy questions or suggestions are welcome.