wordflow-dataset defines and validates portable content datasets for Wordflow seeding workflows.
The repository now contains the first portable dataset contract, validation tooling, sample content for repeatable seeding workflows, and a narrow WordPress Playground smoke harness that proves portable datasets can be applied to fresh WordPress installs. The public WordPress apply CLI is still intentionally deferred so the canonical dataset model stays portable.
- a documented dataset contract
- fixture datasets in
datasets/editorial-sampleanddatasets/theme-unit-test - a portable validation library via
validateDataset(path) - a validating CLI via
wordflow-dataset validate <path>
Install dependencies:
bun installValidate the sample dataset:
bun run ./src/cli.ts validate datasets/editorial-sampleRun the local checks:
bun run build
bun run check-types
bun run lint
bun run testRun the internal WordPress apply smoke harness:
bun run wp:smoke:editorial-sample
bun run wp:smoke:theme-unit-testThese smoke commands use the WordPress Playground CLI and download a fresh WordPress runtime the first time they run.
datasets/<slug>/
βββ README.md
βββ assets/
βββ content/
β βββ page/
β β βββ <slug>/
β β βββ body.md
β β βββ item.json
β βββ post/
β βββ <slug>/
β βββ body.md
β βββ item.json
βββ dataset.json
βββ sources.json
βββ taxonomies.json
This repo uses Changesets for versioning and npm publishing.
- Add a changeset with
bun run changeset. - Version the package with
bun run version. - Publish with
bun run release.
MIT. See LICENSE.