@trewknowledge/create-theme
v1.1.1
Published
Scaffolds a modern Trew Knowledge WordPress block theme via `pnpm create @trewknowledge/theme`.
Readme
@trewknowledge/create-theme
Scaffolds a modern Trew Knowledge WordPress block theme.
Usage
pnpm create @trewknowledge/themeYou'll be prompted for:
- Theme name — used as the display name and to derive the text domain.
- PHP Prefix — used for prefixed function/hook names (default:
tk).
Non-interactive usage (used by this repo's own tests and CI):
pnpm create @trewknowledge/theme --theme "My Theme" --prefix mt --yes ./themesWhat you get
A single modern WordPress block theme with:
- No Tailwind, no Sass — plain CSS with native
@layerand@scope. - PHPUnit, JS unit (Vitest), E2E, and accessibility tests, all running
through
@wordpress/env. - One
pnpm run setupcommand that provisions everything those test suites need (Docker must already be installed and running).
See the generated theme's own README/readme.txt for details once scaffolded.
Where it goes
The generated theme is meant to live in themes/ of the
vip-go-skeleton
project, which owns everything repo-level: the root package.json with
@wordpress/env (pnpm env:start / pnpm env:stop), .wp-env.json
(mounting themes/, plugins/ and mu-plugins/), the PHPCS ruleset,
.vscode/, and the GitHub Actions workflow that runs the theme's test suites
and PHPCS. The theme keeps its own build tooling and tests, and its
test:php and setup scripts call into the skeleton root.
