From 982e261984f28dc171187c52d7d998c8942e4b22 Mon Sep 17 00:00:00 2001 From: xw Date: Sun, 28 Nov 2021 16:55:24 +0800 Subject: [PATCH] refactor: simplified start command (#104) --- README.md | 16 +++------------- package.json | 2 ++ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 65b0229..19202c2 100644 --- a/README.md +++ b/README.md @@ -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/ ``` diff --git a/package.json b/package.json index 6adc273..6289ddd 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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",