Ghost/ghost/data-generator
Sam Lord 4ff467794f Entirely rewrote data generator to simplify codebase
refs: https://github.com/TryGhost/DevOps/issues/11

This is a pretty huge commit, but the relevant points are:
* Each importer no longer needs to be passed a set of data, it just gets the data it needs
* Each importer specifies its dependencies, so that the order of import can be determined at runtime using a topological sort
* The main data generator function can just tell each importer to import the data it has

This makes working on the data generator much easier.

Some other benefits are:
* Batched importing, massively speeding up the whole process
* `--tables` to set the exact tables you want to import, and specify the quantity of each
2023-08-04 13:36:09 +01:00
..
lib Entirely rewrote data generator to simplify codebase 2023-08-04 13:36:09 +01:00
test Entirely rewrote data generator to simplify codebase 2023-08-04 13:36:09 +01:00
.eslintrc.js Added eslint rule for file naming convention 2023-05-09 12:34:34 -04:00
index.js Entirely rewrote data generator to simplify codebase 2023-08-04 13:36:09 +01:00
package.json Update Test & linting packages 2023-07-11 15:26:07 +02:00
README.md Added command to generate demo data (#15691) 2022-10-26 17:55:08 +01:00

Data Generator

Generate fake data for testing Ghost

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