-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): Replace Create React App with Vite (#506)
* chore(deps): [wip] use vite for dev server chore(config): treat .js files as .jsx chore(project): rename .jsx files to .js * fix(ui): eliminate some visual regressions * fix(project): eliminate Sass warnings * chore(project): [wip] switch from jest to vitest * chore(project): [wip] fix some tests chore(project): [wip] await importActual * chore(project): [wip] remove top-level importActual * chore(project): [wip] fix some broken tests chore(project): [wip] fix broken test chore(project): [wip] fix broken test chore(project): [wip] fix broken test chore(project): [wip] fix broken test chore(project): [wip] fix broken test chore(project): [wip] fix broken test * chore(project): replace failing Enzyme tests with RTL tests * chore(project): [wip] fix broken utils tests * fix(project): define vitest global * chore(ci): report test coverage * fix(project): load cow template assets as dataUris * fix(vercel): update ignoreCommand * fix(vercel): update framework and outputDirectory * feat(project): use VITE_* environment variables * fix(ui): patch vertical hr style * chore(pwa): use vite-plugin-pwa * fix(ui): remove bad line-height setting * fix(workflows): use dist directory * fix(tsconfig): update exclude list * chore(deps): remove unused jest packages * chore(scripts): update test:debug and pre-commit hook * chore(deps): remove react-scripts * fix(scripts): update build:native configuration * chore(build): generate source maps * fix(scripts): make print:crops work again * fix(config): use --base where PUBLIC_URL was used previously * fix(project): use import.meta.env.MODE instead of import.meta.env.NODE_ENV * chore(package): treat package as a module * refactor: cleanup
- Loading branch information
1 parent
7d1d8e5
commit 4e05344
Showing
117 changed files
with
33,425 additions
and
31,012 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,6 +1,6 @@ | ||
BROWSER=none | ||
REACT_APP_API_ROOT=https://farmhand.vercel.app/ | ||
REACT_APP_NAME=$npm_package_name | ||
REACT_APP_VERSION=$npm_package_version | ||
REACT_APP_TURN_USERNAME= | ||
REACT_APP_TURN_CREDENTIAL= | ||
VITE_API_ROOT=https://farmhand.vercel.app/ | ||
VITE_NAME=$npm_package_name | ||
VITE_FARMHAND_PACKAGE_VERSION=$npm_package_version | ||
VITE_TURN_USERNAME= | ||
VITE_TURN_CREDENTIAL= |
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,4 +1,7 @@ | ||
{ | ||
"globals": { | ||
"vitest": true | ||
}, | ||
"extends": ["react-app"], | ||
"rules": { | ||
"import/order": [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ build | |
Session.vim | ||
.DS_Store | ||
.idea | ||
coverage | ||
|
||
.vercel |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* @type {Partial<import('vite-plugin-pwa').ManifestOptions>} | ||
*/ | ||
export const manifest = { | ||
short_name: 'Farmhand', | ||
name: 'Farmhand', | ||
icons: [ | ||
{ | ||
src: 'favicon.ico', | ||
sizes: '64x64 32x32 24x24 16x16', | ||
type: 'image/x-icon', | ||
}, | ||
{ | ||
src: 'logo192.png', | ||
type: 'image/png', | ||
sizes: '192x192', | ||
}, | ||
{ | ||
src: 'logo512.png', | ||
type: 'image/png', | ||
sizes: '512x512', | ||
}, | ||
{ | ||
src: 'logoMaskable.png', | ||
type: 'image/png', | ||
purpose: 'maskable', | ||
sizes: '731x731', | ||
}, | ||
], | ||
start_url: './index.html', | ||
display: 'standalone', | ||
theme_color: '#ffe3a1', | ||
background_color: '#ffffff', | ||
} |
Oops, something went wrong.