-
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Migrate from Create React App to Vite (#231)
* chore(vite): use vite * fix(vite): alias lib directory * chore(vite): set type: module * chore: update vite and MUI * fix(vite): make MUI components load * fix: use node path resolution * chore(vite): add svg support * fix(vite): polyfill global * fix(vite): use import.meta * fix(vite): use correct svg module resolution * chore(vite): migrate to vitest * fix(vite): remove PUBLIC_URL * fix(tests): mock audio service * chore(deps): upgrade to react test library 14 * refactor(tests): simplify room test setup * refactor(tests): make Date.now() mockable * refactor(vite): remove bootstrap shim * chore(deps): drop react-scripts * chore(deps): remove source-map-explorer Source maps do not currently work with MUI and Vite: vitejs/vite#15012 Because of this, source map utilities are currently removed. * refactor(vite): use TypeScript for Vite config * chore(actions): update actions config for new paths * fix(service-worker): use VITE_HOMEPAGE for service worker resolution * fix(vercel): use quotes for build command * fix(vite): use import.meta.env.MODE * fix(service-worker): use correct definition for publicUrl * feat(vite): use vite-plugin-pwa * fix(pwa): make update prompt work * fix(types): use vite/client types * docs(readme): update building instructions * refactor(vite): simplify theme loading workaround * refactor(vite): use manifest object * docs(readme): update tool references * chore(deps): run `npm audit fix` * fix(vite): make syntax highlighter work consistently See: react-syntax-highlighter/react-syntax-highlighter#513 * fix(pwa): remove manifest.json references * refactor(deps): remove jest references * refactor(types): remove react-scripts reference * chore(deps): use TypeScript 5 * refactor(tests): improve persisted storage mocking
- Loading branch information
1 parent
72bc66a
commit ea34058
Showing
40 changed files
with
24,830 additions
and
16,866 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,2 +1 @@ | ||
REACT_APP_NAME=$npm_package_name | ||
REACT_APP_GITHUB_REPO="https://github.com/jeremyckahn/chitchatter" | ||
VITE_GITHUB_REPO="https://github.com/jeremyckahn/chitchatter" |
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 |
---|---|---|
|
@@ -9,7 +9,8 @@ | |
/coverage | ||
|
||
# production | ||
/build | ||
/dist | ||
/dev-dist | ||
|
||
# misc | ||
.DS_Store | ||
|
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
File renamed without changes.
File renamed without changes.
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,91 @@ | ||
import { ManifestOptions } from 'vite-plugin-pwa' | ||
|
||
export const manifest: Partial<ManifestOptions> = { | ||
short_name: 'Chitchatter', | ||
name: 'Chitchatter', | ||
description: | ||
'This is a communication tool that is free, open source, and designed for simplicity and security. All communication between you and your online peers is encrypted. There is no trace of your conversation once you leave.', | ||
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', | ||
}, | ||
], | ||
start_url: './', | ||
display: 'fullscreen', | ||
theme_color: '#000000', | ||
background_color: '#222222', | ||
screenshots: [ | ||
{ | ||
src: 'screenshots/home-desktop.png', | ||
sizes: '2160x1620', | ||
type: 'image/png', | ||
}, | ||
{ | ||
src: 'screenshots/public-room-desktop.png', | ||
sizes: '2160x1620', | ||
type: 'image/png', | ||
}, | ||
{ | ||
src: 'screenshots/public-room-desktop-with-video.png', | ||
sizes: '2160x1620', | ||
type: 'image/png', | ||
}, | ||
{ | ||
src: 'screenshots/home-mobile-dark.png', | ||
sizes: '750x1334', | ||
type: 'image/png', | ||
form_factor: 'narrow', | ||
}, | ||
{ | ||
src: 'screenshots/home-mobile-light.png', | ||
sizes: '750x1334', | ||
type: 'image/png', | ||
form_factor: 'narrow', | ||
}, | ||
{ | ||
src: 'screenshots/public-room-mobile.png', | ||
sizes: '750x1334', | ||
type: 'image/png', | ||
form_factor: 'narrow', | ||
}, | ||
], | ||
|
||
shortcuts: [ | ||
{ | ||
name: 'About', | ||
url: './about', | ||
icons: [ | ||
{ | ||
src: 'logo512.png', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
purpose: 'any', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Disclaimer', | ||
url: './disclaimer', | ||
icons: [ | ||
{ | ||
src: 'logo512.png', | ||
sizes: '512x512', | ||
type: 'image/png', | ||
purpose: 'any', | ||
}, | ||
], | ||
}, | ||
], | ||
} |
Oops, something went wrong.