ea34058fa7
* 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: https://github.com/vitejs/vite/issues/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: https://github.com/react-syntax-highlighter/react-syntax-highlighter/issues/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
143 lines
4.3 KiB
JSON
143 lines
4.3 KiB
JSON
{
|
|
"name": "chitchatter",
|
|
"version": "0.0.0",
|
|
"homepage": "https://chitchatter.im/",
|
|
"author": "Jeremy Kahn <jeremyckahn@gmail.com>",
|
|
"license": "GPL-2.0-or-later",
|
|
"type": "module",
|
|
"dependencies": {
|
|
"@emotion/react": "^11.10.0",
|
|
"@emotion/styled": "^11.10.0",
|
|
"@mui/icons-material": "^5.15.6",
|
|
"@mui/material": "^5.15.6",
|
|
"@react-hook/debounce": "^4.0.0",
|
|
"@react-hook/window-size": "^3.1.1",
|
|
"@testing-library/jest-dom": "^6.4.2",
|
|
"@testing-library/react": "^14.2.1",
|
|
"@testing-library/user-event": "^14.5.2",
|
|
"@types/node": "^18.18.4",
|
|
"@types/react": "^18.2.25",
|
|
"@types/react-dom": "^18.0.6",
|
|
"buffer": "^6.0.3",
|
|
"classnames": "^2.3.1",
|
|
"detectincognitojs": "^1.1.2",
|
|
"fast-memoize": "^2.5.2",
|
|
"file-saver": "^2.0.5",
|
|
"fun-animal-names": "^0.1.1",
|
|
"idb-chunk-store": "^1.0.1",
|
|
"localforage": "^1.10.0",
|
|
"mui-markdown": "^0.5.5",
|
|
"querystring": "^0.2.1",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"react-file-reader-input": "^2.0.0",
|
|
"react-git-info": "^2.0.1",
|
|
"react-markdown": "^8.0.3",
|
|
"react-qrcode-logo": "^2.8.0",
|
|
"react-router-dom": "^6.16.0",
|
|
"react-syntax-highlighter": "^15.5.0",
|
|
"react-youtube": "^10.1.0",
|
|
"readable-web-to-node-stream": "^3.0.2",
|
|
"remark-gfm": "^3.0.1",
|
|
"sdp": "^3.2.0",
|
|
"secure-file-transfer": "^0.0.7",
|
|
"streamsaver": "^2.0.6",
|
|
"trystero": "^0.15.0",
|
|
"typeface-public-sans": "^1.1.13",
|
|
"typeface-roboto": "^1.1.13",
|
|
"typescript": "^5.4.2",
|
|
"uuid": "^8.3.2",
|
|
"vite-plugin-babel-macros": "^1.0.6",
|
|
"web-vitals": "^2.1.4",
|
|
"webrtc-adapter": "^8.2.2"
|
|
},
|
|
"scripts": {
|
|
"start": "cross-env VITE_HOMEPAGE=$(npm pkg get homepage) vite --port 3000",
|
|
"start:tracker": "bittorrent-tracker",
|
|
"start:streamsaver": "serve -p 3015 node_modules/streamsaver",
|
|
"dev": "mprocs \"npx cross-env VITE_TRACKER_URL=\"ws://localhost:8000\" VITE_STREAMSAVER_URL=\"http://localhost:3015/mitm.html\" npm run start\" \"npm run start:tracker\" \"npm run start:streamsaver\"",
|
|
"build": "npm run build:app && npm run build:sdk",
|
|
"build:app": "cross-env VITE_HOMEPAGE=$(npm pkg get homepage) vite build",
|
|
"build:sdk": "parcel build sdk/sdk.ts --no-content-hash",
|
|
"build:sdk:watch": "nodemon --exec \"npm run build:sdk\"",
|
|
"test": "vitest",
|
|
"prepare": "husky install",
|
|
"prettier": "prettier 'src/**/*.js' --write",
|
|
"lint": "eslint src --max-warnings=0"
|
|
},
|
|
"eslintConfig": {
|
|
"extends": [
|
|
"react-app"
|
|
]
|
|
},
|
|
"engines": {
|
|
"node": "18.12.1",
|
|
"npm": "8.19.2"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
"@types/file-saver": "^2.0.7",
|
|
"@types/react-file-reader-input": "^2.0.4",
|
|
"@types/react-syntax-highlighter": "^15.5.5",
|
|
"@types/streamsaver": "^2.0.1",
|
|
"@types/uuid": "^8.3.4",
|
|
"@types/webtorrent": "^0.109.3",
|
|
"@typescript-eslint/eslint-plugin": "^5.33.0",
|
|
"@typescript-eslint/parser": "^5.33.0",
|
|
"@vitejs/plugin-react": "^4.2.1",
|
|
"autoprefixer": "^10.4.8",
|
|
"bittorrent-tracker": "^9.19.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.21.0",
|
|
"eslint-config-react-app": "^7.0.1",
|
|
"eslint-plugin-import": "^2.26.0",
|
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
"eslint-plugin-react": "^7.30.1",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"husky": "^8.0.1",
|
|
"jsdom": "^24.0.0",
|
|
"mprocs": "^0.6.4",
|
|
"nodemon": "^3.0.1",
|
|
"parcel": "^2.10.0",
|
|
"postcss": "^8.4.31",
|
|
"prettier": "^2.7.1",
|
|
"pretty-quick": "^3.1.3",
|
|
"process": "^0.11.10",
|
|
"sass": "^1.69.5",
|
|
"serve": "^14.1.2",
|
|
"tailwindcss": "^3.1.8",
|
|
"url": "^0.11.0",
|
|
"util": "^0.12.5",
|
|
"vite": "^5.0.12",
|
|
"vite-plugin-node-polyfills": "^0.19.0",
|
|
"vite-plugin-pwa": "^0.19.2",
|
|
"vite-plugin-svgr": "^4.2.0",
|
|
"vitest": "^1.3.1"
|
|
},
|
|
"overrides": {
|
|
"ipfs-core": "npm:dry-uninstall",
|
|
"@svgr/plugin-svgo": {
|
|
"nth-check": "2.0.1"
|
|
},
|
|
"react-file-reader-input": {
|
|
"react": "$react",
|
|
"react-dom": "$react-dom"
|
|
},
|
|
"resolve-url-loader": {
|
|
"postcss": "8.4.31"
|
|
}
|
|
}
|
|
}
|