mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
refactor: simplified start command (#104)
This commit is contained in:
parent
474196e587
commit
982e261984
16
README.md
16
README.md
@ -39,23 +39,13 @@ Markdown 文档自动即时渲染为微信图文,让你不再为微信文章
|
|||||||
npm i
|
npm i
|
||||||
|
|
||||||
# 启动开发模式
|
# 启动开发模式
|
||||||
npm run serve
|
npm start
|
||||||
|
|
||||||
# 输出部署版本
|
# 部署在 /md 目录
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
## 测试
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# 启动模拟服务
|
|
||||||
npm run mm
|
|
||||||
```
|
|
||||||
|
|
||||||
```sh
|
|
||||||
npm run build
|
npm run build
|
||||||
# 访问 http://127.0.0.1:9000/md
|
# 访问 http://127.0.0.1:9000/md
|
||||||
|
|
||||||
|
# 部署在根目录
|
||||||
npm run build:h5-netlify
|
npm run build:h5-netlify
|
||||||
# 访问 http://127.0.0.1:9000/
|
# 访问 http://127.0.0.1:9000/
|
||||||
```
|
```
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
"version": "1.5.6",
|
"version": "1.5.6",
|
||||||
"private": false,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"start": "run-p serve mm",
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build:h5-netlify": "cross-env SERVER_ENV=NETLIFY vue-cli-service build",
|
"build:h5-netlify": "cross-env SERVER_ENV=NETLIFY vue-cli-service build",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
@ -42,6 +43,7 @@
|
|||||||
"mini-types": "*",
|
"mini-types": "*",
|
||||||
"miniprogram-api-typings": "*",
|
"miniprogram-api-typings": "*",
|
||||||
"mockm": "^1.1.25",
|
"mockm": "^1.1.25",
|
||||||
|
"npm-run-all": "^4.1.5",
|
||||||
"postcss-comment": "^2.0.0",
|
"postcss-comment": "^2.0.0",
|
||||||
"raw-loader": "^4.0.2",
|
"raw-loader": "^4.0.2",
|
||||||
"sass-loader": "^11.0.1",
|
"sass-loader": "^11.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user