refactor(web): migrate create-react-app to vite (#823)

* fix(build): dockerignore add exclusions

* fix: baseurl and build

* chore: removed react-app-env instead use vite

* chore: updated server and embedding static files.

* commented because conflict I believe, and not needed.

* docs: updated readme

* chore: updated json and added vite

* chore: import fix

* chore: updated yarn.lock and package json

* build: add empty dist to compile backend

* fix: use / as default baseurl

---------

Co-authored-by: KaiserBh <kaiserbh@proton.me>
Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
KaiserBh 2023-04-10 22:28:24 +10:00 committed by GitHub
parent 33897b04a1
commit 1cdbbe5bf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 717 additions and 9474 deletions

View file

@ -24,16 +24,15 @@
"react-query": "^3.39.1",
"react-ridge-state": "4.2.2",
"react-router-dom": "^6.3.0",
"react-scripts": "^5.0.1",
"react-select": "^5.3.2",
"react-table": "^7.8.0",
"react-tooltip": "^5.5.2",
"stacktracey": "^2.1.8"
},
"scripts": {
"start": "BROWSER=none react-scripts start",
"build": "react-scripts build",
"eject": "react-scripts eject",
"start": "vite",
"build": "tsc && vite build",
"serve": "vite preview",
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx --color",
"lint:watch": "npm run lint -- --watch"
},
@ -58,6 +57,7 @@
"@types/react-table": "^7.7.12",
"@typescript-eslint/eslint-plugin": "^5.28.0",
"@typescript-eslint/parser": "^5.28.0",
"@vitejs/plugin-react-swc": "^3.2.0",
"autoprefixer": "^10.4.7",
"eslint": "^8.17.0",
"eslint-plugin-import": "^2.26.0",
@ -67,7 +67,8 @@
"http-proxy-middleware": "^2.0.6",
"postcss": "^8.4.14",
"tailwindcss": "^3.1.3",
"typescript": "^4.7.3"
"typescript": "^4.7.3",
"vite": "^4.2.1"
},
"packageManager": "yarn@3.2.2"
}