1.0.47 • Published 8 years ago

@compositor/kit-cli v1.0.47

Weekly downloads
4
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.46

8 years ago

1.0.45

8 years ago

1.0.44

8 years ago

1.0.43

8 years ago

1.0.42

8 years ago

1.0.41

8 years ago

1.0.40

8 years ago

1.0.40-6

8 years ago

1.0.40-5

8 years ago

1.0.40-4

8 years ago

1.0.40-3

8 years ago

1.0.40-2

8 years ago

1.0.40-1

8 years ago

1.0.40-0

8 years ago

1.0.39

8 years ago

1.0.38

8 years ago

1.0.38-7

8 years ago

1.0.38-6

8 years ago

1.0.38-5

8 years ago

1.0.38-4

8 years ago

1.0.38-3

8 years ago

1.0.38-2

8 years ago

1.0.38-1

8 years ago

1.0.38-0

8 years ago

1.0.37

8 years ago

1.0.36

8 years ago

1.0.35

8 years ago

1.0.34

8 years ago

1.0.32

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago