Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@kkga/shim) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Shim CLI
Command-line tool for installing UI components from Shim.
Documentation • GitHub • npm
Usage
pnpm dlx @kkga/shim add <component>Commands
add
Install components to your project:
# Install a component
pnpm dlx @kkga/shim add button
# Install to custom path
pnpm dlx @kkga/shim add button --path src/ui
# Install multiple components
pnpm dlx @kkga/shim add button dialog form
# Overwrite existing files
pnpm dlx @kkga/shim add button --overwriteinit
Create a configuration file:
pnpm dlx @kkga/shim initConfiguration
Create shim.config.json in your project root:
{
"componentsPath": "src/components"
}Path Resolution
--pathflag (highest priority)componentsPathin config filecomponents/directory (default)
All paths are relative to your project root (where package.json is located).
Examples
# Basic usage
pnpm dlx @kkga/shim add button
# With config file { "componentsPath": "src/ui" }
pnpm dlx @kkga/shim add button # → src/ui/button.tsx
# Override config with flag
pnpm dlx @kkga/shim add button --path lib/components # → lib/components/button.tsx