react-demo-tab-cli
CLI tool for creating demos of react components
Last updated 4 months ago by marko424 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-demo-tab-cli 
SYNC missed versions from official npm registry.

React DemoTab CLI ????

npm version build status oclif prettier

Easily create demos of react components

Maintaining example code and demo separately makes it painful, it's easy to get them out of sync ????

Code can't lie, demo code can ????

DemoTab CLI keeps your code up to date with demo ????

Install

npm install -D react-demo-tab react-demo-tab-cli

Demo

DemoTab example

Usage (3 steps)

To use CLI in your project:

  1. default export react components that you wish to create demos of
  2. name component file as [filename].demotab.[ext]
  3. run $ npx demotab generate

Use created demos ????

Generated Demos

  • By default generated demo files will be prefixed with _ for example:
    MyComponent.demotab.jsx & MyComponent.demotab.css -> _MyComponent.jsx
  • You can set custom prefix with --prefix flag:
    $ demotab generate --prefix=CustomPrefix

Built with DemoTab

Manually create demos

If you wish to manually create demos instead with CLI, see React DemoTab.

License

MIT

Current Tags

  • 1.2.49                                ...           latest (4 months ago)

4 Versions

  • 1.2.49                                ...           4 months ago
  • 1.2.48                                ...           4 months ago
  • 1.2.47                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |