Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianzone/react-storybook
react storybook template
https://github.com/ianzone/react-storybook
react storybook
Last synced: about 1 month ago
JSON representation
react storybook template
- Host: GitHub
- URL: https://github.com/ianzone/react-storybook
- Owner: ianzone
- Created: 2024-11-09T21:46:28.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-06T04:28:35.000Z (about 2 months ago)
- Last Synced: 2024-12-06T05:23:14.445Z (about 2 months ago)
- Topics: react, storybook
- Language: MDX
- Homepage:
- Size: 1.17 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Toolchain
Tasks
Tools
Options
Building
Linting
Testing
CI/CD
[Publish storybook](https://storybook.js.org/docs/sharing/publish-storybook)
# Build strategy
## Produce
- .js
- .d.ts
- .map
- .css## Bundle dependencies?
### Pros
- Smaller download size when importing from html `` tag via CDN.
### Cons
- Unnecessary build process, library would be bundled by the final user.
- Can not share project dependencies, which cause redundant code and cause different globals for the same dependency.## tsc caveats
[Path alias doesn't work in .d.ts files.](https://github.com/microsoft/TypeScript/issues/15479)
check https://github.com/microsoft/TypeScript/issues/16607
[css won't be copied to dist](https://stackoverflow.com/questions/59213489/include-css-files-in-tsc-typescript-compilation)
solution: vite-plugin-dts