Make a POC for building a React component that gets bundled for NPM package.
Will utilize:
- React
- TypeScript
- StyledComponents
- Storybook
- Rollup
- Get started by running npm installso that dependencies are loaded.
All development will be done inside Storybook so components can be built in isolation.
- Run npm run storybook:devand await the browser to open http://localhost:6006/. All changes will be hot-reloaded under the hood.
- Using rollup to bundle the asssets before shipping to NPM as package.
- Run npm run build
- You should see a builddirectory at the root level. This is what will be pacakged & shipped (todo)