Ghost/ghost/email-content-generator
Naz 393834ae4a Added html-to-text dependency
refs https://github.com/TryGhost/Toolbox/issues/292

- This dependency is needed for the package to function properly. Have pinned it to a lower major than is currently available to avoid a unnecessary rabbithole of dealing with breaking changes
2022-05-04 17:16:43 +08:00
..
lib Reworked EmailContentGenerator to async/await 2022-05-04 17:16:43 +08:00
test Bootstrapped email-content-generator package 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.