添加分页功能、打包优化、ts编译优化

This commit is contained in:
周炽键
2021-07-23 21:34:47 +08:00
parent fd85fcef74
commit 6a1f9a3f6b
15 changed files with 3340 additions and 141 deletions

View File

@@ -4,8 +4,8 @@
"private": true,
"repository": "git@git.zcj.plus:zhouchijian/express-my-admin.git",
"scripts": {
"build": "tsc",
"start": "node ./bin/www",
"build": "rm -rf dist && tsc && cp .env dist/.env && cp ormconfig.json dist/ormconfig.json && cp -r bin dist/bin && cp -r views ./dist/views",
"start:prod": "cd dist && node ./bin/www",
"dev": "nodemon"
},
"dependencies": {
@@ -23,6 +23,7 @@
"mysql": "^2.18.1",
"mysql2": "^2.2.5",
"reflect-metadata": "^0.1.13",
"ts-node": "^10.1.0",
"typeorm": "^0.2.34"
},
"devDependencies": {