Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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