增加 Windows 使用说明

This commit is contained in:
purocean
2018-08-01 18:31:53 +08:00
parent 54c3da1f16
commit 8e2e9ed3ea
2 changed files with 15 additions and 2 deletions
+13 -1
View File
@@ -12,7 +12,19 @@
6. 在文档中运行 PHP Python Node.js bash 代码块
## 上手使用
+ `cd frontend && yarn && yarn run dist && cd ../backend && yarn && node main.js`
+ 安装
```bash
# 安装前端
cd frontend
yarn # or npm i
yarn run dist # or npm run dist
# yarn run dist-win # or npm run dist-win # Windows 用户
# 安装后端
cd ../background
yarn # or npm i
node main.js # 运行
```
+ 访问 `http://localhost:3000`
+ 新增文件:`双击目录`
+ 删除文件/目录:`shift + 右键文件/目录`
+2 -1
View File
@@ -9,7 +9,8 @@
"start": "npm run dev",
"lint": "eslint --ext .js,.vue src",
"build": "node build/build.js",
"dist": "npm run build && cp -r dist/* ../static/"
"dist": "npm run build && cp -r dist/* ../static/",
"dist-win": "npm run build && xcopy dist\\* ..\\static\\ /s /e /y"
},
"dependencies": {
"crypto-js": "^3.1.9-1",