Skip to content

wordflow-studio/wordflow-datasets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

wordflow-dataset

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.

What ships in v1

Quick start

Install dependencies:

bun install

Validate the sample dataset:

bun run ./src/cli.ts validate datasets/editorial-sample

Run the local checks:

bun run build
bun run check-types
bun run lint
bun run test

Run the internal WordPress apply smoke harness:

bun run wp:smoke:editorial-sample
bun run wp:smoke:theme-unit-test

These smoke commands use the WordPress Playground CLI and download a fresh WordPress runtime the first time they run.

Dataset layout

datasets/<slug>/
β”œβ”€β”€ README.md
β”œβ”€β”€ assets/
β”œβ”€β”€ content/
β”‚   β”œβ”€β”€ page/
β”‚   β”‚   └── <slug>/
β”‚   β”‚       β”œβ”€β”€ body.md
β”‚   β”‚       └── item.json
β”‚   └── post/
β”‚       └── <slug>/
β”‚           β”œβ”€β”€ body.md
β”‚           └── item.json
β”œβ”€β”€ dataset.json
β”œβ”€β”€ sources.json
└── taxonomies.json

Documentation

Releases

This repo uses Changesets for versioning and npm publishing.

  1. Add a changeset with bun run changeset.
  2. Version the package with bun run version.
  3. Publish with bun run release.

License

MIT. See LICENSE.

About

🐝 Versioned WordPress datasets for repeatable site seeding

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors