-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* replacing CRA boilerplate with Vite incl env vars * go back to using es6 * newline in gitignore for vite * dynamic env config * newline in config * cleanup from PR, small typing fix * fixed eslint errors except 'any' type * install vitest * removes whitespace in eslintrc * replace watchall flag fragment in ci * replace jest with vitest * edit vitest config, add globals * remove all eslint issues (mostly any) * rename lighthouserc * config for lighthouse with esm support * remove lighthouse tmp files * ignore lighthouse tmp files * live attempt for build folder * change standard build dir for vite * change nodejs version * changed upload target * symlink only * update comment on symlinks * Update Dockerfile * Add basic vite pwa plugin setup * Update workbox-core * Remove unused workbox packages * Remove web-vitals * Remove old service worker code * Use the default build folder * Remove unused favicon * Update robots.txt * Fully configure vite-plugin-pwa * Remove unused dependencies * Use @babel/eslint-parser instead of babel-eslint * Update some eslint plugins * Fix eslint warnings * Remove overrides * Fix TS errors * Use better types for handleError * Add a 'typecheck' script * Use better typing for QR code data validation * Use better types for camelizeKeys * Use better types for deepEqual * Remove unused test dependencies * Update @testing-library/jest-dom * Remove prop-types * rename service-worker file * move order of service-worker.js * build base path update vite * change prop order viteconf * workbox config vite * add manual skipwaiting msg * Remove immediate registerSW * set injectregister to null * Added missing pwa module * additional sw worker fns for testing * rollback to old serviceworker * remove unused packages * add issue comment for SW transition * change envdir * remove public flag completely * serviceworker log for build * old service-worker implement * use self instead of window in sw * remove publicurl snippet * remove documentation comments * remove unnecessary vitepwa config * get rid of unnecessary build files * Change config comment vite * remove now redundant png caching line * Use absolute path for sw * extend lint command and fix issues * rm redundant typing and public path * fix invalid dummy data * Remove redundant vite conf * cache manifest.json * modify access to manifestjson code * additional cache check and renamed cachename * separate cache for manifest * add json to globpatterns * remove manual manifest caching * fix lint issue * alternative manifest caching * remove manifest caching (not building) * Change comment for manifest * mv comment --------- Co-authored-by: Tomas Roun <[email protected]>
- Loading branch information
Showing
51 changed files
with
12,880 additions
and
26,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# TODO: remove this when we have a better way to handle source maps | ||
GENERATE_SOURCEMAP=false | ||
|
||
PORT=3000 # Specify the port to run on | ||
|
||
# Custom Variables | ||
REACT_APP_CLIENT_URL=https://localhost:3000 | ||
ESLINT_NO_DEV_ERRORS=true | ||
TSC_COMPILE_ON_ERROR=true | ||
|
||
REACT_APP_VERSION=${npm_package_version}-dev-${COMMIT_SHA} | ||
VITE_PORT=3000 | ||
VITE_VITE_APP_VERSION=${npm_package_version}-dev-${COMMIT_SHA} | ||
VITE_VITE_CLIENT_URL=https://localhost:${VITE_PORT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
REACT_APP_VERSION=${npm_package_version}-${COMMIT_SHA} | ||
VITE_APP_VERSION=${npm_package_version}-${COMMIT_SHA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ jobs: | |
- name: Set up NodeJS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
cache: 'npm' | ||
|
||
- name: Install dependencies | ||
|
@@ -28,22 +28,30 @@ jobs: | |
- name: Run linters | ||
run: npm run lint | ||
|
||
- name: Run type check | ||
run: npm run typecheck | ||
|
||
- name: Run tests | ||
run: npm test -- --watchAll=false | ||
run: npm test -- --run | ||
|
||
- name: Build the app | ||
run: npm run build | ||
|
||
- name: Run Lighthouse CI | ||
id: lhci | ||
# Unfortunately vite requires the index.html to be at the root. | ||
# This means that the public and index.html are separated, which | ||
# affects the building process. Lighthouse also only allows for | ||
# one staticDir. Therefore we need to create a sym link for it. | ||
# https://stackoverflow.com/questions/76590642/how-to-configure-vite-with-index-html-in-public-folder | ||
run: | | ||
npm install -g @lhci/[email protected] | ||
npm install -g @lhci/[email protected] | ||
ln -s $(pwd)/index.html $(pwd)/public/index.html | ||
lhci_output=$(lhci autorun) | ||
echo "$lhci_output" | ||
url=$(echo "$lhci_output" | grep -o "https://.\+") | ||
echo "Found storage url: <$url>" | ||
echo "report_url=$url" >> $GITHUB_OUTPUT | ||
- name: Save data needed by the Lighthouse workflow | ||
if: github.event_name == 'pull_request' | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.