-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 4.6 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
{
"name": "react-cypress-ts-template",
"version": "0.1.0",
"license": "UNLICENSED",
"scripts": {
"start": "vite",
"start:api": "json-server --watch db.json --port 4000 --delay 1000 --routes routes.json --middlewares ./node_modules/json-server-reset",
"dev": "concurrently -k yarn:start yarn:start:api",
"build": "vite build",
"test": "jest --watch",
"test:coverage": "yarn test --watchAll=false --collectCoverageFrom=src/**/*.ts* --collectCoverageFrom=!src/**/*.*.ts* --coverage",
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --watch --runInBand",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|json|css|md|mdx|html)\"",
"lint": "eslint . --cache-location node_modules/.cache/eslint --fix",
"typecheck": "tsc --noEmit",
"reset": "node ./scripts/reset-database.js",
"reset:db": "npm run reset",
"validate": "npm-run-all --parallel format lint typecheck build",
"cy:open": "cypress open --e2e --browser chrome",
"cy:run": "cypress run --e2e --browser chrome",
"cy:open-e2e": "concurrently -k yarn:start:api 'server-test 3000 cy:open'",
"cy:run-e2e": "concurrently -k yarn:start:api 'server-test 3000 cy:run'",
"cy:open-ct": "cypress open --component --browser chrome",
"cy:run-ct": "cypress run --component --browser chrome",
"cy:run-ct-fast": "CYPRESS_NO_COMMAND_LOG=1 yarn cy:run-ct --config video=false screenshot=false",
"cov:combined": "yarn copy:reports && yarn combine:reports && yarn finalize:combined-report",
"copy:reports": "(mkdir reports || true) && cp coverage-cy/coverage-final.json reports/from-cypress.json && cp coverage/coverage-final.json reports/from-jest.json",
"combine:reports": "(mkdir .nyc_output || true) && yarn nyc merge reports && mv coverage.json .nyc_output/out.json",
"finalize:combined-report": "yarn nyc report --reporter html --reporter text --reporter json-summary --report-dir combined-coverage",
"cov:reset": "rm -rf .nyc_output && rm -rf reports && rm -rf coverage && rm -rf coverage-cy && rm -rf combined-coverage",
"cy:run-ct-changed": "chmod +x ./scripts/run_cyct_changed_tests.sh && ./scripts/run_cyct_changed_tests.sh",
"test:jest-changed": "chmod +x ./scripts/run_jest_changed_tests.sh && ./scripts/run_jest_changed_tests.sh"
},
"dependencies": {
"@vitejs/plugin-react": "3.1.0",
"axios": "0.27.2",
"bulma": "0.9.4",
"json-server": "0.17.1",
"ramda": "0.30.0",
"ramda-adjunct": "5.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-error-boundary": "4.0.13",
"react-icons": "5.2.1",
"react-query": "3.39.3",
"react-router-dom": "6.23.1",
"sass": "^1.77.1",
"vite": "4.5.3",
"web-vitals": "3.5.2"
},
"devDependencies": {
"@bahmutov/cypress-code-coverage": "2.6.1",
"@bahmutov/cypress-esbuild-preprocessor": "2.2.3",
"@cypress/vite-plugin-cypress-esm": "^1.0.0",
"@faker-js/faker": "8.4.1",
"@testing-library/cypress": "10.0.1",
"@testing-library/dom": "10.0.0",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.1.2",
"@testing-library/user-event": "14.5.2",
"@types/jest": "29.5.12",
"@types/node": "20.12.11",
"@types/ramda": "0.30.0",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"@types/react-icons": "3.0.0",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"concurrently": "8.2.2",
"cypress": "13.15.1",
"esbuild": "0.21.2",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-config-react-app": "7.0.1",
"eslint-plugin-chai-friendly": "0.7.2",
"eslint-plugin-cypress": "4.1.0",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-prettier": "4.2.1",
"esbuild-plugin-polyfill-node": "0.3.0",
"husky": "4.3.8",
"istanbul": "0.4.5",
"istanbul-lib-coverage": "3.2.2",
"jest": "27.5.1",
"jest-environment-jsdom": "27.5.1",
"json-server-reset": "1.6.0",
"lint-staged": "14.0.1",
"msw": "0.47.2",
"npm-run-all2": "6.1.2",
"nyc": "15.1.0",
"prettier": "2.8.8",
"start-server-and-test": "2.0.3",
"ts-jest": "27.1.4",
"typescript": "4.8.3",
"vite-plugin-environment": "1.1.3",
"vite-plugin-istanbul": "6.0.0"
},
"husky": {
"hooks": {
"pre-commit": "yarn typecheck && yarn test --watchAll=false && yarn cy:run-ct-fast && lint-staged "
}
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}