fix(cicd): refactor scripts for cicd

This commit is contained in:
hexxa 2021-09-14 16:24:14 +08:00 committed by Hexxa
parent c897adc6ea
commit 2dc156cd95
11 changed files with 26 additions and 66 deletions

View file

@ -4,8 +4,13 @@
"src/client/web"
],
"scripts": {
"build": "scripts/build.sh",
"start": "cd src/client/web/ && yarn && yarn build && cd ../../.. && go run cmd/start/main.go -c `pwd`/configs/dev.yml"
"build:fe": "bash scripts/copy_js.sh && webpack --config src/client/web/webpack.app.prod.js",
"build:fe:dev": "bash scripts/copy_js_dev.sh && webpack --config src/client/web/webpack.app.dev.js --watch",
"build:fe:watch": "bash scripts/copy_js.sh && webpack --config src/client/web/webpack.app.prod.js --watch",
"start": "yarn build:fe && go run cmd/start/main.go -c `pwd`/configs/dev.yml",
"build": "yarn build:fe && bash scripts/build_be.sh",
"build:docker": "docker build . -t hexxa/quickshare:latest"
},
"dependencies": {
"webpack-bundle-analyzer": "^4.4.2"