chore: 优化构建,加入初始化脚本,避免初始化时缺少文件
Showing
... | ... | @@ -35,7 +35,7 @@ |
"build:v2scm": "cross-env PRO_ENV=v2scm yarn build", | ||
"build:v2-demo": "cross-env PRO_ENV=v2-demo 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", | ||
"postinstall": "umi generate tmp", | ||
"postinstall": "node ./scripts/init && umi generate tmp", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
"test": "umi-test", | ||
"test:coverage": "umi-test --coverage", | ||
... | ... | @@ -81,6 +81,7 @@ |
"antd-dayjs-webpack-plugin": "^1.0.6", | ||
"antd-img-crop": "^3.12.0", | ||
"babel-plugin-lodash": "^3.3.4", | ||
"babel-plugin-yapi-import": "1.0.4", | ||
"bignumber.js": "^9.0.1", | ||
"bizcharts": "^4.1.10", | ||
"braft-editor": "^2.3.9", | ||
... | ... |
scripts/init.js
0 → 100644
Please
register
or
sign in
to comment