This package has been deprecated

Author message:

since react-styleguidist v5.0 it supports create-react-app by default. You don't need this package anymore

react-app-styleguidist

1.0.0 • Public • Published

React-app-styleguidist

react-styleguidist integration for create-react-app

Setup

If you already have project built with create-react-app, you need to do the following to get styleguides for your components:

  1. npm install react-app-styleguidist --save-dev
  2. add the following line into your scripts section of your package.json:
"styleguide": "styleguidist server ./src/App.js"

Then run npm run styleguide and you will see styleguide with your App component. If you have different components structure, you should update this section according to your preferences, for example ./src/components/*.js. It will build styleguide for all files that you have in your components folder.

Also, there is an example folder, that contains sample project with all necessary setup.

Customize styleguide

See react-styleguidist main documentation for more details.

Ejecting

For some more advanced features you might need to change some configuration options. This package supposed to be zero-configuration tool (except components paths), so you need to use react-styleguidist directly. To do this, you can run eject command and follow the instructions in the terminal:

./node_modules/.bin/styleguidist eject

This command will add styleguide.config.js with all previously used options, but now they are belong to yor project, so you can edit them.

Readme

Keywords

none

Package Sidebar

Install

npm i react-app-styleguidist

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • just-boris