forked from pingcap/ossinsight
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
97 lines (97 loc) · 4.07 KB
/
package.json
File metadata and controls
97 lines (97 loc) · 4.07 KB
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
96
97
{
"name": "ossinsight-api",
"version": "1.0.0",
"description": "The API server for OSSInsight.",
"license": "MIT",
"author": "",
"main": "./dist/index.js",
"scripts": {
"build": "tsc && pnpm run build:copy",
"build:copy": "mkdir -p ./dist && rm -r ./dist/static && cat .distfiles | xargs -I {} cp -r {} ./dist/{} 2>/dev/null || :",
"dev": "ts-node index.ts",
"dev:cache-gc": "ts-node scripts/cache-gc/index.ts",
"dev:calc-hot-collections": "ts-node scripts/calc-hot-collections/index.ts",
"dev:explain-all": "ts-node scripts/explain-all/index.ts",
"dev:prefetch": "ts-node scripts/prefetch/index.ts",
"dev:sync-nginx-log": "ts-node scripts/sync-nginx-log/index.ts",
"dev:sync-repos": "ts-node scripts/sync-repos/index.ts",
"dev:sync-stats": "ts-node scripts/sync-stats/index.ts",
"dev:sync-users": "ts-node scripts/sync-users/index.ts",
"gen:api-documentation": "ts-node scripts/gen-openapi/index.ts",
"gen:schema-ts": "json2ts params.schema.json params.schema.d.ts",
"postinstall": "npm run gen:schema-ts && npm run gen:api-documentation",
"server": "node ./dist/index.js",
"server:cache-gc": "node ./dist/scripts/cache-gc/index.js",
"server:calc-hot-collections": "node ./dist/scripts/calc-hot-collections/index.js",
"server:prefetch": "node ./dist/scripts/prefetch/index.js",
"server:sync-nginx-log": "node ./dist/scripts/sync-nginx-log/index.js",
"server:sync-repos": "node ./dist/scripts/sync-repos/index.js",
"server:sync-stats": "node ./dist/scripts/sync-stats/index.js",
"server:sync-users": "node ./dist/scripts/sync-users/index.js",
"start": "pm2 start --cwd $(pwd) 'pnpm run server' --name 'ossinsight-api'",
"start:cache-gc": "pm2 start --cwd $(pwd) 'pnpm run server:cache-gc' --name 'ossinsight-api-cache-gc'",
"start:calc-hot-collections": "pm2 start --cwd $(pwd) 'pnpm run server:calc-hot-collections' --name 'ossinsight-api-calc-hot-collections'",
"start:prefetch": "pm2 start --cwd $(pwd) 'pnpm run server:prefetch' --name 'ossinsight-api-prefetch'",
"start:sync-nginx-log": "pm2 start --cwd $(pwd) 'pnpm run server:sync-nginx-log' --name 'ossinsight-api-sync-nginx-logs'",
"start:sync-stats": "pm2 start --cwd $(pwd) 'pnpm run server:sync-stats' --name 'ossinsight-sync-stats'",
"start:sync-users-data": "pm2 start --cwd $(pwd) 'pnpm run server:sync-users' --name 'ossinsight-sync-users'",
"test": "jest",
"validate:params": "ajv -s params.schema.json -r openapi-2021-09-28.schema.json -c ajv-formats -d \"queries/*/params.json\"",
"verify": "tsc --noEmit"
},
"dependencies": {
"@goparrot/geocoder": "^4.4.0",
"@koa/cors": "^3.1.0",
"@octokit/core": "^4.0.5",
"@octokit/plugin-throttling": "^4.3.0",
"async": "^3.2.4",
"axios": "^0.27.2",
"commander": "^9.4.0",
"consola": "^2.15.3",
"cron-parser": "^4.6.0",
"dotenv": "^16.0.0",
"generic-pool": "^3.8.2",
"koa": "^2.13.4",
"koa-body": "^5.0.0",
"koa-router": "^10.1.1",
"koa-static": "^5.0.0",
"lru-cache": "^7.13.1",
"luxon": "^2.3.0",
"mysql": "^2.18.1",
"mysql2": "^2.3.3",
"node-schedule": "^2.1.0",
"node-sql-parser": "^4.5.0",
"octokit": "^1.7.1",
"p-queue": "^7.3.0",
"pinyin": "3.0.0-alpha.5",
"prom-client": "^14.0.1",
"reflect-metadata": "^0.1.13",
"socket.io": "^4.8.1",
"table": "^6.8.0",
"tail": "^2.2.4",
"tiny-async-pool": "^1.2.0",
"yaml": "^2.0.1"
},
"devDependencies": {
"@types/async": "^3.2.15",
"@types/jest": "^28.1.6",
"@types/koa": "^2.13.4",
"@types/koa-router": "^7.4.4",
"@types/koa-static": "^4.0.2",
"@types/koa__cors": "^3.1.1",
"@types/luxon": "^2.0.9",
"@types/mysql": "^2.15.21",
"@types/node": "^18.0.0",
"@types/node-schedule": "^2.1.0",
"@types/tail": "^2.2.1",
"@types/tiny-async-pool": "^1.0.0",
"@types/validator": "^13.7.5",
"ajv-cli": "^5.0.0",
"ajv-formats": "^2.1.1",
"jest": "^28.1.3",
"json-schema-to-typescript": "^11.0.2",
"openapi3-ts": "^3.0.2",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
}
}