Migrated from react-scripts and webpack to vite

This commit is contained in:
Alejandro Celaya
2022-12-24 10:18:26 +01:00
parent 35fcd20123
commit 52f556eb2e
10 changed files with 1525 additions and 19879 deletions

View File

@@ -12,8 +12,8 @@
"lint:fix": "npm run lint:css:fix && npm run lint:js:fix",
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js:fix": "npm run lint:js -- --fix",
"start": "DISABLE_ESLINT_PLUGIN=true react-scripts start",
"build": "DISABLE_ESLINT_PLUGIN=true react-scripts build && node scripts/replace-version.mjs",
"start": "vite serve --host=0.0.0.0",
"build": "tsc && vite build && node scripts/replace-version.mjs",
"build:dist": "npm run build && node scripts/create-dist-file.mjs",
"build:serve": "serve -p 5000 ./build",
"test": "jest --env=jsdom --colors",
@@ -29,6 +29,7 @@
"@fortawesome/free-regular-svg-icons": "^6.2.0",
"@fortawesome/free-solid-svg-icons": "^6.2.0",
"@fortawesome/react-fontawesome": "^0.2.0",
"@json2csv/plainjs": "^6.1.2",
"@reduxjs/toolkit": "^1.9.0",
"bootstrap": "^5.2.2",
"bottlejs": "^2.0.1",
@@ -40,7 +41,6 @@
"date-fns": "^2.29.3",
"event-source-polyfill": "^1.0.31",
"history": "^5.3.0",
"json2csv": "^5.0.7",
"leaflet": "^1.9.2",
"qs": "^6.11.0",
"ramda": "^0.27.2",
@@ -60,7 +60,6 @@
"redux": "^4.2.0",
"redux-localstorage-simple": "^2.5.1",
"redux-thunk": "^2.4.1",
"stream": "^0.0.2",
"uuid": "^8.3.2",
"workbox-core": "^6.5.4",
"workbox-expiration": "^6.5.4",
@@ -89,6 +88,7 @@
"@types/react-dom": "^18.0.6",
"@types/react-tag-autocomplete": "^6.3.0",
"@types/uuid": "^8.3.4",
"@vitejs/plugin-react": "^3.0.0",
"adm-zip": "^0.5.9",
"babel-jest": "^29.1.2",
"chalk": "^5.0.1",
@@ -97,7 +97,6 @@
"jest": "^29.1.2",
"jest-canvas-mock": "^2.4.0",
"jest-environment-jsdom": "^29.1.2",
"react-scripts": "^5.0.1",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.55.0",
"serve": "^14.1.1",
@@ -105,7 +104,7 @@
"stylelint": "^14.13.0",
"ts-mockery": "^1.2.0",
"typescript": "^4.8.4",
"webpack": "^5.74.0"
"vite": "^4.0.3"
},
"browserslist": [
">0.2%",