chore: 优化构建方式, 所有构建环境变量均由env.js控制
Showing
... | ... | @@ -2,14 +2,14 @@ |
"name": "lingxi-business-paltform", | ||
"version": "1.0.4", | ||
"scripts": { | ||
"upload:scm": "cross-env local=scm taskName=upload yarn scripts:build", | ||
"upload:10": "cross-env local=10 taskName=upload yarn scripts:build", | ||
"upload:25": "cross-env local=25 taskName=upload yarn scripts:build", | ||
"upload:study": "cross-env local=study taskName=upload yarn scripts:build", | ||
"upload:v2": "cross-env local=v2 taskName=upload yarn scripts:build", | ||
"upload:v2Preview": "cross-env local=v2Preview taskName=upload yarn scripts:build", | ||
"upload:v2scm": "cross-env local=v2scm taskName=upload yarn scripts:build", | ||
"upload:v2Test": "cross-env local=v2Test taskName=upload yarn scripts:build", | ||
"upload:scm": "cross-env PRO_ENV=scm taskName=upload yarn scripts:build", | ||
"upload:10": "cross-env PRO_ENV=10 taskName=upload yarn scripts:build", | ||
"upload:25": "cross-env PRO_ENV=25 taskName=upload yarn scripts:build", | ||
"upload:study": "cross-env PRO_ENV=study taskName=upload yarn scripts:build", | ||
"upload:v2": "cross-env PRO_ENV=v2 taskName=upload yarn scripts:build", | ||
"upload:v2Preview": "cross-env PRO_ENV=v2Preview taskName=upload yarn scripts:build", | ||
"upload:v2scm": "cross-env PRO_ENV=v2scm taskName=upload yarn scripts:build", | ||
"upload:v2Test": "cross-env PRO_ENV=v2Test taskName=upload yarn scripts:build", | ||
"api": "god-ytt", | ||
"scripts:build": "node scripts/run", | ||
"scripts:build-yxc": "node scripts/run http://yxc-web-demo.shushangyun.com/api", | ||
... | ... | @@ -26,7 +26,7 @@ |
"build:all": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-all.wg.shushangyun.com yarn build", | ||
"build:10": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.10:9400 yarn build", | ||
"build:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.1.207:9400 yarn build", | ||
"build:v2": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.17:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.17:9880 yarn build", | ||
"build:v2": "cross-env PRO_ENV=v2 yarn build", | ||
"build:v2Preview": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.220:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.1.220:9400 yarn build", | ||
"build:v2scm": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.220:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.1.220:9400 yarn build", | ||
"build:v2Test": "cross-env SITE_ID=1 BACK_GATEWAY=http://lx-pre-gateway.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lx-pre-gateway.shushangyun.com yarn build", | ||
... | ... |
Please
register
or
sign in
to comment