1.0.47 • Published 7 years ago

@compositor/kit-cli v1.0.47

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Kit CLI

Command line interface for Compositor Kit, including an isolated development server and project generator.

$ npm install --global @compositor/kit-cli

Development Server

Isolated development server for React components, powered by x0

  • Zero configuration
  • Hot reloading
  • No entry point or HTML required
  • Isolated from your main application
  • Renders components and elements
  • Supports MDX & JSX formats

Start the dev server by passing a directory of components as the first argument. Be sure to install any local dependencies, including react.

kit examples

Options

-o --open     Opens development server in default browser
-p --port     Port for development server
-m --mode     Enable alternative server UI modes
--webpack     Path to custom webpack.config.js

To see available options, run:

kit --help

All command line options can be set in your package.json file with a kit field.

{
  "kit": {
    "port": 9000,
    "open": true
  }
}

Modes

By default, the Kit dev server renders each component in isolation with minimal base styling for the document. Use the --mode flag to enable alternative modes for the development UI.

Current modes include:

  • library
  • responsive
  • xray
  • sandbox (experimental)

Library Mode

Renders components using the Kit Library component component, which displays all components together in a grid and in isolation when clicked.

kit examples --mode library

Generator

Run the init command and follow the prompts to create a new project.

kit init

Help

kit --help

Made by Compositor | MIT License

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.40-6

7 years ago

1.0.40-5

7 years ago

1.0.40-4

7 years ago

1.0.40-3

7 years ago

1.0.40-2

7 years ago

1.0.40-1

7 years ago

1.0.40-0

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.38-7

7 years ago

1.0.38-6

7 years ago

1.0.38-5

7 years ago

1.0.38-4

7 years ago

1.0.38-3

7 years ago

1.0.38-2

7 years ago

1.0.38-1

7 years ago

1.0.38-0

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.32

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago