-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
53 lines (53 loc) · 2.18 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
{
"name": "heroku-api",
"version": "1.1.1",
"description": "",
"engines": {
"node": "16.x.x"
},
"scripts": {
"build": "npm run build:backend && npm run build:frontend",
"build:backend": "tsc",
"build:generate-frontend-types": "npx openapi-typescript-codegen --input http://localhost:1338/api-docs.json --output frontend/src/openapi --useOptions --useUnionTypes --name MediaQuotesClient",
"build:frontend-types": "start-server-and-test 'PORT=1338 npm run start' http-get://localhost:1338/api-docs.json 'npm run build:generate-frontend-types'",
"build:frontend-react": "npm --prefix frontend run build",
"build:frontend": "npm run build:frontend-types && npm run build:frontend-react",
"start": "node dist/index.js",
"dev": "concurrently 'npm run build:backend -- --watch' 'nodemon --watch dist/api --exec \"npm run build:frontend-types\"' 'nodemon --watch dist --exec \"ts-node src/index.ts\"' 'wait-on http-get://localhost:1337/api/status && npm --prefix frontend run dev'",
"test": "mocha --require ts-node/register src/tests/*spec.ts",
"coverage": "c8 --reporter=html --reporter=cobertura mocha --require ts-node/register src/tests/*spec.ts",
"coverage-watch": "nodemon --exec c8 --reporter=html --reporter=lcov mocha --require ts-node/register src/tests/*spec.ts",
"postinstall": "npm --prefix frontend install"
},
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.1",
"ejs": "^3.1.8",
"express": "^4.18.1",
"express-openapi": "^12.0.0",
"mongodb": "^4.6.0",
"openapi-typescript-codegen": "^0.23.0",
"playwright": "^1.22.2",
"start-server-and-test": "^1.14.0",
"swagger-ui-express": "^4.4.0",
"typescript": "^4.8.4"
},
"devDependencies": {
"@types/cors": "^2.8.12",
"@types/express": "^4.17.14",
"@types/mocha": "^9.1.1",
"@types/supertest": "^2.0.12",
"@types/swagger-ui-express": "^4.1.3",
"c8": "^7.11.3",
"concurrently": "^7.5.0",
"mocha": "^7.2.0",
"mongodb-memory-server": "^8.6.1",
"nodemon": "^2.0.16",
"parse-srt": "^1.0.0-alpha",
"string-strip-html": "^8.3.0",
"supertest": "^6.2.3",
"ts-node": "^10.9.1"
}
}