mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 21:33:24 +03:00
1babf6126a
refs https://github.com/TryGhost/Team/issues/2416 This extends the mock API to use a more formal pattern of moving our entity code into a separate package, and use the service/repository patterns we've been work toward. The repository is currently in memory, this allows us to start using the API without having to make commitments to the database structure. We've also injected a single fake webmention for testing. I'd expect the Mention object to change a lot from this initial definition as we gain more information about the type of data we expect to see. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
package.json | ||
README.md |
Webmentions
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests