-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
170 lines (170 loc) · 5.74 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "stem-help-backend",
"version": "1.7.0",
"description": "REST and serve stem.help",
"main": "src",
"repository": "https://github.com/stem-discord/stem-help-backend.git",
"author": "nopeless",
"license": "MIT",
"engines": {
"node": ">=12.0.0"
},
"type": "module",
"scripts": {
"start": "pm2 start ecosystem.config.json --no-daemon",
"static": "ts-node src/api-server.ts",
"update": "git pull && yarn install --frozen-lockfile && pm2 restart app",
"dev": "cross-env NODE_ENV=development nodemon --config nodemon.json src/api-server.ts -- --",
"dev:noconn": "cross-env NODE_ENV=development nodemon --config nodemon.json src/api-server.ts -- -- --connections \" \"",
"cleanserver": "npm run mongoreset && cross-env NODE_ENV=test nodemon --config nodemon.json src/api-server.ts --drop-all",
"clearcache": "npx ts-node script/clearCache",
"nodemon": "nodemon --watch .",
"setup": "npm run setup:keygen && npm run setup:testenv",
"setup:keygen": "npx ts-node script/keygen.js",
"setup:testenv": "npx ts-node script/testenv.js",
"help:env": "ts-node script/envHelp.js",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"database": "echo 'This assumes that you already installed mongo. I just use it for my convinience' && mongod --dbpath ./database --port",
"mocha": "mocha --config ./test/.mocharc.cjs --exit --require test/global.ts --require ./test/fixtures.js",
"test": "cross-env NODE_ENV=test npm run mocha -- 'test/**/*.spec.{js,ts}'",
"test:unit": "npm run mocha ./test/unit",
"test:client": "npm run mocha ./test/client",
"test:watch": "npm run test -- --watch --watch-ignore [\"*.json\",\"node_modules\",\".git\"] --bail ./test/**/*.spec.js",
"test:client:watch": "nodemon --config ./test/nodemon.json --exec cross-env ONLY_CLIENT=true npm test",
"test:one": "npm run test:watch -- --grep",
"test:coverage": "c8 --reporter=text npm run test",
"test:html": "c8 --reporter=html npm run test && echo 'Opening index.html...' && (start coverage/index.html || echo 'could not open coverage/index.html')",
"test:docs": "npm run test test/minreq.spec.js ",
"build": "(npx tsc || echo 'tsc failed but continuing to copy') && npx ts-node script/copyfiles.js",
"locov": "c8 --reporter=lcov npm run test",
"mongodump": "mongodump --gzip --archive=\"test/mongodump.gz\" --uri",
"mongoreset": "ts-node test/_database/loadScript.js",
"benchmark": "ts-node benchmark"
},
"keywords": [
"node",
"node.js",
"boilerplate",
"generator",
"express",
"rest",
"api",
"mongodb",
"mongoose",
"es6",
"es7",
"es8",
"es9",
"jest",
"travis",
"docker",
"passport",
"joi",
"eslint",
"prettier"
],
"dependencies": {
"@discordjs/collection": "^0.2.4",
"bcryptjs": "^2.4.3",
"canvas": "^2.8.0",
"chrome-aws-lambda": "^9.1.0",
"command-exists": "^1.2.9",
"compression": "^1.7.4",
"connect-mongodb-session": "^3.1.1",
"cors": "^2.8.5",
"cross-env": "^7.0.0",
"dead-easy-json": "^2.0.3",
"discord.js": "^13.2.0",
"dotenv": "^10.0.0",
"ejs": "^3.1.6",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-import-quotes": "^0.0.1",
"express": "^4.17.1",
"express-csp-header": "^5.0.0",
"express-graphql": "^0.12.0",
"express-mongo-sanitize": "^2.0.0",
"express-rate-limit": "^5.0.0",
"express-session": "^1.17.3",
"form-data": "^3.0.1",
"graphql": "^15.8.0",
"hellgate": "^0.4.0-beta",
"helmet": "^4.1.0",
"http-status": "^1.4.0",
"jimp": "^0.16.1",
"joi": "^17.3.0",
"jsonwebtoken": "^8.5.1",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"madge": "^5.0.1",
"mathjs": "^10.4.0",
"mathsteps": "^0.2.0",
"moment": "^2.24.0",
"mongoose": "^5.7.7",
"morgan": "^1.9.1",
"multer": "^1.4.4",
"node-cache": "^5.1.2",
"node-fetch": "^3.1.0",
"nodemailer": "^6.7.3",
"nope-fs-cache": "^0.2.0",
"ohmyfetch": "^0.4.15",
"passport": "^0.4.0",
"passport-custom": "^1.1.1",
"passport-jwt": "^4.0.0",
"piston-client": "^1.0.2",
"pm2": "^5.1.0",
"puppeteer": "^13.0.0",
"secure-compare": "^3.0.1",
"sorted-array": "^2.0.4",
"string-similarity": "^4.0.4",
"svg2img": "^0.9.4",
"swagger-jsdoc": "^6.0.8",
"swagger-ui-express": "^4.1.6",
"universal-cache": "https://github.com/nopeless/universal-cache.git",
"urql": "^2.2.0",
"validator": ">=13.7.0",
"winston": "^3.2.1",
"xss-clean": "^0.1.1",
"yargs": "^15.4.1"
},
"devDependencies": {
"@types/chai": "^4.3.1",
"@types/connect-mongodb-session": "^2.4.3",
"@types/express": "^4.17.13",
"@types/express-session": "^1.17.4",
"@types/joi": "^17.2.3",
"@types/lodash": "^4.14.181",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.21.0",
"benchmark": "^2.1.4",
"c8": "^7.10.0",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-spies": "^1.0.0",
"chai-string": "^1.5.0",
"coveralls": "^3.0.7",
"eslint": "^8.1.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-jest": "^24.0.1",
"eslint-plugin-mongodb": "^1.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-security": "^1.4.0",
"faker": "^5.1.0",
"husky": "^7.0.0",
"jest": "^26.0.1",
"lint-staged": "^11.0.0",
"longjohn": "^0.2.12",
"microtime": "^3.0.0",
"mocha": "^9.1.3",
"nock": "https://github.com/nopeless/nock#main",
"node-mocks-http": "^1.8.0",
"nodemon": "^2.0.0",
"prettier": "^2.6.2",
"render-file-live": "^2.0.0",
"supertest": "^6.0.1",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
}
}