@rhyolite/cli
v0.2.0
Published
Rhyolite CLI
Readme
@rhyolite/cli
Rhyolite CLI
About
This package is the CLI for the Rhyolite monorepo. All command parsing and CLI logic lives here. The core package only provides business rules and utilities.
Usage
Create a plugin or theme
npm create rhyolite@latest my-plugin -- --plugin typescript-plugin
npm create rhyolite@latest my-theme -- --theme typescript-themeThe CLI will print:
plugin createdfor pluginstheme createdfor themes
Local execution (after build)
node dist/index.js my-plugin -- --plugin typescript-plugin
node dist/index.js my-theme -- --theme typescript-themeOr install globally:
pnpm build
pnpm link --global
rhyolite my-plugin -- --plugin typescript-pluginScripts
pnpm build— Compiles the CLI to dist/pnpm lint— Lints TypeScript filespnpm format— Formats the codepnpm test— Tests (placeholder)pnpm clean— Removes dist/
Development
- Edit code in
src/ - Run
pnpm buildto compile - Run
pnpm lintandpnpm formatto keep code style
Dependencies
- Uses the
@rhyolite/corepackage from the monorepo
License
MIT
