Skip to content

Commit

Permalink
refactor: simplified start command (doocs#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
wll8 authored Nov 28, 2021
1 parent 474196e commit 982e261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,13 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
npm i

# 启动开发模式
npm run serve
npm start

# 输出部署版本
npm run build
```

## 测试

```sh
# 启动模拟服务
npm run mm
```

```sh
# 部署在 /md 目录
npm run build
# 访问 http://127.0.0.1:9000/md

# 部署在根目录
npm run build:h5-netlify
# 访问 http://127.0.0.1:9000/
```
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "1.5.6",
"private": false,
"scripts": {
"start": "run-p serve mm",
"serve": "vue-cli-service serve",
"build:h5-netlify": "cross-env SERVER_ENV=NETLIFY vue-cli-service build",
"build": "vue-cli-service build",
Expand Down Expand Up @@ -42,6 +43,7 @@
"mini-types": "*",
"miniprogram-api-typings": "*",
"mockm": "^1.1.25",
"npm-run-all": "^4.1.5",
"postcss-comment": "^2.0.0",
"raw-loader": "^4.0.2",
"sass-loader": "^11.0.1",
Expand Down

0 comments on commit 982e261

Please sign in to comment.