livekit-chakra-theme
First-time setup:
- Get @dsa to add you to this repo on GitHub
git clone git@github.com:livekit/livekit-chakra-theme.git
yarn install
To make changes:
- Edit files in
src/
yarn build
- Bump the version number in package.json
- npm publish
- Commit and push changes back to the repo
To use your changes, run yarn upgrade @livekit/livekit-chakra-theme --latest
in the repo that’s using the theme.
Local development without publishing the theme to npm:
To validate your changes locally without publishing the package to npm, you can use yalc.js. This will allow you to use the local, unpublished version of your package in any other local repo. For example, you can see how changes to the theme affect other projects that depend on it before you publish the new theme and update the other repos that depend on it.
- run
yarn watch
to publish and automatically update the package in the local yalc store. - (For the next step you may need to install yalc globally.
npm i yalc -g
or yarn global add yalc
.) - Go to a repo that depends on the
@livekit/livekit-chakra-theme
and run yalc link @livekit/livekit-chakra-theme
. The repo should now use the local version of the theme from the Yalc store. You can find more information in the docs.
Remove local yalc package version: To return to the state before you ran yalc link ...
, you must remove the link to the local yalc store with yalc remove @livekit/livekit-chakrame
.