bodyspec-shared-components v0.1.0
#BodySpec/Shared Components
The repo contains shared UI components, that can be used in the intakes and the main web application. The components are created using Bootstrap v5.
##Development
For the components development Storybook is used here.
To run Storybook server, run
yarn storybook
##Approach
To create or debug a component - create a story for your component using such naming template: YourComponent.stories.tsx
. See more details
Each component should have unit tests for that, based on the snapshot testing.
##Code Style and Testing
There are some code rules we should follow. There are applied eslint, ts and stylelint rules. To check your code use command yarn code_style
. To fix code issues - yarn code_style:fix
.
To run unit-tests use yarn test
command. If you want to update snapshots - use yarn testu
.
##Publishing
Notice, before each publish it's required to run all code checks, tests and build the lib. It's run automatically. Use yarn lib:build
command.
To publish the library use command yarn lib:release
.
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago