1.0.0 ⢠Published 3 years ago
kasar-ui v1.0.0
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
ā typescript
š storybook
š„ babel
npm scripts
yarn buildto build componentsyarn committo commit with conventional-commit approachyarn lint:cssto run the css lintyarn lint:tsto run the ts lintyarn lintto run both css & ts lintyarn testto run tests and type checkyarn test:updateto upgrate snapshotsyarn test:watchto watch testsyarn type-checkto run tsc to check typesyarn test:jestto run test onlyyarn storybookto run storybook for live reloading your componentsyarn releaseto publish your components
License
This project is licensed under the MIT License - see the LICENSE file for details
1.0.0
3 years ago