@lmuresan/the-brain
v0.0.8
Published
Reliance Health React component library
Downloads
3
Readme
The Brain
Reliance Health React Components Library
This repo will host all the react components that will be shared across our react apps
List of available components
https://github.com/reliancehealthinc/the-brain/blob/main/docs/list_of_components.md
Development
We are only going to have a main branch that can be updated only by pull request. To have your pr merged you need to comply with the following:
- unit tests are passing
- linting is passing
- at least 1 approve
How to start the project?
To set up the repo, run the commands below, or :
- make sure you have
npm
oryarn
(version 2) installed - Pull Repository
git clone [email protected]:reliancehealthinc/the-brain.git
- Make sure you have node 14 (you can check the version using
node --version
) - Install Dependencies by running
npm install
- Start the storybook (playground for components)
npm run storybook
- Open the following http://localhost:6006/
How to use the library
Install the library
Run npm install @lmuresan/the-brain
In your code import the components that
you want:
import { Button } from "@lmuresan-thebrain";
...
...
<Button label="My new button" />
Import css into sass/scss
Make sure your webpack has a css loader Add the following line:
@import url(~@lmuresan/the-brain/dist/cjs/thebrain.min.css);
Publish new version of the library
TBC
Publish the new version on the playground
TBC