Skip to content

Commit

Permalink
front: drop unused dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emersion committed Sep 16, 2024
1 parent df44230 commit 5c77f53
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 209 deletions.
6 changes: 0 additions & 6 deletions front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,6 @@ All common code (and shared components) supposed to be in `common/`.

- https://www.npmjs.com/package/@rjsf/core
- https://www.npmjs.com/package/reselect
- https://github.com/reduxjs/redux-thunk

### Do not know where it is used

- debounce
- jwt-decode

### devDependencies

Expand Down
25 changes: 4 additions & 21 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
"private": true,
"dependencies": {
"@ag-media/react-pdf-table": "^1.0.1",
"@hookform/resolvers": "^3.3.4",
"@nivo/annotations": "^0.80.0",
"@nivo/core": "^0.80.0",
"@nivo/line": "^0.80.0",
"@nivo/tooltip": "^0.80.0",
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
"@osrd-project/netzgrafik-frontend": "0.0.0-snapshot.1f2fe60f93abd5fafa86e67aacbcc6eeae7dc0b5",
"@osrd-project/ui-core": "^0.0.40",
Expand Down Expand Up @@ -48,14 +45,10 @@
"@turf/simplify": "^6.5.0",
"@turf/transform-translate": "^6.5.0",
"@types/vinyl-fs": "^3.0.5",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-v8": "^1.2.2",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^2.1.1",
"ajv-i18n": "^4.2.0",
"are-we-there-yet": "^4.0.2",
"babel-loader": "9.1.3",
"chroma-js": "^2.4.2",
"classnames": "^2.5.1",
"country-flag-icons": "^1.5.9",
Expand All @@ -75,13 +68,9 @@
"i18next-xhr-backend": "^3.2.2",
"immer": "^10.0.3",
"js-file-download": "^0.4.12",
"js-sha256": "^0.11.0",
"json-schema": "^0.4.0",
"jwt-decode": "^4.0.0",
"localforage": "^1.10.0",
"lodash": "^4.17.21",
"maplibre-gl": "^4.0.0",
"match-sorter": "^6.3.3",
"openapi-typescript-codegen": "^0.27.0",
"party-js": "^2.2.0",
"prop-types": "^15.8.1",
Expand All @@ -91,8 +80,6 @@
"react-countdown": "^2.3.5",
"react-datasheet-grid": "^4.11.4",
"react-dom": "^18.2.0",
"react-flatpickr": "^3.10.13",
"react-hook-form": "^7.50.0",
"react-i18next": "^14.0.3",
"react-icons": "^5.0.1",
"react-id-generator": "^3.0.2",
Expand All @@ -110,22 +97,16 @@
"redux-persist": "^6.0.0",
"redux-persist-transform-compress": "^4.2.0",
"redux-persist-transform-filter": "0.0.22",
"redux-thunk": "^3.1.0",
"remark-gfm": "^4.0.0",
"reselect": "^5.1.0",
"sass": "^1.70.0",
"sass-loader": "^14.1.0",
"scheduler": "^0.23.0",
"sort-by": "^1.2.0",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"tsx": "^4.7.1",
"uuid": "^9.0.1",
"viewport-mercator-project": "^7.0.4"
},
"devDependencies": {
"license-checker-rseidelsohn": "^4.4.2",
"@babel/core": "^7.23.9",
"@faker-js/faker": "^8.4.0",
"@import-meta-env/prepare": "^0.1.13",
"@import-meta-env/unplugin": "^0.5.1",
Expand All @@ -152,15 +133,16 @@
"@types/react": "^18.2.53",
"@types/react-beautiful-dnd": "^13.1.8",
"@types/react-dom": "^18.2.18",
"@types/react-lazy-load-image-component": "^1.6.3",
"@types/react-modal": "^3.16.3",
"@types/react-transition-group": "^4.4.10",
"@types/tether": "^1.4.9",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react-swc": "^3.6.0",
"@vitest/coverage-c8": "^0.29.8",
"@vitest/coverage-v8": "^1.2.2",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -175,8 +157,10 @@
"happy-dom": "^13.3.8",
"i18next-fs-backend": "^2.3.1",
"json-key-path-list": "^2.0.3",
"license-checker-rseidelsohn": "^4.4.2",
"prettier": "^3.2.5",
"storybook": "^7.6.12",
"ts-node": "^10.9.2",
"typescript": "~5.3.3",
"vite": "^5.1.7",
"vite-plugin-checker": "^0.6.4",
Expand All @@ -187,7 +171,6 @@
"resolutions": {
"react-error-overlay": "6.0.9",
"@nivo/line": "^0.80.0",
"@nivo/annotations": "^0.80.0",
"@nivo/core": "^0.80.0",
"oazapfts": "anisometropie/oazapfts#master"
},
Expand Down
Loading

0 comments on commit 5c77f53

Please sign in to comment.