Ghost/ghost/offers
Fabien O'Carroll 1312943f5b Updated Offer to only change code once
no-issue

This simplifies the handling of updating redirects for a code, and
doesn't affect our application layer because we never have the need to
change a code twice.

In future this should be replaced with events at the domain level - so
that we do not have to track changed properties and instead a redirect
service can listen to events, which would be dispatched on a successful
save by the repository.
2021-10-08 13:02:22 +02:00
..
lib Updated Offer to only change code once 2021-10-08 13:02:22 +02:00
test
.eslintrc.js
index.js Updated Offer to only change code once 2021-10-08 13:02:22 +02:00
jsconfig.json
LICENSE
package.json Published new versions 2021-10-08 12:43:16 +02: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