This monorepo will contain all packages related to core sdk and store.
To setup locally, install lerna globally
npm install -g lerna
Clone the repo locally and run yarn install
git clone https://github.com/100mslive/web-sdks.git
cd web-sdks
yarn install
yarn test
Navigate to playwright directory before running below commands.
yarn install
yarn qa-in
yarn lint
Run whatever things you're changing in below in different terminal instances. For other packages you can navigate to
the folder directly and run yarn start.
# for webapp
> yarn app
# for hms-video-web
> yarn sdk
# for hms-video-store
> yarn store
# for react-sdk
> yarn reactsdk
# for react-ui
> yarn reactui
Note: run yarn start in sdk first and then in store
This is useful when you want to see changes from 100ms-web app being reflected in custom app in dev. Run yarn dev in 100ms-web & yarn start in custom-app
Run this to update all versions.
Go to the path of the package ex: cd packages/hms-video-web and run the following command
npm version prerelease --preid=alpha --git-tag-version=false
To update the same in dependent packages run
lerna add @100mslive/hms-video --scope=@100mslive/hms-video-store --exact
To publish an alpha/experimental from your experimental branch, run the 'Create Release PR' action on the experimental branch.
This bumps the version of all the packages and creates a PR against your experimental branch.
Merge this PR into your experimental branch and run the 'Publish Packages' on your branch to publish the packages.
check the existing remotes with git remote -v;
if there is only one remote, add webapp as a new remote.
git remote add -f webapp https://github.com/100mslive/100ms-web.git
git subtree push --prefix=apps/100ms-web webapp sync-webapp
git subtree pull --prefix=apps/100ms-web webapp main
To add an existing repo
git clone <repourl>
cd repo
rm -rf .git
git rm -r --cached
cp -r repo path-to-web-sdks/packageslerna import path-to-repo --flatten --preserve-commit (to be run at root level)To Create a new repo
Follow the documentation here
Note: Don't forget to update mapping in
scripts/constants.js. Also updatelernaCommandsinversioning.jsdepending on the new repo's dependencies and dependents
CYPRESS_TOKEN_ENDPOINT=https://qa-in2.100ms.live/hmsapi/ravi.qa-app.100ms.live/api/token
CYPRESS_ROOM_ID=60f26ab342a997a1ff49c5c2
CYPRESS_ROLE=student
CYPRESS_API_ENV=qa
CYPRESS_INIT_ENDPOINT=https://qa-init.100ms.live/init
yarn cypress:open at the root level to open the cypress app.window.toggleUiTheme() in console to switch between dark and light themes$ claude mcp add web-sdks \
-- python -m otcore.mcp_server <graph>