- Extract desktop-specific logic into src/services/desktop.ts - Add runtime detection for Electron vs Tauri environments - Simplify NoteEditor by delegating PDF export to desktop service - Update printExport.ts to remove unused storage helpers - Add Electron main process files in electron/ directory - Update vite config and types for Electron integration - Update .gitignore and package.json for Electron workflow
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"name": "nextcloud-notes-tauri",
|
|
"private": true,
|
|
"version": "0.2.2",
|
|
"type": "module",
|
|
"main": "electron/main.cjs",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"dev:renderer": "vite",
|
|
"dev:electron": "wait-on tcp:1420 && cross-env ELECTRON_RENDERER_URL=http://localhost:1420 electron .",
|
|
"dev:desktop": "concurrently -k \"npm:dev:renderer\" \"npm:dev:electron\"",
|
|
"build": "tsc && vite build",
|
|
"desktop": "electron .",
|
|
"preview": "vite preview",
|
|
"tauri": "tauri"
|
|
},
|
|
"dependencies": {
|
|
"@tauri-apps/api": "^2",
|
|
"@tauri-apps/plugin-dialog": "^2.6.0",
|
|
"@tauri-apps/plugin-http": "^2.5.7",
|
|
"@tauri-apps/plugin-opener": "^2",
|
|
"@tiptap/extension-strike": "^2.27.2",
|
|
"@tiptap/extension-underline": "^2.27.2",
|
|
"@tiptap/pm": "^2.27.2",
|
|
"@tiptap/react": "^2.27.2",
|
|
"@tiptap/starter-kit": "^2.27.2",
|
|
"html2canvas": "^1.4.1",
|
|
"jspdf": "^4.2.0",
|
|
"marked": "^17.0.4",
|
|
"react": "^19.1.0",
|
|
"react-dom": "^19.1.0",
|
|
"turndown": "^7.2.2"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/typography": "^0.5.19",
|
|
"@tauri-apps/cli": "^2",
|
|
"@types/react": "^19.1.8",
|
|
"@types/react-dom": "^19.1.6",
|
|
"@types/turndown": "^5.0.6",
|
|
"@vitejs/plugin-react": "^4.6.0",
|
|
"autoprefixer": "^10.4.27",
|
|
"concurrently": "^9.2.1",
|
|
"cross-env": "^10.1.0",
|
|
"electron": "^37.3.1",
|
|
"postcss": "^8.5.8",
|
|
"tailwindcss": "^3.4.19",
|
|
"typescript": "~5.8.3",
|
|
"vite": "^7.0.4",
|
|
"wait-on": "^8.0.5"
|
|
}
|
|
}
|