https://github.com/sc5/ds-workshop
Styled-components library setup (copied from React Components used at @Coderbox)
https://github.com/sc5/ds-workshop
Last synced: 12 months ago
JSON representation
Styled-components library setup (copied from React Components used at @Coderbox)
- Host: GitHub
- URL: https://github.com/sc5/ds-workshop
- Owner: SC5
- Created: 2017-11-15T12:58:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T07:50:53.000Z (over 8 years ago)
- Last Synced: 2025-05-29T14:14:52.048Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Start you own library
```
git clone https://github.com/SC5/ds-workshop-storybook-boilerplate.git
cd ds-workshop-storybook-boilerplate
rm -rf .git
git init
```
# Development
## Run Storybook
```
npm install
npm start
```
## Tools
### Adding a new component
You can add components by using this command
```
npm run create-component MyComponent
```
It will create a new folder for the component and basic files for styling and documenting.
## Build the library
```
npm run build
```
## Try out at the demo page
```
npm run demo
```
Edit sources in `demo` folder.
# Build and publish documentation
You can build Storybook documentation as a static website and publish to GH pages.
```
npm run build-storybook
npm run deploy-storybook
```