删除未使用依赖

This commit is contained in:
whyour 2021-03-19 21:13:23 +08:00
parent 9d28a8a0db
commit 8ed071bc29
2 changed files with 2 additions and 26 deletions

View File

@ -38,9 +38,10 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& yarn install \
&& yarn build \
&& yarn build-back \
&& yarn install --production \
&& git clone -b ${JD_SCRIPTS_BRANCH} ${JD_SCRIPTS_URL} ${JD_DIR}/scripts \
&& cd ${JD_DIR}/scripts \
&& npm install \
&& npm install --production\
&& npm install -g pm2 \
&& rm -rf /root/.npm
WORKDIR ${JD_DIR}

View File

@ -25,68 +25,43 @@
"dependencies": {
"@ant-design/pro-layout": "^6.5.0",
"@umijs/preset-react": "1.x",
"agenda": "^3.1.0",
"agendash": "^1.0.0",
"argon2": "^0.27.0",
"body-parser": "^1.19.0",
"celebrate": "^13.0.3",
"codemirror": "^5.59.4",
"cors": "^2.8.5",
"darkreader": "^4.9.27",
"dotenv": "^8.2.0",
"errorhandler": "^1.5.1",
"event-dispatch": "^0.4.1",
"eventemitter3": "^4.0.7",
"express": "^4.17.1",
"express-basic-auth": "^1.2.0",
"express-jwt": "^6.0.0",
"form-data": "^4.0.0",
"got": "^11.8.2",
"jsonwebtoken": "^8.5.1",
"lodash": "^4.17.20",
"mailgun-js": "^0.22.0",
"method-override": "^3.0.0",
"moment": "^2.29.0",
"moment-timezone": "^0.5.31",
"mongoose": "^5.10.6",
"morgan": "^1.10.0",
"node-fetch": "^2.6.1",
"qrcode.react": "^1.0.1",
"react-codemirror2": "^7.2.1",
"react-diff-viewer": "^3.1.1",
"reflect-metadata": "^0.1.13",
"socks-proxy-agent": "^4.0.2",
"telegraf": "^4.0.3",
"typedi": "^0.8.0",
"umi": "^3.3.9",
"umi-request": "^1.3.5",
"winston": "^3.3.3"
},
"devDependencies": {
"@types/agenda": "^2.0.9",
"@types/cors": "^2.8.10",
"@types/express": "^4.17.8",
"@types/express-jwt": "^6.0.1",
"@types/jsonwebtoken": "^8.5.0",
"@types/lodash": "^4.14.161",
"@types/node": "^14.11.2",
"@types/node-fetch": "^2.5.8",
"@types/qrcode.react": "^1.0.1",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"@umijs/test": "^3.3.9",
"eslint": "^7.9.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"lint-staged": "^10.0.7",
"nodemon": "^2.0.4",
"prettier": "^2.2.0",
"react": "17.x",
"react-dom": "17.x",
"ts-node": "^9.0.0",
"tslint": "^5.20.1",
"typescript": "^4.1.2",
"yorkie": "^2.0.0"
}