-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
116 lines (116 loc) · 4.13 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
113
114
115
116
{
"name": "hackerembassy-tg-bot",
"version": "4.0.0",
"description": "Hacker Embassy management bot",
"main": "bot.js",
"scripts": {
"build": "tsc --skipLibCheck && tsc-alias",
"postbuild": "node scripts/postBuild.mjs",
"start": "node dist/bot.js",
"start:ci": "node bot.js",
"start-service:ci": "node embassy.js",
"start-background": "nohup node dist/bot.js &",
"start-service": "node dist/embassy.js",
"start-service-background": "nohup node dist/embassy.js &",
"embassy-api-service": "/usr/bin/node dist/embassy.js",
"dev": "tsx watch bot.ts",
"dev-service": "tsx watch embassy.ts",
"dev-both": "run-p dev dev-service",
"stop-embassy-api": "skill -c 'nohup node dist/embassy.js &'",
"start-api-https": "sudo caddy start --config ./deploy/api/Caddyfile 2>/dev/null",
"kill": "skill -c nohup node dist/bot.js &",
"backup": "mkdir ./data/backup -p && cp ./data/db/data.db ./data/backup/data`date +\"%H%M%S%m%d%Y\"`.db 2>/dev/null",
"prepare": "husky install",
"lint": "eslint '**/*.{ts,js}'",
"lint-fix": "eslint '--fix **/*.{ts,js}'",
"pretty": "prettier --write '**/*.{ts,js}'",
"test": "jest",
"test:ci": "jest --collectCoverage",
"swagger": "npx ts-node ./api/bot/swagger.ts",
"init": "tsx ./scripts/initDev.ts"
},
"author": "Nick Kiselev",
"license": "ISC",
"dependencies": {
"better-sqlite3": "^11.3.0",
"chartjs-to-image": "^1.2.2",
"config": "^3.3.12",
"cors": "^2.8.5",
"crypto-convert": "^2.1.7",
"d": "^1.0.2",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.33.0",
"easy-currencies": "^1.8.1",
"express": "^4.21.0",
"express-prometheus-middleware": "^1.2.0",
"fast-csv": "^4.3.6",
"i18next": "^23.15.1",
"i18next-fs-backend": "^2.3.2",
"local-devices": "^4.0.0",
"luci-rpc": "^1.0.5",
"luxon": "^3.5.0",
"memoizee": "^0.4.17",
"mqtt": "^4.3.8",
"node-fetch": "^2.7.0",
"node-html-markdown": "^1.3.0",
"node-rsa": "^1.1.1",
"node-ssh": "^13.2.0",
"node-telegram-bot-api": "^0.66.0",
"nodemon": "^3.1.7",
"ping": "^0.4.4",
"rm": "^0.1.8",
"rrule": "^2.8.1",
"swagger-ui-express": "^5.0.1",
"tmp-promise": "^3.0.3",
"ts-node": "^10.9.2",
"winston": "^3.14.2",
"winston-daily-rotate-file": "^4.7.1",
"wol": "^1.0.7"
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/better-sqlite3": "^7.6.11",
"@types/config": "^3.3.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/express-prometheus-middleware": "^1.2.3",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.13",
"@types/luxon": "^3.4.2",
"@types/memoizee": "^0.4.11",
"@types/node": "^20.16.10",
"@types/node-fetch": "^2.6.11",
"@types/node-rsa": "^1.1.4",
"@types/node-telegram-bot-api": "^0.64.7",
"@types/ping": "^0.4.4",
"@types/rrule": "^2.2.9",
"@types/swagger-ui-express": "^4.1.6",
"@types/wol": "^1.0.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"drizzle-kit": "^0.24.2",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"fs-extra": "^11.2.0",
"husky": "^8.0.3",
"jest-fetch-mock": "^3.0.3",
"lint-staged": "^13.3.0",
"nock": "^13.5.5",
"npm-run-all": "^4.1.5",
"prettier-eslint": "^16.3.0",
"swagger-autogen": "^2.23.7",
"ts-jest": "^29.2.5",
"tsc-alias": "^1.8.10",
"tsx": "^4.19.1",
"typescript": "^5.6.2"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"npx prettier --write",
"npx eslint --fix"
]
}
}