|
23 | 23 | "react-hot-toast": "^2.6.0", |
24 | 24 | "react-icons": "^4.4.0", |
25 | 25 | "react-router-dom": "^7.12.0", |
26 | | - "react-scripts": "5.0.1", |
27 | 26 | "react-switch": "^7.1.0" |
28 | 27 | }, |
29 | 28 | "overrides": { |
30 | 29 | "@types/react": "npm:types-react@rc", |
31 | 30 | "@types/react-dom": "npm:types-react-dom@rc" |
32 | 31 | }, |
33 | 32 | "devDependencies": { |
| 33 | + "@babel/preset-env": "^7.26.0", |
| 34 | + "@babel/preset-react": "^7.26.0", |
| 35 | + "@babel/preset-typescript": "^7.26.0", |
34 | 36 | "@chromatic-com/cypress": "^0.11.8", |
35 | | - "@craco/craco": "^7.1.0", |
36 | 37 | "@cypress/code-coverage": "^3.14.7", |
37 | | - "@cypress/instrument-cra": "^1.4.0", |
38 | 38 | "@stryker-mutator/core": "^9.0.1", |
39 | 39 | "@stryker-mutator/jest-runner": "^9.0.1", |
40 | 40 | "@stryker-mutator/typescript-checker": "^9.0.1", |
|
47 | 47 | "@types/react": "npm:types-react@rc", |
48 | 48 | "@types/react-dom": "npm:types-react-dom@rc", |
49 | 49 | "@types/react-router-dom": "^5.3.3", |
50 | | - "autoprefixer": "^9.8.7", |
| 50 | + "@vitejs/plugin-react": "^4.3.4", |
| 51 | + "autoprefixer": "^10.4.21", |
51 | 52 | "babel-jest": "^29.7.0", |
52 | | - "babel-plugin-preval": "^5.0.0", |
53 | 53 | "chromatic": "^13.3.4", |
54 | 54 | "concurrently": "^9.2.1", |
55 | 55 | "coveralls-next": "^4.2.1", |
|
58 | 58 | "cypress-file-upload": "^5.0.8", |
59 | 59 | "electron": "^40.4.1", |
60 | 60 | "electron-builder": "^26.7.0", |
| 61 | + "eslint": "^8.57.1", |
61 | 62 | "eslint-config-react-app": "^7.0.1", |
62 | 63 | "eslint-plugin-cypress": "^2.12.1", |
63 | 64 | "eslint-plugin-react": "^7.26.1", |
64 | 65 | "http-server": "^14.1.1", |
65 | 66 | "husky": "^9.1.7", |
| 67 | + "jest": "^29.7.0", |
66 | 68 | "jest-clipboard": "^0.0.11", |
| 69 | + "jest-environment-jsdom": "^29.7.0", |
67 | 70 | "jsdom-worker": "^0.3.0", |
68 | 71 | "lcov-result-merger": "^5.0.1", |
| 72 | + "node-fetch": "^2.7.0", |
69 | 73 | "source-map-explorer": "^2.5.3", |
70 | 74 | "tailwindcss": "^3.4.18", |
| 75 | + "typescript": "^5.8.2", |
| 76 | + "vite": "^6.3.5", |
| 77 | + "vite-plugin-istanbul": "^6.0.0", |
71 | 78 | "wait-on": "^8.0.3" |
72 | 79 | }, |
73 | 80 | "postinstall": "electron-builder install-app-deps && husky install", |
74 | 81 | "scripts": { |
75 | | - "start": "HOST=0.0.0.0 BROWSER=none craco start", |
76 | | - "start-instrumented": "HOST=0.0.0.0 BROWSER=none craco -r @cypress/instrument-cra start", |
77 | | - "build": "NODE_OPTIONS=--openssl-legacy-provider craco build", |
78 | | - "analyze": "source-map-explorer 'build/static/js/*.js'", |
79 | | - "test": "craco test --max-workers=60%", |
| 82 | + "start": "vite", |
| 83 | + "start-instrumented": "VITE_COVERAGE=true vite", |
| 84 | + "build": "vite build", |
| 85 | + "analyze": "source-map-explorer 'build/assets/*.js'", |
| 86 | + "test": "jest --max-workers=60%", |
80 | 87 | "test:all": "npm run e2e && npm run test -- --watchAll=false", |
81 | | - "coverage": "npm run test -- --env=jsdom --no-cache --collectCoverage --ci --watchAll=false --colors --silent", |
| 88 | + "coverage": "jest --no-cache --collectCoverage --ci --watchAll=false --colors --silent", |
82 | 89 | "coveralls": "coveralls < merged_coverage.info", |
83 | 90 | "e2e": "ELECTRON_EXTRA_LAUNCH_ARGS=--remote-debugging-port=9222 CYPRESS_BASE_URL=http://localhost:3000 cypress run", |
84 | 91 | "e2e:open": "CYPRESS_BASE_URL=http://localhost:3000 cypress open", |
85 | | - "eject": "craco eject", |
86 | | - "dev": "concurrently -k \"npm start\" \"npm run electron\"", |
| 92 | + "dev": "concurrently -k \"vite\" \"npm run electron\"", |
87 | 93 | "setup": "npm run build && cp package.json ./build", |
88 | 94 | "package": "npm run setup && electron-builder --linux snap -p never", |
89 | 95 | "package-windows": "npm run setup && electron-builder --win --x64 -p never", |
|
144 | 150 | } |
145 | 151 | }, |
146 | 152 | "jest": { |
| 153 | + "testEnvironment": "jsdom", |
| 154 | + "testPathIgnorePatterns": [ |
| 155 | + "/node_modules/", |
| 156 | + "/cypress/" |
| 157 | + ], |
| 158 | + "setupFilesAfterEnv": [ |
| 159 | + "<rootDir>/src/setupTests.ts" |
| 160 | + ], |
| 161 | + "moduleNameMapper": { |
| 162 | + "\\.(css|less|scss|sass)$": "<rootDir>/src/__mocks__/styleMock.js" |
| 163 | + }, |
147 | 164 | "transformIgnorePatterns": [ |
148 | 165 | "<rootDir>/node_modules/?!(.*)" |
149 | 166 | ], |
150 | 167 | "transform": { |
151 | | - "^.+\\.tsx?$": "babel-jest" |
| 168 | + "^.+\\.(tsx?|js)$": "babel-jest" |
152 | 169 | } |
153 | 170 | } |
154 | 171 | } |
0 commit comments