mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
增加 Windows 使用说明
This commit is contained in:
@@ -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 + 右键文件/目录`
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user