JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q42080F
  • License MIT

Command-line tool for installing UI components from Shim

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.

    DocumentationGitHubnpm

    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 --overwrite

    init

    Create a configuration file:

    pnpm dlx @kkga/shim init

    Configuration

    Create shim.config.json in your project root:

    {
      "componentsPath": "src/components"
    }

    Path Resolution

    1. --path flag (highest priority)
    2. componentsPath in config file
    3. components/ 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