mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
53d24e501d
refs https://github.com/TryGhost/Members/commit/5172e40646 When we updated to use the OffersAPI instead of OfferRepository this was missed, and we were passing blank coupon to Stripe Checkout. This should eventually be replaced with a call like `getCoupon(offerId)` from a payments service. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
jsconfig.json | ||
LICENSE | ||
package.json | ||
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.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests