Skip to content

Commit

Permalink
fix(cd): move yarn to package.json script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexxa committed Sep 15, 2021
1 parent 10dd12a commit 82a52b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"src/client/web"
],
"scripts": {
"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",
"build:fe": "yarn && bash scripts/copy_js.sh && webpack --config src/client/web/webpack.app.prod.js",
"build:fe:dev": "yarn && bash scripts/copy_js_dev.sh && webpack --config src/client/web/webpack.app.dev.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",

"build": "yarn build:fe && bash scripts/build_be.sh",
Expand Down
1 change: 0 additions & 1 deletion scripts/copy_js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -o nounset errexit

export ROOT=`pwd`
yarn
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/umd/react.production.min.js $ROOT/public/static/js
1 change: 0 additions & 1 deletion scripts/copy_js_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
set -o nounset errexit

export ROOT=`pwd`
yarn
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/umd/react.development.js $ROOT/public/static/js/

0 comments on commit 82a52b2

Please sign in to comment.