-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
107 lines (107 loc) · 2.97 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
{
"name": "running",
"version": "0.0.1",
"private": true,
"type": "module",
"repository": {
"type": "git",
"url": "git@github.com:luankefei/running.git"
},
"engines": {
"node": ">= 18"
},
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"type-check": "tsc",
"test": "jest",
"format": "prettier --parser typescript --write \"src/**/*.{ts,tsx}\"",
"lint": "eslint --fix --ext \"src/*.d.ts\"",
"prepare": "husky install",
"commit": "giz-cz"
},
"jest": {
"moduleNameMapper": {
"@components/(.*)": "<rootDir>/src/components/$1",
"@containers/(.*)": "<rootDir>/src/containers/$1",
"@contexts/(.*)": "<rootDir>/src/contexts/$1",
"@app/(.*)": "<rootDir>/src/app/$1",
"@services/(.*)": "<rootDir>/src/services/$1",
"@interface/(.*)": "<rootDir>/src/interfaces/$1",
"@hooks/(.*)": "<rootDir>/src/hooks/$1"
},
"extensionsToTreatAsEsm": [
".ts"
],
"preset": "ts-jest/presets/default-esm",
"setupFilesAfterEnv": [
"<rootDir>/setupTests.ts"
],
"transform": {
".+\\.(css|styl|less|sass|scss)$": "jest-css-modules-transform"
},
"testMatch": [
"<rootDir>/**/*.spec.{js,ts,tsx}"
],
"testEnvironment": "jsdom",
"globals": {
"ts-jest": {
"useESM": true,
"tsconfig": "tsconfig.test.json"
}
},
"setupFiles": [
"jest-canvas-mock"
]
},
"dependencies": {
"@arco-design/web-react": "^2.42.0",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@reduxjs/toolkit": "^1.9.0",
"next": "latest",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
"swr": "^1.3.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^17.3.0",
"@emotion/eslint-plugin": "^11.10.0",
"@jest/types": "^29.3.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@types/react-redux": "^7.1.24",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"commitizen": "^4.2.5",
"commitlint": "^17.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard-with-typescript": "^23.0.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.5.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.2",
"jest": "^29.3.1",
"jest-css-modules-transform": "^4.2.0",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}