Ghost/ghost/offers
Fabien O'Carroll ff2da8a417 Added and emitted events for Offer Created
refs https://github.com/TryGhost/Team/issues/1166

Since we removed the creation of coupons from the Offers module, we must
emit events so that the Payments module can handle creating Coupons when
Offers are created.

We also export the events from the module so that they can be listened
to by the Payments module.

We also export other internals of the module so that the types can be
used.
2021-10-21 15:40:55 +02:00
..
lib Added and emitted events for Offer Created 2021-10-21 15:40:55 +02:00
test
.eslintrc.js
index.js Added and emitted events for Offer Created 2021-10-21 15:40:55 +02:00
jsconfig.json
LICENSE
package.json Update dependency mocha to v9.1.3 2021-10-20 13:45:40 +00:00
README.md

Offers

Install

npm install @tryghost/offers --save

or

yarn add @tryghost/offers

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