|
25 | 25 | "@testing-library/cypress": "9.0.0",
|
26 | 26 | "@testing-library/jest-dom": "5.16.5",
|
27 | 27 | "@testing-library/react": "14.1.2",
|
| 28 | + "cypress-vite": "^1.5.0", |
28 | 29 | "i18next": "22.5.0",
|
29 | 30 | "lodash.isequal": "^4.5.0",
|
30 | 31 | "lodash.isobject": "3.0.2",
|
|
35 | 36 | "react-dom": "18.2.0",
|
36 | 37 | "react-i18next": "12.3.1",
|
37 | 38 | "react-markdown": "^8.0.7",
|
38 |
| - "react-scripts": "5.0.1", |
39 | 39 | "react-toastify": "9.1.3",
|
40 | 40 | "remark-breaks": "^3.0.3",
|
| 41 | + "remove": "^0.1.5", |
41 | 42 | "typescript": "5.1.6",
|
42 | 43 | "uuid": "9.0.0"
|
43 | 44 | },
|
44 | 45 | "scripts": {
|
45 |
| - "start": "env-cmd -f ./.env.local react-scripts -r @cypress/instrument-cra start", |
46 |
| - "start:dev": "env-cmd -f ./.env.development react-scripts -r @cypress/instrument-cra start", |
47 |
| - "start:test": "env-cmd -f ./.env.test react-scripts -r @cypress/instrument-cra start", |
48 |
| - "start:ci": "react-scripts -r @cypress/instrument-cra start", |
49 |
| - "build": "react-scripts build", |
50 |
| - "build:dev": "env-cmd -f ./.env.development react-scripts build", |
51 |
| - "test:cra": "react-scripts test", |
52 |
| - "eject": "react-scripts eject", |
53 |
| - "postinstall": "husky install", |
54 |
| - "prettier:write": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --write", |
55 |
| - "prettier:check": "prettier {src,cypress}/**/*.{ts,tsx,js,jsx} --check", |
56 |
| - "hooks:install": "husky install", |
57 |
| - "hooks:uninstall": "husky uninstall", |
58 |
| - "pre-commit": "yarn prettier:check && yarn lint", |
| 46 | + "dev": "vite", |
| 47 | + "start": "yarn dev", |
| 48 | + "start:test": "vite --mode test", |
| 49 | + "build": "vite build", |
| 50 | + "build:dev": "vite build --mode development", |
| 51 | + "build:test": "vite build --mode test", |
| 52 | + "preview": "vite preview", |
| 53 | + "preview:dev": "vite preview --mode development", |
| 54 | + "preview:test": "vite preview --mode test", |
59 | 55 | "lint": "eslint .",
|
60 |
| - "type-check": "tsc --noEmit", |
61 |
| - "cypress:open": "env-cmd -f ./.env.development cypress open", |
62 |
| - "test": "concurrently -k -s first \"yarn start:test\" \"wait-on http://127.0.0.1:3333 && yarn test:ci\" ", |
63 |
| - "test:ci": "env-cmd -f ./.env.test cypress run --browser chrome --headless && nyc report --reporter=text --reporter=text-summary", |
| 56 | + "pre-commit": "yarn prettier:check && yarn lint && yarn type-check", |
| 57 | + "prettier:check": "prettier --check {src,cypress}/**/*.{js,ts,tsx,json}", |
| 58 | + "prettier:write": "prettier --write {src,cypress}/**/*.{js,ts,tsx,json}", |
| 59 | + "type-check": "tsc --noEmit && tsc --noEmit -p cypress/tsconfig.json", |
| 60 | + "check": "yarn prettier:check && yarn lint && yarn type-check", |
| 61 | + "hooks:uninstall": "husky uninstall", |
| 62 | + "hooks:install": "husky install", |
| 63 | + "cypress:open": "env-cmd -f ./.env.test cypress open --browser chrome", |
| 64 | + "test": "yarn build:test && concurrently -k -s first \"yarn preview:test\" \"yarn cypress:run\"", |
| 65 | + "cypress:run": "env-cmd -f ./.env.test cypress run --browser chrome", |
| 66 | + "postinstall": "husky install", |
64 | 67 | "cov:report": "open ./coverage/lcov-report/index.html",
|
65 | 68 | "release": "standard-version -a",
|
66 | 69 | "release:first": "standard-version -a --first-release",
|
|
71 | 74 | "@commitlint/cli": "17.6.7",
|
72 | 75 | "@commitlint/config-conventional": "17.6.7",
|
73 | 76 | "@cypress/code-coverage": "3.12.17",
|
74 |
| - "@cypress/instrument-cra": "1.4.0", |
75 | 77 | "@trivago/prettier-plugin-sort-imports": "4.3.0",
|
76 | 78 | "@types/i18n": "0.13.10",
|
77 | 79 | "@types/jest": "29.5.11",
|
|
85 | 87 | "@types/uuid": "9.0.7",
|
86 | 88 | "@typescript-eslint/eslint-plugin": "5.30.7",
|
87 | 89 | "@typescript-eslint/parser": "5.30.7",
|
| 90 | + "@vitejs/plugin-react": "^4.2.1", |
88 | 91 | "concurrently": "8.2.2",
|
89 |
| - "cypress": "^12.13.0", |
| 92 | + "cypress": "^13.6.1", |
90 | 93 | "env-cmd": "10.1.0",
|
91 | 94 | "eslint": "8.18.0",
|
92 | 95 | "eslint-config-airbnb": "19.0.4",
|
|
103 | 106 | "nyc": "15.1.0",
|
104 | 107 | "prettier": "2.8.8",
|
105 | 108 | "pretty-quick": "3.1.3",
|
| 109 | + "rollup-plugin-visualizer": "^5.12.0", |
106 | 110 | "standard-version": "9.5.0",
|
| 111 | + "vite": "^5.0.12", |
| 112 | + "vite-plugin-checker": "^0.6.2", |
| 113 | + "vite-plugin-dts": "^3.7.2", |
| 114 | + "vite-plugin-istanbul": "^5.0.0", |
| 115 | + "vitest": "^1.2.1", |
107 | 116 | "wait-on": "7.2.0"
|
108 | 117 | },
|
109 | 118 | "browserslist": {
|
|
0 commit comments