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

@ -38,8 +38,8 @@ jobs:
- name: Upload web production build
uses: actions/upload-artifact@v3
with:
name: web-build
path: web/build
name: web-dist
path: web/dist
test:
name: Test
@ -54,8 +54,8 @@ jobs:
- name: Download web production build
uses: actions/download-artifact@v3
with:
name: web-build
path: web/build
name: web-dist
path: web/dist
# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
@ -81,8 +81,8 @@ jobs:
- name: Download web production build
uses: actions/download-artifact@v3
with:
name: web-build
path: web/build
name: web-dist
path: web/dist
# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
@ -120,8 +120,8 @@ jobs:
- name: Download web production build
uses: actions/download-artifact@v3
with:
name: web-build
path: web/build
name: web-dist
path: web/dist
# 1.20 is the last version to support Windows < 10, Server < 2016, and MacOS < 1.15.
- name: Set up Go
@ -158,8 +158,8 @@ jobs:
- name: Download web production build
uses: actions/download-artifact@v3
with:
name: web-build
path: web/build
name: web-dist
path: web/dist
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
@ -195,4 +195,4 @@ jobs:
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ github.event.pull_request.head.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}