fix(cd): move yarn to package.json script

This commit is contained in:
hexxa 2021-09-14 17:24:00 +08:00 committed by Hexxa
parent 10dd12ab02
commit 82a52b2312
3 changed files with 3 additions and 5 deletions

View file

@ -4,9 +4,9 @@
"src/client/web" "src/client/web"
], ],
"scripts": { "scripts": {
"build:fe": "bash scripts/copy_js.sh && webpack --config src/client/web/webpack.app.prod.js", "build:fe": "yarn && 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:dev": "yarn && 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", "build:fe:watch": "yarn && 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", "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": "yarn build:fe && bash scripts/build_be.sh",

View file

@ -2,7 +2,6 @@
set -o nounset errexit set -o nounset errexit
export ROOT=`pwd` export ROOT=`pwd`
yarn
cp $ROOT/node_modules/immutable/dist/immutable.min.js $ROOT/public/static/js/ cp $ROOT/node_modules/immutable/dist/immutable.min.js $ROOT/public/static/js/
cp $ROOT/node_modules/react-dom/umd/react-dom.production.min.js $ROOT/public/static/js/ cp $ROOT/node_modules/react-dom/umd/react-dom.production.min.js $ROOT/public/static/js/
cp $ROOT/node_modules/react/umd/react.production.min.js $ROOT/public/static/js cp $ROOT/node_modules/react/umd/react.production.min.js $ROOT/public/static/js

View file

@ -2,7 +2,6 @@
set -o nounset errexit set -o nounset errexit
export ROOT=`pwd` export ROOT=`pwd`
yarn
cp $ROOT/node_modules/immutable/dist/immutable.min.js $ROOT/public/static/js/ cp $ROOT/node_modules/immutable/dist/immutable.min.js $ROOT/public/static/js/
cp $ROOT/node_modules/react-dom/umd/react-dom.development.js $ROOT/public/static/js/ cp $ROOT/node_modules/react-dom/umd/react-dom.development.js $ROOT/public/static/js/
cp $ROOT/node_modules/react/umd/react.development.js $ROOT/public/static/js/ cp $ROOT/node_modules/react/umd/react.development.js $ROOT/public/static/js/