wangzhibo
6 天以前 e0b2259ebd50010dbd87c0befd4dedebcc893ca0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
  "name": "cool-admin",
  "version": "8.0.0",
  "description": "一个很酷的Ai快速开发框架",
  "private": true,
  "dependencies": {
    "@cool-midway/core": "8.0.1",
    "@cool-midway/rpc": "8.0.1",
    "@cool-midway/task": "8.0.1",
    "@midwayjs/bootstrap": "^3.20.0",
    "@midwayjs/cache-manager": "^3.20.0",
    "@midwayjs/core": "^3.20.0",
    "@midwayjs/cron": "^3.20.0",
    "@midwayjs/cross-domain": "^3.20.0",
    "@midwayjs/info": "^3.20.0",
    "@midwayjs/koa": "^3.20.0",
    "@midwayjs/logger": "^3.4.2",
    "@midwayjs/static-file": "^3.20.0",
    "@midwayjs/typeorm": "^3.20.0",
    "@midwayjs/upload": "^3.20.0",
    "@midwayjs/validate": "^3.20.0",
    "@midwayjs/socketio": "^3.15.2",
    "@socket.io/redis-adapter": "^8.3.0",
    "adm-zip": "^0.5.16",
    "axios": "^1.7.9",
    "bignumber.js": "^9.1.2",
    "cache-manager-ioredis-yet": "^2.0.2",
    "ioredis": "^5.3.2",
    "cron": "^3.5.0",
    "jsonwebtoken": "^9.0.2",
    "lodash": "^4.17.21",
    "md5": "^2.3.0",
    "moment": "^2.30.1",
    "mysql2": "^3.12.0",
    "semver": "^7.6.0",
    "svg-captcha": "^1.4.0",
    "tslib": "^2.8.1",
    "typeorm": "npm:@cool-midway/typeorm@0.3.20",
    "uuid": "^11.0.5",
    "ws": "^8.18.0"
  },
  "devDependencies": {
    "@midwayjs/bundle-helper": "^1.3.0",
    "@midwayjs/mock": "^3.20.0",
    "@types/jest": "^29.5.14",
    "@types/node": "22",
    "@yao-pkg/pkg": "^6.2.0",
    "cross-env": "^7.0.3",
    "jest": "^29.7.0",
    "mwts": "^1.3.0",
    "mwtsc": "^1.15.1",
    "rimraf": "^6.0.1",
    "ts-jest": "^29.2.5",
    "typescript": "~5.7.3"
  },
  "engines": {
    "node": ">=18.0.0"
  },
  "scripts": {
    "start": "NODE_ENV=production node ./bootstrap.js",
    "dev": "rimraf src/index.ts && cool check && cross-env NODE_ENV=local mwtsc --cleanOutDir --watch --run @midwayjs/mock/app.js --keepalive",
    "test": "cross-env NODE_ENV=unittest jest",
    "cov": "jest --coverage",
    "lint": "mwts check",
    "lint:fix": "mwts fix",
    "ci": "npm run cov",
    "build": "cool entity && bundle && mwtsc --cleanOutDir",
    "build:obfuscate": "cool entity && bundle && mwtsc --cleanOutDir && cool obfuscate",
    "pkg": "rimraf build && mkdir build && npm run build && pkg . -d > build/pkg.log",
    "pm2:start": "pm2 start ./bootstrap.js -i 1 --name cool-admin",
    "pm2:stop": "pm2 stop cool-admin & pm2 delete cool-admin"
  },
  "bin": "./bootstrap.js",
  "pkg": {
    "scripts": [
      "dist/**/*",
      "node_modules/axios/dist/node/*"
    ],
    "assets": [
      "public/**/*",
      "typings/**/*",
      "src/locales/**/*"
    ],
    "targets": [
      "node20-win-x64"
    ],
    "outputPath": "build"
  },
  "repository": {
    "type": "git",
    "url": "https://cool-js.com"
  },
  "author": "COOL",
  "license": "MIT"
}