|
|
|
|
@ -8,16 +8,15 @@
|
|
|
|
|
"homepage": "./",
|
|
|
|
|
"scripts": {
|
|
|
|
|
"start": "concurrently -k \"npm run start:frontend\" \"npm run start:electron\"",
|
|
|
|
|
"start:frontend": "cross-env BROWSER=none PORT=3001 DISABLE_ESLINT_PLUGIN=true react-scripts start",
|
|
|
|
|
"start:electron": "wait-on http://localhost:3001 && electron .",
|
|
|
|
|
"start:frontend": "cross-env vite --port 3001",
|
|
|
|
|
"start:electron": "wait-on tcp:3001 && electron .",
|
|
|
|
|
"icon-gen": "mkdirp icon-build build-resources/appx && node script/icon-gen.mjs",
|
|
|
|
|
"download-ffmpeg-darwin-x64": "mkdirp ffmpeg/darwin-x64 && cd ffmpeg/darwin-x64 && wget https://github.com/mifi/ffmpeg-build-script/releases/download/5.1.2/ffmpeg -O ffmpeg && wget https://github.com/mifi/ffmpeg-build-script/releases/download/5.1.2/ffprobe -O ffprobe && chmod +x ffmpeg && chmod +x ffprobe",
|
|
|
|
|
"download-ffmpeg-darwin-arm64": "mkdirp ffmpeg/darwin-arm64 && cd ffmpeg/darwin-arm64 && wget https://github.com/mifi/ffmpeg-builds/releases/download/5.1.2/ffmpeg-darwin-arm64-v5.1.2 -O ffmpeg && wget https://github.com/mifi/ffmpeg-builds/releases/download/5.1.2/ffprobe-darwin-arm64-v5.1.2 -O ffprobe && chmod +x ffmpeg && chmod +x ffprobe",
|
|
|
|
|
"download-ffmpeg-linux-x64": "mkdirp ffmpeg/linux-x64 && cd ffmpeg/linux-x64 && wget https://github.com/mifi/ffmpeg-builds/releases/download/5.1.2/linux-x64-v5.1.1.tar.xz -O ffmpeg-ffprobe.xz && tar -xv --strip-components=1 -f ffmpeg-ffprobe.xz ffmpeg-5.1.1-amd64-static/ffmpeg ffmpeg-5.1.1-amd64-static/ffprobe",
|
|
|
|
|
"download-ffmpeg-win32-x64": "mkdirp ffmpeg/win32-x64 && cd ffmpeg/win32-x64 && npx download-cli https://github.com/mifi/ffmpeg-builds/releases/download/5.1.2/win32-x64-v5.1.2.7z --out . --filename ffmpeg-ffprobe.7z && 7z x ffmpeg-ffprobe.7z && npx shx mv ffmpeg-5.1.2-essentials_build/bin/ffmpeg.exe ./ && npx shx mv ffmpeg-5.1.2-essentials_build/bin/ffprobe.exe ./",
|
|
|
|
|
"build": "yarn icon-gen && react-scripts build",
|
|
|
|
|
"test": "react-scripts test",
|
|
|
|
|
"eject": "react-scripts eject",
|
|
|
|
|
"build": "yarn icon-gen && vite build --outDir vite-dist",
|
|
|
|
|
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
|
|
|
"lint": "eslint --ext .jsx --ext .js . --ext .mjs",
|
|
|
|
|
"pack-mac": "electron-builder --mac -m dmg",
|
|
|
|
|
"prepack-mac": "yarn build",
|
|
|
|
|
@ -45,6 +44,7 @@
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@types/jest": "^26.0.20",
|
|
|
|
|
"@types/sortablejs": "^1.15.0",
|
|
|
|
|
"@vitejs/plugin-react": "^3.1.0",
|
|
|
|
|
"color": "^3.1.0",
|
|
|
|
|
"concurrently": "^6.0.0",
|
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
|
@ -65,11 +65,12 @@
|
|
|
|
|
"framer-motion": "^9.0.3",
|
|
|
|
|
"i18next-scanner": "^4.1.0",
|
|
|
|
|
"icon-gen": "^3.0.0",
|
|
|
|
|
"jest": "^29.4.3",
|
|
|
|
|
"ky": "^0.33.1",
|
|
|
|
|
"mkdirp": "^1.0.3",
|
|
|
|
|
"moment": "^2.29.4",
|
|
|
|
|
"mousetrap": "^1.6.5",
|
|
|
|
|
"p-map": "^4.0.0",
|
|
|
|
|
"p-map": "^5.5.0",
|
|
|
|
|
"patch-package": "^6.2.1",
|
|
|
|
|
"pify": "^5.0.0",
|
|
|
|
|
"pretty-bytes": "^6.0.0",
|
|
|
|
|
@ -78,7 +79,6 @@
|
|
|
|
|
"react-i18next": "^11.3.3",
|
|
|
|
|
"react-icons": "^4.1.0",
|
|
|
|
|
"react-lottie-player": "^1.5.0",
|
|
|
|
|
"react-scripts": "^5.0.1",
|
|
|
|
|
"react-sortablejs": "^6.1.4",
|
|
|
|
|
"react-syntax-highlighter": "^15.4.3",
|
|
|
|
|
"react-use": "^17.4.0",
|
|
|
|
|
@ -91,7 +91,8 @@
|
|
|
|
|
"use-debounce": "^5.1.0",
|
|
|
|
|
"use-trace-update": "^1.3.0",
|
|
|
|
|
"uuid": "^8.3.2",
|
|
|
|
|
"wait-on": "^5.3.0"
|
|
|
|
|
"vite": "^4.1.1",
|
|
|
|
|
"wait-on": "^7.0.1"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@electron/remote": "^2.0.9",
|
|
|
|
|
@ -119,20 +120,26 @@
|
|
|
|
|
"eslintConfig": {
|
|
|
|
|
"extends": "react-app"
|
|
|
|
|
},
|
|
|
|
|
"browserslist": {
|
|
|
|
|
"production": [
|
|
|
|
|
"electron 17.0"
|
|
|
|
|
"jest": {
|
|
|
|
|
"extensionsToTreatAsEsm": [
|
|
|
|
|
".js",
|
|
|
|
|
".mjs"
|
|
|
|
|
],
|
|
|
|
|
"development": [
|
|
|
|
|
"electron 17.0"
|
|
|
|
|
"testEnvironment": "node",
|
|
|
|
|
"testMatch": [
|
|
|
|
|
"**/__tests__/**/*.?([mc])[jt]s?(x)",
|
|
|
|
|
"**/?(*.)+(spec|test).?([mc])[jt]s?(x)"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"build": {
|
|
|
|
|
"directories": {
|
|
|
|
|
"buildResources": "build-resources"
|
|
|
|
|
},
|
|
|
|
|
"extraMetadata": {
|
|
|
|
|
"main": "vite-dist/electron.js"
|
|
|
|
|
},
|
|
|
|
|
"files": [
|
|
|
|
|
"build/**/*"
|
|
|
|
|
"vite-dist/**/*"
|
|
|
|
|
],
|
|
|
|
|
"asar": {
|
|
|
|
|
"smartUnpack": false
|
|
|
|
|
|