-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
82 lines (82 loc) · 2.96 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
{
"name": "sensor-manager-api",
"version": "1.0.0",
"license": "ISC",
"description": "",
"type": "commonjs",
"scripts": {
"build": "tsc --project tsconfig.compile.json && tsc-alias",
"barrels": "barrelsby --config .barrelsby.json",
"start": "yarn barrels && cross-env NODE_ENV=development tsnd --ignore-watch node_modules --respawn --transpile-only --max-old-space-size=2048 -r tsconfig-paths/register src/index.ts",
"start:prod": "cross-env NODE_ENV=staging node dist/index.js",
"test": "cross-env NODE_ENV=test jest --passWithNoTests",
"db:migrate": "npx prisma migrate dev",
"db:reset": "npx prisma migrate reset --force",
"db:reset:prod": "dotenv -e .env.production -- npx prisma migrate reset --force",
"db:deploy": "npx prisma migrate deploy",
"db:generate": "npx prisma generate",
"db:studio": "npx prisma studio",
"cp:cert": "docker cp es01:/usr/share/elasticsearch/config/certs/ca/ca.crt ca.crt",
"lint": "eslint '**/*.{ts,js}'",
"lint:fix": "eslint '**/*.{ts,js}' --fix",
"format": "prettier '**/*.{ts,js,json}' --write",
"prepare": "is-ci || husky install",
"bootstrap": "yarn start:docker && yarn && yarn db:migrate && npx prisma db seed",
"start:docker": "docker-compose -f docker-compose.dev.yml up -d",
"clean:docker": "docker-compose -f docker-compose.dev.yml down --volumes --remove-orphans",
"clean:git": "git branch --merged >/tmp/merged-branches && nano /tmp/merged-branches && xargs git branch -D </tmp/merged-branches && git fetch --prune --all"
},
"dependencies": {
"@fastify/cookie": "^8.3.0",
"@fastify/cors": "^8.2.0",
"@fastify/helmet": "^10.1.0",
"@fastify/sensible": "^5.2.0",
"@fastify/swagger": "^8.3.0",
"@fastify/swagger-ui": "^1.3.0",
"@fastify/websocket": "^7.1.3",
"@prisma/client": "^4.14.0",
"ajv": "^8.12.0",
"bcrypt": "^5.1.0",
"dotenv": "^16.0.3",
"fastify": "^4.12.0",
"fluent-json-schema": "^4.0.0",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.0",
"prisma": "^4.14.0"
},
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/jest": "^29.5.0",
"@types/js-yaml": "^4.0.5",
"@types/jsonwebtoken": "^9.0.1",
"@types/node": "^18.14.4",
"@types/ws": "^8.5.4",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"barrelsby": "^2.5.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dotenv-cli": "^7.1.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"husky": "^8.0.3",
"is-ci": "^3.0.1",
"jest": "^29.3.1",
"lint-staged": "^13.1.0",
"pino-pretty": "^9.4.0",
"prettier": "^2.8.3",
"ts-jest": "^29.0.5",
"ts-node-dev": "^2.0.0",
"tsc-alias": "^1.8.2",
"tsconfig-paths": "^4.1.2",
"typescript": "^4.9.4"
},
"prisma": {
"seed": "ts-node prisma/seed.ts"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}