Skip to content

安装及使用页面增加 pnpm 用法内容 #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions docs/GETTING-STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ Taro 编译分为 `dev` 和 `build` 模式:
#### 编译命令

```bash
# pnpm
$ pnpm dev:weapp
$ pnpm build:weapp

# yarn
$ yarn dev:weapp
$ yarn build:weapp
Expand Down Expand Up @@ -178,6 +182,10 @@ $ NODE_ENV=production taro build --type weapp --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:swan
$ pnpm build:swan

# yarn
$ yarn dev:swan
$ yarn build:swan
Expand Down Expand Up @@ -214,6 +222,10 @@ $ NODE_ENV=production taro build --type swan --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:alipay
$ pnpm build:alipay

# yarn
$ yarn dev:alipay
$ yarn build:alipay
Expand Down Expand Up @@ -250,6 +262,10 @@ $ NODE_ENV=production taro build --type alipay --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:tt
$ pnpm build:tt

# yarn
$ yarn dev:tt
$ yarn build:tt
Expand Down Expand Up @@ -286,6 +302,10 @@ $ NODE_ENV=production taro build --type tt --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:qq
$ pnpm build:qq

# yarn
$ yarn dev:qq
$ yarn build:qq
Expand Down Expand Up @@ -322,6 +342,10 @@ $ NODE_ENV=production taro build --type qq --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:jd
$ pnpm build:jd

# yarn
$ yarn dev:jd
$ yarn build:jd
Expand Down Expand Up @@ -384,6 +408,10 @@ config = {
#### 编译命令

```bash
# pnpm
$ pnpm dev:qywx
$ pnpm build:qywx

# yarn
$ yarn dev:qywx
$ yarn build:qywx
Expand Down Expand Up @@ -441,6 +469,10 @@ config = {
#### 编译命令

```bash
# pnpm
$ pnpm dev:dd
$ pnpm build:dd

# yarn
$ yarn dev:dd
$ yarn build:dd
Expand Down Expand Up @@ -492,6 +524,10 @@ config = {
#### 编译命令

```bash
# pnpm
$ pnpm dev:iot
$ pnpm build:iot

# yarn
$ yarn dev:iot
$ yarn build:iot
Expand Down Expand Up @@ -543,6 +579,10 @@ config = {
#### 编译命令

```bash
# pnpm
$ pnpm dev:lark
$ pnpm build:lark

# yarn
$ yarn dev:lark
$ yarn build:lark
Expand Down Expand Up @@ -609,6 +649,10 @@ config = {
#### 编译命令

```bash
# pnpm
$ pnpm dev:kwai
$ pnpm build:kwai

# yarn
$ yarn dev:kwai
$ yarn build:kwai
Expand Down Expand Up @@ -639,6 +683,10 @@ $ NODE_ENV=production taro build --type kwai --watch # Bash
#### 编译命令

```bash
# pnpm
$ pnpm dev:h5
$ pnpm build:h5

# yarn
$ yarn dev:h5
$ yarn build:h5
Expand Down Expand Up @@ -749,6 +797,8 @@ $ taro update project [版本号]
$ npm install -g @tarojs/[email protected]
# OR 使用 yarn 安装 CLI
$ yarn global add @tarojs/[email protected]
# OR 使用 pnpm 安装 CLI
$ pnpm add -g @tarojs/[email protected]
# OR 安装了 cnpm,使用 cnpm 安装 CLI
$ cnpm install -g @tarojs/[email protected]
```