-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
112 lines (112 loc) · 4.16 KB
/
package.json
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "@idea2app/rest-node-ts",
"version": "1.0.0",
"license": "LGPL-3.0",
"author": "shiy2008@gmail.com",
"description": "RESTful API service scaffold based on Node.js & TypeScript",
"homepage": "https://github.com/idea2app/REST-Node-ts#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/idea2app/REST-Node-ts.git"
},
"bugs": {
"url": "https://github.com/idea2app/REST-Node-ts/issues"
},
"source": "source/index.ts",
"main": "dist/index.js",
"engines": {
"node": ">=20"
},
"dependencies": {
"@koa/cors": "^5.0.0",
"@koa/multer": "^3.0.2",
"@koa/router": "^13.1.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"jsonwebtoken": "^9.0.2",
"koa": "^2.15.3",
"koa-bodyparser": "^4.4.1",
"koa-jwt": "^4.0.4",
"koa-logger": "^3.2.1",
"koa-mount": "^4.0.0",
"koa2-swagger-ui": "^5.10.0",
"koagger": "^0.3.0",
"marked": "^14.1.2",
"mobx-github": "^0.3.4",
"mobx-restful": "^1.0.1",
"pg": "^8.13.0",
"pg-connection-string": "^2.7.0",
"reflect-metadata": "^0.2.2",
"routing-controllers": "^0.10.4",
"routing-controllers-openapi": "^4.0.0",
"tslib": "^2.7.0",
"typeorm": "npm:@helveg/typeorm@^0.3.21",
"undici": "^6.20.1",
"web-utility": "^4.4.1"
},
"devDependencies": {
"@eslint/js": "^9.12.0",
"@octokit/openapi-types": "^22.2.0",
"@tech_query/node-toolkit": "^2.0.0-alpha.0",
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint__js": "^8.42.3",
"@types/jest": "^29.5.13",
"@types/jsonwebtoken": "^9.0.7",
"@types/koa": "^2.15.0",
"@types/koa-logger": "^3.1.5",
"@types/node": "^20.16.11",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"globals": "^15.11.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
"koajax": "^3.0.2",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"sqlite3": "^5.1.7",
"start-server-and-test": "^2.0.8",
"swagger-typescript-api": "^13.0.22",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "~5.6.3",
"typescript-eslint": "^8.9.0"
},
"resolutions": {
"native-file-system-adapter": "npm:@tech_query/native-file-system-adapter@^3.0.1"
},
"prettier": {
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid",
"tabWidth": 4
},
"lint-staged": {
"*.{md,json,yml,mjs,ts}": "prettier --write",
"*.ts": "eslint --fix"
},
"jest": {
"preset": "ts-jest"
},
"scripts": {
"prepare": "husky || true",
"dev": "cross-env TS_NODE_TRANSPILE_ONLY=true node -r ts-node/register --watch source/",
"lint": "lint-staged",
"build-test": "swagger-typescript-api -p http://localhost:8080/docs/spec -o test/ -n client.ts",
"start-test": "rm -rf .data/ && node dist/",
"jest": "jest",
"debug": "server-test start-test 8080 jest",
"test": "npm run build && server-test start-test 8080 build-test && npm run debug",
"build": "rm -rf dist/ type/*.d.ts && tsc && mv dist/model/*.d.ts type/",
"start": "cross-env NODE_ENV=production node dist/",
"typeorm": "typeorm-ts-node-commonjs -d source/model/index.ts",
"migration:generate": "npm run typeorm -- migration:generate",
"migration:run": "npm run typeorm -- migration:run",
"upgrade:dev": "npm run migration:generate -- migration/version && npm run migration:run",
"upgrade:pro": "cross-env NODE_ENV=production npm run migration:generate -- .data/version && npm run migration:run",
"pack-image": "docker build -t idea2app/rest-node-ts:latest .",
"container": "docker rm -f rest-node-ts && docker run --name rest-node-ts -p 8080:8080 -d idea2app/rest-node-ts:latest"
}
}