@generative-dom/cli
v0.1.0
Published
Generative DOM CLI — plugin scaffolding and dev helpers
Downloads
75
Maintainers
Readme
@generative-dom/cli
Command-line helpers for the Generative DOM monorepo. Zero external npm dependencies.
Commands
generativeDom create-plugin <name> [--priority <n>]
generativeDom bench
generativeDom validate <file.md>
generativeDom --help
generativeDom --versioncreate-plugin
Scaffolds a new plugin at packages/plugins/<name>/ using the built-in
template. The template produces a minimal GenerativeDomPlugin factory wired to
@generative-dom/core. The root tsconfig.json is updated to reference the new
package.
bench
Runs pnpm bench:tests from the repository root.
validate <file.md>
Parses a markdown file using GenerativeDom with markdownBase() installed and
reports any plugin errors captured via onError. Exits with a non-zero code
if any errors were captured.
Programmatic API
import { createPlugin } from '@generative-dom/cli';
await createPlugin({ name: 'my-plugin', priority: 50, repoRoot: process.cwd() });