@bopli/theme-cli
v0.13.0
Published
Create, validate, type, build, package, and locally preview independently deployed Bopli themes.
Readme
@bopli/theme-cli
Create, validate, build, and locally preview convention-based Vue themes for Bopli.
npx @bopli/theme-cli create my-theme
cd my-theme
npm install
npm run devInside a generated theme:
npx bopli-theme validate .
npx bopli-theme add page about
npx bopli-theme types .
npx bopli-theme build .
npx bopli-theme dev .
npx bopli-theme dev . --app ../bopli-app --docker-service phpcreate generates a pinned standalone repository from the checked starter scaffold. add page creates one Vue template with a typed inline authoring declaration without overwriting existing files. dev serves a fixture-backed preview with template and setting controls by default; pass --app for full Bopli integration. types derives resources/js/.bopli/types.d.ts from bopli.settings and the autocomplete-friendly declarations. build, package, and dev regenerate it automatically. The compiler extracts and removes authoring declarations before enforcing the public import boundary and emitting a self-contained ESM runtime, CSS, artifact inventory, and protocol-v1 theme.json for immutable CDN publication.
See the Bopli theme toolkit for theme conventions and release workflows.
