-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
156 lines (156 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
{
"name": "finishline-express",
"version": "5.0.0",
"description": "",
"private": true,
"workspaces": [
"src/backend",
"src/frontend",
"src/shared"
],
"scripts": {
"prettier-check": "yarn prettier --check .",
"frontend": "yarn workspace frontend start",
"backend": "yarn workspace backend start",
"backend:dev": "yarn workspace backend dev",
"start": "yarn workspace shared build; concurrently --kill-others-on-fail \"yarn backend:dev\" \"yarn frontend\"",
"prisma:seed": "cd src/backend; npx prisma db seed",
"prisma:reset:force": "yarn workspace shared build; cd src/backend; npx prisma migrate reset --force",
"prisma:reset": "yarn workspace shared build; cd src/backend; npx prisma migrate reset",
"prisma:migrate": "yarn prisma:migrate:dev",
"prisma:migrate:dev": "cd src/backend; npx prisma migrate dev",
"prisma:migrate:prod": "cd src/backend; npx prisma migrate deploy",
"prisma:generate": "cd src/backend; npx prisma generate",
"prisma:manual": "yarn workspace backend prisma:manual",
"prisma:studio": "cd src/backend; npx prisma studio",
"containerize": "cd containerization; docker compose down && docker compose build && docker compose up -d && sleep 5 && cd ../ && yarn containerize:psql:init && yarn prisma:migrate",
"containerize:psql:init": "docker exec database psql -U postgres -c \"CREATE DATABASE nerpm;\" && yarn database:setup:script",
"containerize:test:e2e": "yarn containerize && yarn prisma:reset:force && yarn test:e2e",
"lint": "npx eslint .",
"test:e2e": "./system-tests/run.sh",
"test:frontend": "yarn workspace shared build; yarn workspace frontend test",
"test:backend": "yarn workspace shared build; yarn workspace backend test",
"test": "yarn test:backend && yarn test:frontend",
"test:setup": "node scripts/test-setup.js && docker run --name finishline_test -e POSTGRES_PASSWORD=docker -p 5433:5432 -d postgres && sleep 5 && docker exec finishline_test psql -U postgres -c \"CREATE DATABASE nerpm;\" && yarn prisma:migrate",
"test:teardown": "docker stop finishline_test && docker rm finishline_test && node scripts/test-teardown.js",
"build": "yarn run build:backend && yarn run build:shared && yarn run build:frontend",
"build:backend": "yarn workspace backend build",
"build:shared": "yarn workspace shared build",
"build:frontend": "yarn workspace frontend build",
"build:frontend:dev": "yarn workspace frontend build:dev",
"i": "yarn install && yarn prisma:generate",
"database:setup": "yarn database:setup:script && docker run --name finishline -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres && sleep 5 && docker exec finishline psql -U postgres -c \"CREATE DATABASE nerpm;\" && yarn prisma:reset",
"database:setup:script": "node scripts/database-setup.js",
"istart": "yarn i && yarn start",
"reset": "rimraf yarn.lock; rimraf src/frontend/node_modules; rimraf src/backend/node_modules; rimraf src/shared/node_modules; rimraf ./node_modules; ",
"install:hard": "yarn reset; yarn install; yarn prisma:generate",
"tsc-check": "tsc --noEmit --project src/backend/tsconfig.json && tsc --noEmit --project src/frontend/tsconfig.json"
},
"resolutions": {
"@types/react": "17.0.1",
"@types/react-dom": "17.0.1"
},
"dependencies": {
"mitt": "^3.0.1",
"react-hook-form-persist": "^3.0.0",
"typescript": "^4.1.5"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^28.1.6",
"@types/node": "18.17.1",
"@typescript-eslint/eslint-plugin": "4.18.0",
"@typescript-eslint/parser": "4.18.0",
"concurrently": "^5.2.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-cypress": "latest",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest",
"plugin:cypress/recommended"
],
"rules": {
"guard-for-in": "error",
"prefer-arrow-callback": "error",
"no-unsafe-negation": [
"error",
{
"enforceForOrderingRelations": true
}
],
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": true
}
],
"eqeqeq": "error",
"no-else-return": "error",
"no-lonely-if": "error",
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"prefer-exponentiation-operator": "error",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error"
},
"globals": {
"vi": true
},
"ignorePatterns": [
"**/.github/**",
"build",
"coverage",
"docs",
"lambda",
"node_modules",
"public",
"lib",
"dist",
"scripts"
]
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"transform": {
"node_modules/variables/.+\\.(j|t)sx?$": "ts-jest"
},
"transformIgnorePatterns": [
"node_modules/(?!variables/.*)"
]
},
"author": "",
"license": "ISC"
}