-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
87 lines (87 loc) · 3.58 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
{
"name": "@dzcode.io/api",
"description": "code for api.dzcode.io",
"version": "6.1.0",
"author": {
"email": "adamayuda1@gmail.com",
"name": "Adam Ayuda Djezzar"
},
"dependencies": {
"@dzcode.io/data": "*",
"@dzcode.io/models": "*",
"@dzcode.io/utils": "*",
"@sentry/node": "^8.28.0",
"@sentry/profiling-node": "^8.28.0",
"@types/make-fetch-happen": "^10.0.4",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"cors": "^2.8.5",
"cron": "^3.1.7",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.33.0",
"express": "^4.21.0",
"express-rate-limit": "^7.4.0",
"fs-extra": "^11.2.0",
"helmet": "^7.1.0",
"lodash": "^4.17.21",
"make-fetch-happen": "^13.0.1",
"meilisearch": "^0.46.0",
"morgan": "^1.10.0",
"postgres": "^3.4.4",
"reflect-metadata": "^0.2.2",
"routing-controllers": "^0.10.4",
"typedi": "^0.10.0",
"winston": "^3.3.3"
},
"devDependencies": {
"@dzcode.io/tooling": "*",
"@types/body-parser": "^1.19.0",
"@types/cors": "^2.8.9",
"@types/express": "^4.17.9",
"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.7",
"@types/make-fetch-happen": "^10.0.4",
"@types/morgan": "^1.9.2",
"drizzle-kit": "^0.24.2"
},
"license": "MIT",
"lint-staged": {
"*.*": [
"npm run lint:eslint --fix",
"npm run lint:prettier -- --write"
]
},
"private": true,
"repository": {
"type": "git",
"repository": "https://github.com/dzcode-io/dzcode.io.git"
},
"scripts": {
"build": "lerna run build:alone --scope=@dzcode.io/api --include-dependencies --stream",
"build:alone": "tspc",
"build:alone:watch": "tspc --watch --preserveWatchOutput",
"build:watch": "lerna run build:alone:watch --scope=@dzcode.io/api --include-dependencies --parallel",
"clean": "lerna run clean:alone --scope=@dzcode.io/api --include-dependencies --stream",
"clean:alone": "del dist coverage fetch_cache oracle-cloud/build",
"db:generate-migration": "drizzle-kit generate",
"db:server": "docker compose down && docker compose up",
"deploy": "del ./oracle-cloud/build && tsx oracle-cloud/deploy.ts production",
"deploy:stg": "del ./oracle-cloud/build && tsx oracle-cloud/deploy.ts staging",
"generate:bundle-info": "tsx ../packages/tooling/bundle-info.ts",
"generate:sentry-release": "tsx ../packages/tooling/sentry-release.ts api dist",
"lint": "npm run build && npm run lint:alone",
"lint:alone": "npm run lint:eslint . && npm run lint:prettier -- --check . && npm run lint:tsc && npm run lint:ts-prune",
"lint:eslint": "eslint --config ../packages/tooling/eslint.config.mjs",
"lint:fix": "npm run build && npm run lint:fix:alone",
"lint:fix:alone": "npm run lint:eslint --fix . && npm run lint:prettier -- --write .",
"lint:prettier": "prettier --config ../packages/tooling/.prettierrc --ignore-path ../packages/tooling/.prettierignore --log-level warn",
"lint:ts-prune": "tsx ../packages/tooling/setup-ts-prune.ts && ts-prune --error",
"lint:tsc": "tspc --noEmit",
"start": "wait-port postgres:5432 && wait-port meilisearch:7700 && delay 2 && node dist/app/index.js",
"start:dev": "tsx ../packages/tooling/nodemon.ts \"@dzcode.io/api\" && npm-run-all --parallel start:nodemon db:server",
"start:nodemon": "wait-port localhost:5432 && delay 2 && nodemon dist/app/index.js",
"test": "npm run build && npm run test:alone",
"test:alone": "jest --config ../packages/tooling/jest.config.ts --rootDir .",
"test:watch": "npm-run-all build --parallel build:watch \"test:alone --watch {@}\" --"
}
}