File tree Expand file tree Collapse file tree 6 files changed +20
-26
lines changed Expand file tree Collapse file tree 6 files changed +20
-26
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,13 @@ jobs:
33
33
node-version : 18 # 或者您需要的 Node.js 版本
34
34
35
35
- name : Install packages dependencies
36
- run : yarn install --frozen-lockfile
36
+ run : pnpm install --frozen-lockfile
37
37
38
38
- name : Build:api
39
- run : yarn build && yarn build:api
40
-
41
- - name : Install doc-site dependencies
42
- run : yarn install --frozen-lockfile
43
- working-directory : ./doc-site
39
+ run : pnpm build && pnpm build:api
44
40
45
41
- name : Build doc-site
46
- run : yarn build
42
+ run : pnpm build
47
43
working-directory : ./doc-site
48
44
49
45
- name : Setup Pages
Original file line number Diff line number Diff line change 1
1
dist
2
- yarn.lock
3
- .yarn
4
2
.dumi
Original file line number Diff line number Diff line change @@ -162,17 +162,17 @@ recorder.start(); // => ReadableStream
162
162
### Running the Project
163
163
164
164
1 . Clone the current project locally
165
- 2 . Execute ` yarn install && yarn build` in the root directory
166
- 3 . Change directory to the specific package (e.g., av-cliper) and run ` yarn dev`
165
+ 2 . Execute ` pnpm install && pnpm build` in the root directory
166
+ 3 . Change directory to the specific package (e.g., av-cliper) and run ` pnpm dev`
167
167
4 . The path is the filename in the DEMO directory, such as ` concat-media.html `
168
168
5 . Open the DEMO URL in the browser, such as ` http://localhost:6066/concat-media.html `
169
- 6 . Run unit tests for the package with ` yarn test`
169
+ 6 . Run unit tests for the package with ` pnpm test`
170
170
171
171
### Running the WebAV Site
172
172
173
173
1 . Clone the current project locally
174
- 2 . Execute ` yarn install && yarn build` in the root directory
175
- 3 . Change directory to ` doc-site ` and run ` yarn dev`
174
+ 2 . Execute ` pnpm install && pnpm build` in the root directory
175
+ 3 . Change directory to ` doc-site ` and run ` pnpm dev`
176
176
4 . Follow the terminal prompts to visit the specified URL
177
177
178
178
If you are a beginner in the field of web audio and video, you can start by learning the basics:
Original file line number Diff line number Diff line change @@ -162,17 +162,17 @@ recorder.start(); // => ReadableStream
162
162
### 运行项目
163
163
164
164
1 . clone 当前项目到本地
165
- 2 . 在根目录下执行 ` yarn install && yarn build`
166
- 3 . cd 跳转到特定 package (假设为 av-cliper),运行 ` yarn dev`
165
+ 2 . 在根目录下执行 ` pnpm install && pnpm build`
166
+ 3 . cd 跳转到特定 package (假设为 av-cliper),运行 ` pnpm dev`
167
167
4 . path 为 DEMO 目录下的文件名,如 ` concat-media.html `
168
168
5 . 在浏览器中打开 DEMO URL,如 ` http://localhost:6066/concat-media.html `
169
- 6 . ` yarn test` 运行该 package 的单元测试
169
+ 6 . ` pnpm test` 运行该 package 的单元测试
170
170
171
171
### 运行 WebAV 站点
172
172
173
173
1 . clone 当前项目到本地
174
- 2 . 在根目录下执行 ` yarn install && yarn build`
175
- 3 . cd 跳转到 ` doc-site ` 目录,执行 ` yarn dev`
174
+ 2 . 在根目录下执行 ` pnpm install && pnpm build`
175
+ 3 . cd 跳转到 ` doc-site ` 目录,执行 ` pnpm dev`
176
176
4 . 根据终端提示,访问指定 URL
177
177
178
178
如果你是 Web 音视频领域的初学者,可以先了解入门知识
Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ A static site base on [dumi](https://d.umijs.org).
6
6
7
7
``` bash
8
8
# install dependencies
9
- $ yarn install
9
+ $ pnpm install
10
10
11
11
# start dev server
12
- $ yarn start
12
+ $ pnpm start
13
13
14
14
# build docs
15
- $ yarn run build
15
+ $ pnpm run build
16
16
```
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ npm install @webav/av-cliper
20
20
21
21
# or
22
22
23
- yarn add @webav/av-cliper
23
+ pnpm add @webav/av-cliper
24
24
```
25
25
26
26
## API
@@ -44,11 +44,11 @@ WebAV 项目包含三个模块,使用 TypeDoc 生成 API 文档
44
44
45
45
若你对 WebAV 感兴趣,可以尝试在本地启动项目
46
46
47
- 1 . 安装依赖:在根目录执行 ` yarn install`
48
- 2 . 构建所有 packages:在根目录执行 ` yarn build`
47
+ 1 . 安装依赖:在根目录执行 ` pnpm install`
48
+ 2 . 构建所有 packages:在根目录执行 ` pnpm build`
49
49
3 . 运行 DEMO
50
50
1 . cd 到特定的 package 目录,比如 ` cd packages/av-cliper `
51
- 2 . 执行 ` yarn dev`
51
+ 2 . 执行 ` pnpm dev`
52
52
4 . 访问 DEMO
53
53
1 . 复制控制台中打印的 baseUrl,类似 ` http://localhost:6066/ `
54
54
2 . 确定对应 DEMO 的 path,是 ` packages/av-cliper/demo ` 目录下的文件名,如 ` concat-media.html `
You can’t perform that action at this time.
0 commit comments