https://github.com/newsoftwareculture/ui-components
UI components on React
https://github.com/newsoftwareculture/ui-components
components github-actions github-pages react storybook
Last synced: 4 months ago
JSON representation
UI components on React
- Host: GitHub
- URL: https://github.com/newsoftwareculture/ui-components
- Owner: NewSoftwareCulture
- Created: 2022-06-06T21:15:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T22:29:45.000Z (about 4 years ago)
- Last Synced: 2025-02-09T22:20:27.774Z (over 1 year ago)
- Topics: components, github-actions, github-pages, react, storybook
- Language: JavaScript
- Homepage: https://newsoftwareculture.github.io/UI-components
- Size: 2.95 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UI-components with storybook
> Use node v15.8.0
### Install storybook
1. `npx storybook init`
2. `npm run storybook`
### Deploy storybook to Github Pages
1. Edit build-storybook script in package.json
```json
{
"build-storybook": "build-storybook -o docs -s ./src/stories/assets",
}
```
2. Add ssh url
```bash
git remote add origin REPOSITORY_URL
```
3. Add files to commit
```bash
git add .
```
4. Commit changes
```bash
git commit -m "init"
```
5. Push changes
```bash
git push origin master
```
6. Set `/docs` source in `Repository/Settings/Pages/Source`
7. Check your React App in https://NAME_ACCOUNT.github.io/REPOSITORY_NAME