Ghost/ghost/email-content-generator
Naz 81c6af77b5 Fixed unit test coverage
refs https://github.com/TryGhost/Toolbox/issues/292

- With the package being out of TryGhost/Ghost codebase the paths have changed and needed to introdude a concept of "fixtures" for the package to be able to funciton independently
2022-05-04 17:16:43 +08:00
..
lib Reworked EmailContentGenerator to async/await 2022-05-04 17:16:43 +08:00
test Fixed unit test coverage 2022-05-04 17:16:43 +08:00
.eslintrc.js Bootstrapped email-content-generator package 2022-05-04 17:16:43 +08:00
index.js Bootstrapped email-content-generator package 2022-05-04 17:16:43 +08:00
LICENSE Bootstrapped email-content-generator package 2022-05-04 17:16:43 +08:00
package.json Added html-to-text dependency 2022-05-04 17:16:43 +08:00
README.md Bootstrapped email-content-generator package 2022-05-04 17:16:43 +08:00

Email Content Generator

Utility to generate html and text versions for emails using email templates and data

Install

npm install @tryghost/email-content-generator --save

or

yarn add @tryghost/email-content-generator

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.