Skip to content

Commit a9c54b8

Browse files
feat: add pnpm
1 parent 81f822e commit a9c54b8

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docs/GETTING-STARTED.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ Taro 编译分为 `dev` 和 `build` 模式:
142142
#### 编译命令
143143

144144
```bash
145+
# pnpm
146+
$ pnpm dev:weapp
147+
$ pnpm build:weapp
148+
145149
# yarn
146150
$ yarn dev:weapp
147151
$ yarn build:weapp
@@ -178,6 +182,10 @@ $ NODE_ENV=production taro build --type weapp --watch # Bash
178182
#### 编译命令
179183

180184
```bash
185+
# pnpm
186+
$ pnpm dev:swan
187+
$ pnpm build:swan
188+
181189
# yarn
182190
$ yarn dev:swan
183191
$ yarn build:swan
@@ -214,6 +222,10 @@ $ NODE_ENV=production taro build --type swan --watch # Bash
214222
#### 编译命令
215223

216224
```bash
225+
# pnpm
226+
$ pnpm dev:alipay
227+
$ pnpm build:alipay
228+
217229
# yarn
218230
$ yarn dev:alipay
219231
$ yarn build:alipay
@@ -250,6 +262,10 @@ $ NODE_ENV=production taro build --type alipay --watch # Bash
250262
#### 编译命令
251263

252264
```bash
265+
# pnpm
266+
$ pnpm dev:tt
267+
$ pnpm build:tt
268+
253269
# yarn
254270
$ yarn dev:tt
255271
$ yarn build:tt
@@ -286,6 +302,10 @@ $ NODE_ENV=production taro build --type tt --watch # Bash
286302
#### 编译命令
287303

288304
```bash
305+
# pnpm
306+
$ pnpm dev:qq
307+
$ pnpm build:qq
308+
289309
# yarn
290310
$ yarn dev:qq
291311
$ yarn build:qq
@@ -322,6 +342,10 @@ $ NODE_ENV=production taro build --type qq --watch # Bash
322342
#### 编译命令
323343

324344
```bash
345+
# pnpm
346+
$ pnpm dev:jd
347+
$ pnpm build:jd
348+
325349
# yarn
326350
$ yarn dev:jd
327351
$ yarn build:jd
@@ -384,6 +408,10 @@ config = {
384408
#### 编译命令
385409

386410
```bash
411+
# pnpm
412+
$ pnpm dev:qywx
413+
$ pnpm build:qywx
414+
387415
# yarn
388416
$ yarn dev:qywx
389417
$ yarn build:qywx
@@ -441,6 +469,10 @@ config = {
441469
#### 编译命令
442470

443471
```bash
472+
# pnpm
473+
$ pnpm dev:dd
474+
$ pnpm build:dd
475+
444476
# yarn
445477
$ yarn dev:dd
446478
$ yarn build:dd
@@ -492,6 +524,10 @@ config = {
492524
#### 编译命令
493525

494526
```bash
527+
# pnpm
528+
$ pnpm dev:iot
529+
$ pnpm build:iot
530+
495531
# yarn
496532
$ yarn dev:iot
497533
$ yarn build:iot
@@ -543,6 +579,10 @@ config = {
543579
#### 编译命令
544580

545581
```bash
582+
# pnpm
583+
$ pnpm dev:lark
584+
$ pnpm build:lark
585+
546586
# yarn
547587
$ yarn dev:lark
548588
$ yarn build:lark
@@ -609,6 +649,10 @@ config = {
609649
#### 编译命令
610650

611651
```bash
652+
# pnpm
653+
$ pnpm dev:kwai
654+
$ pnpm build:kwai
655+
612656
# yarn
613657
$ yarn dev:kwai
614658
$ yarn build:kwai
@@ -639,6 +683,10 @@ $ NODE_ENV=production taro build --type kwai --watch # Bash
639683
#### 编译命令
640684

641685
```bash
686+
# pnpm
687+
$ pnpm dev:h5
688+
$ pnpm build:h5
689+
642690
# yarn
643691
$ yarn dev:h5
644692
$ yarn build:h5
@@ -749,6 +797,8 @@ $ taro update project [版本号]
749797
$ npm install -g @tarojs/cli@1.3.9
750798
# OR 使用 yarn 安装 CLI
751799
$ yarn global add @tarojs/cli@1.3.9
800+
# OR 使用 pnpm 安装 CLI
801+
$ pnpm add -g @tarojs/cli@1.3.9
752802
# OR 安装了 cnpm,使用 cnpm 安装 CLI
753803
$ cnpm install -g @tarojs/cli@1.3.9
754804
```

0 commit comments

Comments
 (0)