-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
134 lines (134 loc) · 6.07 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "eodiro-server",
"version": "2.2.1",
"client-version": "3.7.x",
"main": "src/main.ts",
"repository": "https://github.com/payw-org/eodiro-server.git",
"author": "PAYW",
"license": "MIT",
"scripts": {
"lint": "eslint . --ext .ts,.tsx",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"sync-db:prod": "ts-node -r tsconfig-paths/register src/database/sync.ts",
"sync-db:dev": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register src/database/sync.ts",
"ts-node:prod": "ts-node -r tsconfig-paths/register",
"ts-node:dev": "cross-env NODE_ENV=development ts-node -r tsconfig-paths/register",
"test": "mocha -r ts-node/register -r tsconfig-paths/register \"./{,!(node_modules)/**}/*.spec.ts\"",
"file-test:dev": "cross-env NODE_ENV=development mocha -r ts-node/register -r tsconfig-paths/register",
"file-test": "mocha -r ts-node/register -r tsconfig-paths/register",
"dev": "npm run generate:dev && npm-run-all --parallel dev-ts typecheck:watch",
"dev-ts": "cross-env NODE_ENV=development tsnd --no-notify --respawn --transpile-only -r tsconfig-paths/register src/main.ts",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch --preserveWatchOutput",
"build": "npm run clear:build && npm run generate:prod && ttsc",
"build:types": "npm run clear:types && ttsc && mkdir -p eodiro-server-types/prisma/client && cp src/prisma/client/index.d.ts eodiro-server-types/prisma/client/index.d.ts",
"start:dev": "cross-env NODE_ENV=development node --harmony build/src/main.js",
"pm2:start": "if pm2 show eodiro-server ; then npm run pm2:stop && npm run pm2:delete && npm run pm2:start ; else pm2 start build/main.js --name \"eodiro-server\" ; fi",
"pm2:restart": "if pm2 show eodiro-server ; then pm2 restart eodiro-server ; else echo 'No PM2 instance for eodiro API 2' ; fi",
"pm2:stop": "if pm2 show eodiro-server ; then pm2 stop eodiro-server ; else echo 'No PM2 instance for eodiro API 2' ; fi",
"pm2:delete": "if pm2 show eodiro-server ; then pm2 delete eodiro-server ; else echo 'No PM2 instance for eodiro API 2' ; fi",
"pm2:reboot": "rm -rf node_modules && npm install && npm run build && npm run pm2:stop && npm run pm2:delete && npm run pm2:start",
"clear:build": "rimraf build/*",
"clear:types": "del eodiro-server-types/* !eodiro-server-types/package.json",
"checkout-latest": "git reset --hard && git checkout $(git describe --tags `git rev-list --tags --max-count=1`)",
"update": "git reset --hard && git fetch --prune && npm run checkout-latest && npm install && npm run pm2:reboot",
"introspect:prod": "prisma introspect --schema prisma/schema.prisma",
"introspect:dev": "prisma introspect --schema prisma/schema.dev.prisma && prismap --schema prisma/schema.dev.prisma",
"generate:prod": "prisma generate --schema prisma/schema.prisma && npm run copy:prisma:types",
"generate:dev": "prisma generate --schema prisma/schema.dev.prisma && npm run copy:prisma:types",
"db:push:prod": "prisma db push --schema prisma/schema.prisma --preview-feature",
"db:push:dev": "prisma db push --schema prisma/schema.dev.prisma --preview-feature",
"migrate:prod": "prisma migrate dev --preview-feature --schema prisma/schema.prisma",
"migrate:dev": "prisma migrate dev --preview-feature --schema prisma/schema.dev.prisma",
"copy:prisma:types": "mkdir -p src/prisma/client && cp node_modules/.prisma/client/index.d.ts src/prisma/client/index.d.ts",
"update:server-types": "zsh ./update-types.sh"
},
"dependencies": {
"@payw/cau-cafeteria-menus-scraper": "^2.1.10",
"@payw/cau-timetable-scraper": "^2.4.0",
"@prisma/client": "^2.26.0",
"axios": "^0.21.1",
"bcrypt": "^5.0.1",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"dayjs": "^1.10.6",
"express": "^4.17.1",
"express-validator": "^6.12.0",
"form-data": "^4.0.0",
"jsdom": "^16.6.0",
"jwt-token": "^1.0.9",
"lodash": "^4.17.21",
"morgan": "^1.10.0",
"multer": "^1.4.2",
"mustache": "^4.2.0",
"mysql": "^2.18.1",
"mysql2": "^2.2.5",
"node-schedule": "^2.0.0",
"node-telegram-bot-api": "^0.53.0",
"nodemailer": "^6.6.2",
"pluralize": "^8.0.0",
"reflect-metadata": "^0.1.13",
"serve-handler": "^6.1.3",
"socket.io": "^4.1.3",
"sql-formatter": "^4.0.2",
"uuid": "^8.3.2",
"yargs": "^16.2.0"
},
"devDependencies": {
"@types/app-root-path": "^1.2.4",
"@types/bcrypt": "^5.0.0",
"@types/bluebird": "^3.5.36",
"@types/chai": "^4.2.21",
"@types/cookie-parser": "^1.4.2",
"@types/cors": "^2.8.12",
"@types/eslint": "^7.2.14",
"@types/glob": "^7.1.4",
"@types/jsdom": "^16.2.13",
"@types/jsonwebtoken": "^8.5.4",
"@types/lodash": "^4.14.171",
"@types/mocha": "^8.2.3",
"@types/morgan": "^1.9.3",
"@types/multer": "^1.4.7",
"@types/mustache": "^4.1.2",
"@types/mysql": "^2.15.19",
"@types/node": "^16.3.1",
"@types/node-schedule": "^1.3.2",
"@types/node-telegram-bot-api": "^0.51.4",
"@types/nodemailer": "^6.4.4",
"@types/prettier": "^2.3.2",
"@types/puppeteer": "^5.4.4",
"@types/rimraf": "^3.0.1",
"@types/serve-handler": "^6.1.1",
"@types/socket.io": "^3.0.1",
"@types/uuid": "^8.3.1",
"@types/validator": "^13.6.3",
"@types/yargs": "^16.0.3",
"@typescript-eslint/eslint-plugin": "^4.28.2",
"@typescript-eslint/parser": "^4.28.2",
"@zerollup/ts-transform-paths": "^1.7.18",
"app-root-path": "^3.0.0",
"chai": "^4.3.4",
"chalk": "^4.1.1",
"change-case": "^4.1.2",
"cross-env": "^7.0.3",
"del-cli": "^3.0.1",
"eslint": "^7.30.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"glob": "^7.1.7",
"mocha": "^8.4.0",
"npm-run-all": "^4.1.5",
"pending-xhr-puppeteer": "^2.3.3",
"prettier": "^2.3.2",
"prisma": "^2.26.0",
"prismap": "^1.2.0",
"puppeteer": "^9.1.1",
"rimraf": "^3.0.2",
"ts-node": "^10.1.0",
"ts-node-dev": "^1.1.8",
"tsconfig-paths": "^3.10.1",
"ttypescript": "^1.5.12",
"typescript": "^4.3.5",
"yaml": "^1.10.2"
}
}