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
pnpm install
To make changes:
- Edit files in
src/
pnpm build
- Bump the version number in package.json
- Commit and push changes back to the repo
- git tag
vx.x.x
- git push --tags
Upon tagging, CI will publish that version to NPM.
To use your changes, run pnpm update @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-chakra-theme
.