Skip to content

Commit

Permalink
增加 Windows 使用说明
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Aug 1, 2018
1 parent 54c3da1 commit 8e2e9ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 + 右键文件/目录`
Expand Down
3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8e2e9ed

Please sign in to comment.