Skip to content

Commit 0412b33

Browse files
committed
front: drop unused dependencies
Some packages were included in package.json but weren't actually used anymore. Drop them. Also move @vitejs/plugin-react-swc, @vitest/coverage-v8 and ts-node to devDependencies, since it's build tooling.
1 parent f210693 commit 0412b33

File tree

3 files changed

+65
-209
lines changed

3 files changed

+65
-209
lines changed

front/README.md

-6
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,6 @@ All common code (and shared components) supposed to be in `common/`.
238238

239239
- https://www.npmjs.com/package/@rjsf/core
240240
- https://www.npmjs.com/package/reselect
241-
- https://github.com/reduxjs/redux-thunk
242-
243-
### Do not know where it is used
244-
245-
- debounce
246-
- jwt-decode
247241

248242
### devDependencies
249243

front/package.json

+4-21
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
"private": true,
55
"dependencies": {
66
"@ag-media/react-pdf-table": "^1.0.1",
7-
"@hookform/resolvers": "^3.3.4",
8-
"@nivo/annotations": "^0.80.0",
97
"@nivo/core": "^0.80.0",
108
"@nivo/line": "^0.80.0",
11-
"@nivo/tooltip": "^0.80.0",
129
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
1310
"@osrd-project/netzgrafik-frontend": "0.0.0-snapshot.1f2fe60f93abd5fafa86e67aacbcc6eeae7dc0b5",
1411
"@osrd-project/ui-core": "^0.0.40",
@@ -48,14 +45,10 @@
4845
"@turf/simplify": "^6.5.0",
4946
"@turf/transform-translate": "^6.5.0",
5047
"@types/vinyl-fs": "^3.0.5",
51-
"@vitejs/plugin-react-swc": "^3.6.0",
52-
"@vitest/coverage-v8": "^1.2.2",
5348
"ajv": "^8.12.0",
5449
"ajv-errors": "^3.0.0",
5550
"ajv-formats": "^2.1.1",
5651
"ajv-i18n": "^4.2.0",
57-
"are-we-there-yet": "^4.0.2",
58-
"babel-loader": "9.1.3",
5952
"chroma-js": "^2.4.2",
6053
"classnames": "^2.5.1",
6154
"country-flag-icons": "^1.5.9",
@@ -75,13 +68,9 @@
7568
"i18next-xhr-backend": "^3.2.2",
7669
"immer": "^10.0.3",
7770
"js-file-download": "^0.4.12",
78-
"js-sha256": "^0.11.0",
7971
"json-schema": "^0.4.0",
80-
"jwt-decode": "^4.0.0",
81-
"localforage": "^1.10.0",
8272
"lodash": "^4.17.21",
8373
"maplibre-gl": "^4.0.0",
84-
"match-sorter": "^6.3.3",
8574
"openapi-typescript-codegen": "^0.27.0",
8675
"party-js": "^2.2.0",
8776
"prop-types": "^15.8.1",
@@ -91,8 +80,6 @@
9180
"react-countdown": "^2.3.5",
9281
"react-datasheet-grid": "^4.11.4",
9382
"react-dom": "^18.2.0",
94-
"react-flatpickr": "^3.10.13",
95-
"react-hook-form": "^7.50.0",
9683
"react-i18next": "^14.0.3",
9784
"react-icons": "^5.0.1",
9885
"react-id-generator": "^3.0.2",
@@ -110,22 +97,16 @@
11097
"redux-persist": "^6.0.0",
11198
"redux-persist-transform-compress": "^4.2.0",
11299
"redux-persist-transform-filter": "0.0.22",
113-
"redux-thunk": "^3.1.0",
114100
"remark-gfm": "^4.0.0",
115101
"reselect": "^5.1.0",
116102
"sass": "^1.70.0",
117103
"sass-loader": "^14.1.0",
118-
"scheduler": "^0.23.0",
119-
"sort-by": "^1.2.0",
120-
"ts-node": "^10.9.2",
121104
"tslib": "^2.6.2",
122105
"tsx": "^4.7.1",
123106
"uuid": "^9.0.1",
124107
"viewport-mercator-project": "^7.0.4"
125108
},
126109
"devDependencies": {
127-
"license-checker-rseidelsohn": "^4.4.2",
128-
"@babel/core": "^7.23.9",
129110
"@faker-js/faker": "^8.4.0",
130111
"@import-meta-env/prepare": "^0.1.13",
131112
"@import-meta-env/unplugin": "^0.5.1",
@@ -152,15 +133,16 @@
152133
"@types/react": "^18.2.53",
153134
"@types/react-beautiful-dnd": "^13.1.8",
154135
"@types/react-dom": "^18.2.18",
155-
"@types/react-lazy-load-image-component": "^1.6.3",
156136
"@types/react-modal": "^3.16.3",
157137
"@types/react-transition-group": "^4.4.10",
158138
"@types/tether": "^1.4.9",
159139
"@types/uuid": "^9.0.8",
160140
"@typescript-eslint/eslint-plugin": "^6.20.0",
161141
"@typescript-eslint/parser": "^6.20.0",
162142
"@vitejs/plugin-react": "^4.2.1",
143+
"@vitejs/plugin-react-swc": "^3.6.0",
163144
"@vitest/coverage-c8": "^0.29.8",
145+
"@vitest/coverage-v8": "^1.2.2",
164146
"eslint": "^8.56.0",
165147
"eslint-config-airbnb": "^19.0.4",
166148
"eslint-config-prettier": "^9.1.0",
@@ -175,8 +157,10 @@
175157
"happy-dom": "^13.3.8",
176158
"i18next-fs-backend": "^2.3.1",
177159
"json-key-path-list": "^2.0.3",
160+
"license-checker-rseidelsohn": "^4.4.2",
178161
"prettier": "^3.2.5",
179162
"storybook": "^7.6.12",
163+
"ts-node": "^10.9.2",
180164
"typescript": "~5.3.3",
181165
"vite": "^5.1.7",
182166
"vite-plugin-checker": "^0.6.4",
@@ -187,7 +171,6 @@
187171
"resolutions": {
188172
"react-error-overlay": "6.0.9",
189173
"@nivo/line": "^0.80.0",
190-
"@nivo/annotations": "^0.80.0",
191174
"@nivo/core": "^0.80.0",
192175
"oazapfts": "anisometropie/oazapfts#master"
193176
},

0 commit comments

Comments
 (0)