React UI
React UI component library for use at Pattern.
Development
This project can be used as a frontend override, like any other app. Run yarn dev
and set a frontend override to see your updates.
Adding/Updating Types
Typescript typechecking happens at build-time, so setting a frontend override won't help with typechecking. To ensure your types still work, you'll need to:
yalc publish
in this repo
yalc link @patterninc/react-ui
in shelf/predict/marketshare/etc.
After that, you can easily push out updates from here (react-ui) to the other repos by doing:
Note: you can either install yalc
globally, or prefix all the previous commands with npx
, e.g. npx yalc publish
Updating package.json version
Do either of the following:
- Run
npm version patch
- Manually update the
package.json
version field by opening package.json
and incrementing the last number
Removing yalc from Apps
Once you've tested the types, run
yalc remove @patterninc/react-ui
in Predict/Shelf/Marketshare/etc to remove yalc changes