Skip to content

Commit

Permalink
docs(midway-init): add demo for --type <boilerplate> argv (midwayjs…
Browse files Browse the repository at this point in the history
…#272)

docs(midway-init): add demo for `--type <boilerplate>` argv
  • Loading branch information
czy88840616 authored Jul 9, 2019
2 parents a016e9b + c4f1eab commit bc1a692
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/en/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ $ npm i midway-init -g
$ midway-init
```

Specify boilerplate via `--type`
```bash
$ midway-init --type midway-ts-ant-design-pro
```

We can use the `npm scripts` commands to startup:

```bash
Expand Down
6 changes: 4 additions & 2 deletions docs/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ $ npm i midway-init -g
$ midway-init
```


目前只有一个 ts 的脚手架,可以直接使用。
可用 `--type` 参数指定模板名
```bash
$ midway-init --type midway-ts-ant-design-pro
```

通过生成的 `npm scripts` 来驱动启动命令:

Expand Down

0 comments on commit bc1a692

Please sign in to comment.