Ghost/ghost/model-to-domain-event-interceptor
Naz 9ce0c92597 Refactored model interceptor to use switch syntax
refs https://github.com/TryGhost/Arch/issues/41

- Having switch statement instead of lots of if/else is slightly more readable. Before adding 5 more event mappings it makes sense to cleanup before things get too messy :)
2023-07-18 18:36:49 +08:00
..
src Refactored model interceptor to use switch syntax 2023-07-18 18:36:49 +08:00
test Cleaned up commented out debug code 2023-07-03 18:58:17 +08:00
.eslintrc.js Fixed TypeScript related no-unused-vars linting errors 2023-07-03 18:47:27 +08:00
package.json Improved monorepo tooling setup 2023-07-12 16:27:39 +02:00
README.md Extracted model event interceptor to separate package 2023-07-03 18:47:27 +08:00
tsconfig.json Deduplicated tsconfig.json files 2023-07-12 09:34:00 +02:00

Model To Domain Event Interceptor

Model event interceptor that maps legacy model events to Domain event

Usage

Develop

This is a monorepo package.

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.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests