-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
94 lines (94 loc) · 2.44 KB
/
package.json
File metadata and controls
94 lines (94 loc) · 2.44 KB
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
{
"name": "fortune-cookie-app",
"version": "1.0.0",
"description": "This repository contains the code / starting points that match the topics in the [material repository](https://github.tools.sap/cloud-curriculum/material).",
"scripts": {
"build": "rimraf dist && tsc",
"prestart": "npm run db:migrate:up",
"start": "node dist/src/index.js",
"start:dev": "npm run db:migrate:up:ts && ts-node src/index.ts",
"pretest": "npm run db:migrate:up:ts",
"test": "mocha",
"lint": "eslint .",
"db:start": "docker run -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:14-alpine",
"db:migrate:up": "node dist/src/lib/migrate.js up",
"db:migrate:up:ts": "ts-node src/lib/migrate.ts up",
"db:migrate:down": "node dist/src/lib/migrate.js down",
"db:migrate:down:ts": "ts-node src/lib/migrate.ts down"
},
"repository": {
"type": "git",
"url": "https://github.tools.sap/cloud-curriculum/exercise-code-nodejs.git"
},
"dependencies": {
"db-migrate": "^0.11.13",
"db-migrate-pg": "^1.3.0",
"express": "^4.18.2",
"pg": "^8.11.2",
"zod": "^3.22.2"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.1",
"@types/express": "^4.17.17",
"@types/mocha": "^10.0.1",
"@types/node": "^20.4.9",
"@types/pg": "^8.10.2",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "^8.46.0",
"mocha": "^10.2.0",
"nodemon": "^3.0.1",
"rimraf": "^5.0.1",
"supertest": "^6.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"mocha": {
"extension": [
"ts"
],
"spec": [
"test/**/*.test.ts"
],
"require": "ts-node/register"
},
"engines": {
"node": "^20",
"npm": ">=9"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"plugins": [
"@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"no-trailing-spaces": "warn",
"eol-last": [
"error",
"always"
],
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 1
}
]
},
"ignorePatterns": [
"dist",
"migrations"
],
"root": true
}
}