Skip to content

Commit

Permalink
增加打包文件拷贝
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Mar 15, 2017
1 parent 9d74034 commit 6a79930
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"build": "node build/build.js",
"unit": "cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
"test": "npm run unit",
"lint": "eslint --ext .js,.vue src test/unit/specs"
"lint": "eslint --ext .js,.vue src test/unit/specs",
"dist": "cp dist/* ../public/",
"dist-win": "xcopy dist\\* ..\\public\\ /s /e /y"
},
"dependencies": {
"iview": "^2.0.0-rc.2",
Expand Down
2 changes: 2 additions & 0 deletions public/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
static
*.html
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ cp ./config/index.js.example ./config/index.js
vim ./config/index.js # 修改本机后台服务器 IP 端口
npm run dev # 运行开发服务器
npm run build # 前端打包
npm run dist # 把打包的文件复制到 public 目录
# npm run dist-win # 把打包的文件复制到 public 目录,windows 平台使用
```

测试
Expand Down

0 comments on commit 6a79930

Please sign in to comment.