kasar-ui
v1.0.0
Published
UI library kasarlabs
Downloads
2
Readme
React component library with typescript Boilerplate
This boilerplate will help you to understand how to
- create themable react component library with the help of react, style-components, typescript & babel 7.
- write unit tests for components with the help of jest & react-testing-library.
- transpile typescript files with the help of babel 7.
- develop components with live reloading wityh the help of storybook
Getting Started
- You can build your own library by just downloading this repo and change the project name.
- You can also use the existing components to build your project. you can install the components using
npm i -S @react-basis/core
. - You can also checkout the components here.
Major things to remember
If you want to add any alias then you have to add in below files
- tsconfig file at the project level so that storybook can understand the alias.
- tsconfig file at the package level so that your typescript and babel can understand the alias while building packages
- jest.config.js so that jest can understand the alias.
Before publishing your components you have to create npm user account and org account as well to use the org name as the scope. For eg. I have created react-basis
org so that I can use as the scope.
Built With
🔥 react
💥 babel
npm scripts
yarn build
to build componentsyarn commit
to commit with conventional-commit approachyarn lint:css
to run the css lintyarn lint:ts
to run the ts lintyarn lint
to run both css & ts lintyarn test
to run tests and type checkyarn test:update
to upgrate snapshotsyarn test:watch
to watch testsyarn type-check
to run tsc to check typesyarn test:jest
to run test onlyyarn storybook
to run storybook for live reloading your componentsyarn release
to publish your components
License
This project is licensed under the MIT License - see the LICENSE file for details