Skip to content

Commit 70f8775

Browse files
committed
refactor: replace yarn to pnpm
1 parent 454fb7b commit 70f8775

File tree

6 files changed

+20
-26
lines changed

6 files changed

+20
-26
lines changed

.github/workflows/deploy-doc-site.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,13 @@ jobs:
3333
node-version: 18 # 或者您需要的 Node.js 版本
3434

3535
- name: Install packages dependencies
36-
run: yarn install --frozen-lockfile
36+
run: pnpm install --frozen-lockfile
3737

3838
- 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
4440

4541
- name: Build doc-site
46-
run: yarn build
42+
run: pnpm build
4743
working-directory: ./doc-site
4844

4945
- name: Setup Pages

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
dist
2-
yarn.lock
3-
.yarn
42
.dumi

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,17 @@ recorder.start(); // => ReadableStream
162162
### Running the Project
163163

164164
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`
167167
4. The path is the filename in the DEMO directory, such as `concat-media.html`
168168
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`
170170

171171
### Running the WebAV Site
172172

173173
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`
176176
4. Follow the terminal prompts to visit the specified URL
177177

178178
If you are a beginner in the field of web audio and video, you can start by learning the basics:

README_CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,17 @@ recorder.start(); // => ReadableStream
162162
### 运行项目
163163

164164
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`
167167
4. path 为 DEMO 目录下的文件名,如 `concat-media.html`
168168
5. 在浏览器中打开 DEMO URL,如 `http://localhost:6066/concat-media.html`
169-
6. `yarn test` 运行该 package 的单元测试
169+
6. `pnpm test` 运行该 package 的单元测试
170170

171171
### 运行 WebAV 站点
172172

173173
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`
176176
4. 根据终端提示,访问指定 URL
177177

178178
如果你是 Web 音视频领域的初学者,可以先了解入门知识

doc-site/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ A static site base on [dumi](https://d.umijs.org).
66

77
```bash
88
# install dependencies
9-
$ yarn install
9+
$ pnpm install
1010

1111
# start dev server
12-
$ yarn start
12+
$ pnpm start
1313

1414
# build docs
15-
$ yarn run build
15+
$ pnpm run build
1616
```

doc-site/docs/guide/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ npm install @webav/av-cliper
2020

2121
# or
2222

23-
yarn add @webav/av-cliper
23+
pnpm add @webav/av-cliper
2424
```
2525

2626
## API
@@ -44,11 +44,11 @@ WebAV 项目包含三个模块,使用 TypeDoc 生成 API 文档
4444

4545
若你对 WebAV 感兴趣,可以尝试在本地启动项目
4646

47-
1. 安装依赖:在根目录执行 `yarn install`
48-
2. 构建所有 packages:在根目录执行 `yarn build`
47+
1. 安装依赖:在根目录执行 `pnpm install`
48+
2. 构建所有 packages:在根目录执行 `pnpm build`
4949
3. 运行 DEMO
5050
1. cd 到特定的 package 目录,比如 `cd packages/av-cliper`
51-
2. 执行 `yarn dev`
51+
2. 执行 `pnpm dev`
5252
4. 访问 DEMO
5353
1. 复制控制台中打印的 baseUrl,类似 `http://localhost:6066/`
5454
2. 确定对应 DEMO 的 path,是 `packages/av-cliper/demo` 目录下的文件名,如 `concat-media.html`

0 commit comments

Comments
 (0)