-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3fea94d
commit 3628869
Showing
1 changed file
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
# iris_web | ||
|
||
project srouce: [project/iris](/project/iris) | ||
cross platform support in web | ||
|
||
## build | ||
## Install | ||
|
||
### Build for production | ||
npm install -g pnpm | ||
|
||
Run [build.sh](build.sh) | ||
## QuickStart | ||
|
||
### Build for local dev | ||
pnpm start | ||
|
||
Run [build_local_dev.sh](build_local_dev.sh) | ||
this command can watch files and recompile whenever they change. | ||
|
||
Then add the `http://localhost:8080/lib-iris-web.js` to your html `srcipt`, e.g., | ||
## Build | ||
|
||
pnpm build | ||
|
||
The output file will be placed in `packages/rtc/dist` | ||
|
||
## How to install iris_web to your cross platform | ||
|
||
prepare a [Live Server](https://github.com/ritwickdey/vscode-live-server-plus-plus) | ||
|
||
add the `iris-web-rtc_x.x.x-x.x.js` to your html `srcipt`, e.g., | ||
|
||
```html | ||
<script | ||
src="http://localhost:8080/lib-iris-web.js" | ||
src="http://127.0.0.1:5500/lib-iris-web.js" | ||
type="application/javascript" | ||
></script> | ||
``` |