-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
156 lines (156 loc) · 4.25 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": "pwa-kit",
"version": "0.0.0",
"description": "PWA Kit with Next.js + TypeScript",
"license": "MIT",
"scripts": {
"dev": "APP_ENV=dev NEXT_PUBLIC_APP_ENV=dev next dev",
"dev:secure": "concurrently \"pnpm dev --port=3001\" \"caddy run\" ",
"build:stag": "APP_ENV=staging NEXT_PUBLIC_APP_ENV=staging next build",
"build:prod": "APP_ENV=production NEXT_PUBLIC_APP_ENV=production next build",
"start:stag": "APP_ENV=staging NEXT_PUBLIC_APP_ENV=staging next start",
"start:prod": "APP_ENV=production NEXT_PUBLIC_APP_ENV=production next start",
"lint": "eslint . --ext .ts,.tsx --fix",
"fmt": "prettier --write '(src|tests|.types)/**/*.{ts,tsx,json}'",
"lint:check": "eslint . --ext .ts,.tsx",
"fmt:check": "prettier --check '(src|tests|.types)/**/*.{ts,tsx,json}'",
"test": "APP_ENV=dev NEXT_PUBLIC_APP_ENV=dev jest -i",
"test:w": "pnpm test -- --watch",
"test:c": "pnpm test -- --coverage",
"t": "pnpm test",
"test:e2e": "E2E_BASE_URL=http://localhost:3000 pnpm playwright test -x -c tests/config/e2e/setup.ts",
"cleanup": "pnpm rimraf .next coverage",
"cleanup:hard": "pnpm cleanup -- node_modules",
"ci": "concurrently \"pnpm t\" \"pnpm fmt:check\" \"pnpm lint:check\" "
},
"dependencies": {
"@tanstack/react-query": "^4.32.0",
"lodash": "4.17.21",
"next": "^13.4.12",
"next-pwa": "^5.6.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@playwright/test": "^1.36.2",
"@swc/core": "^1.3.72",
"@swc/jest": "^0.2.27",
"@testing-library/dom": "9.3.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.0.0",
"@types/jest": "^29.5.3",
"@types/lodash.merge": "4.6.7",
"@types/node": "^20.4.5",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"autoprefixer": "^10.4.14",
"babel-loader": "^9.1.3",
"concurrently": "8.2.0",
"dotenv": "16.3.1",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-plugin-jest-dom": "5.0.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"msw": "^1.2.3",
"postcss": "^8.4.27",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"tailwindcss": "^3.3.3",
"ts-node": "^10.9.1",
"typescript": "^5.1.6",
"webpack": "^5.88.2"
},
"jest": {
"transform": {
"^.+\\.tsx?$": [
"@swc/jest",
{
"sourceMaps": true
}
]
},
"reporters": [
"default",
"github-actions"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"testMatch": [
"<rootDir>/tests/(unit|integration)/**/*.test.ts(x)?",
"<rootDir>/src/**/*.test.ts(x)?"
],
"testEnvironment": "jsdom",
"setupFiles": [
"dotenv/config"
],
"setupFilesAfterEnv": [
"@testing-library/react/dont-cleanup-after-each",
"@testing-library/jest-dom/extend-expect",
"./tests/config/mocks/setup-tests.ts"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"collectCoverageFrom": [
"src/modules/**/*.{ts,tsx}",
"src/utilities/**/*.{ts,tsx}",
"!**/node_modules/**",
"!src/**/index.{ts,tsx}"
]
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react-hooks",
"jsx-a11y",
"jest-dom"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:jest-dom/recommended",
"prettier"
],
"settings": {
"react": {
"version": "detect"
}
}
},
"eslintIgnore": [
"node_modules",
".next",
"coverage",
".vscode"
],
"postcss": {
"plugins": [
"tailwindcss",
"autoprefixer"
]
},
"msw": {
"workerDirectory": "public"
},
"volta": {
"node": "18.16.0",
"pnpm": "8.6.1"
}
}