feat:自动化构建
Showing
... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
"version": "1.0.4", | "version": "1.0.4", | ||
"scripts": { | "scripts": { | ||
"upload:scm": "cross-env local=scm taskName=upload yarn scripts:build", | "upload:scm": "cross-env local=scm taskName=upload yarn scripts:build", | ||
"upload:10": "cross-env local=10 taskName=upload yarn scripts:build", | |||
"api": "god-ytt", | "api": "god-ytt", | ||
"scripts:build": "node scripts/run", | "scripts:build": "node scripts/run", | ||
"scripts:build-yxc": "node scripts/run http://yxc-web-demo.shushangyun.com/api", | "scripts:build-yxc": "node scripts/run http://yxc-web-demo.shushangyun.com/api", | ||
... | @@ -15,6 +16,8 @@ | ... | @@ -15,6 +16,8 @@ |
"build:analyze": "NODE_OPTIONS=--max_old_space_size=4096 ANALYZE=1 umi build", | "build:analyze": "NODE_OPTIONS=--max_old_space_size=4096 ANALYZE=1 umi build", | ||
"build:dev": "pm2 start scripts/devServer.js", | "build:dev": "pm2 start scripts/devServer.js", | ||
"build:clean": "NODE_OPTIONS=--max_old_space_size=4096 umi build", | "build:clean": "NODE_OPTIONS=--max_old_space_size=4096 umi build", | ||
"build:scm": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-scm.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:8100 yarn build", | |||
"postinstall": "umi generate tmp", | "postinstall": "umi generate tmp", | ||
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | ||
"test": "umi-test", | "test": "umi-test", | ||
... | @@ -78,19 +81,26 @@ | ... | @@ -78,19 +81,26 @@ |
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@types/qrcode": "^1.3.4", | "@types/qrcode": "^1.3.4", | ||
"async": "^3.2.0", | |||
"axios": "^0.19.2", | "axios": "^0.19.2", | ||
"chalk": "^4.1.0", | "chalk": "^4.1.0", | ||
"clone": "^2.1.2", | "clone": "^2.1.2", | ||
"connect-history-api-fallback": "^1.6.0", | "connect-history-api-fallback": "^1.6.0", | ||
"cross-env": "^7.0.2", | "cross-env": "^7.0.2", | ||
"events": "^3.2.0", | |||
"express": "^4.17.1", | "express": "^4.17.1", | ||
"fs-extra": "^9.0.1", | "fs-extra": "^9.0.1", | ||
"glob": "^7.1.6", | |||
"god-upload-scp": "^1.2.0", | |||
"god-yapi2ts": "^1.6.0", | "god-yapi2ts": "^1.6.0", | ||
"gulp": "^4.0.2", | "gulp": "^4.0.2", | ||
"gulp-git": "^2.10.1", | "gulp-git": "^2.10.1", | ||
"http-proxy-middleware": "^1.0.5", | "http-proxy-middleware": "^1.0.5", | ||
"json2ts": "^0.0.7", | "json2ts": "^0.0.7", | ||
"node-cmd": "^4.0.0", | "node-cmd": "^4.0.0", | ||
"ora": "^4.0.4" | "ora": "^4.0.4", | ||
"scp2": "^0.1.0-b1", | |||
"ssh2": "^0.8.9", | |||
"util": "^0.12.3" | |||
} | } | ||
} | } |
Please
register
or
sign in
to comment