Skip to content

Commit

Permalink
feat: upgrade to vite 5 and electron 28
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Jan 2, 2024
1 parent b6c5a87 commit 08e0d56
Show file tree
Hide file tree
Showing 4 changed files with 1,206 additions and 1,161 deletions.
6 changes: 5 additions & 1 deletion electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { app, BrowserWindow, ipcMain } from 'electron'
import { join } from 'node:path'
import { join, dirname } from 'node:path'
import { fileURLToPath } from 'node:url'

const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'

Expand Down
64 changes: 33 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "🖖 Vite + Vuetify + Electron, Opinionated Starter Template",
"author": "Yue JIN <yuejin13@fudan.edu.cn>",
"private": true,
"packageManager": "pnpm@8.10.0",
"main": "dist-electron/main.js",
"type": "module",
"packageManager": "pnpm@8.13.1",
"main": "dist-electron/main.mjs",
"scripts": {
"dev": "vite",
"build": "vite build && electron-builder",
Expand All @@ -16,43 +17,44 @@
"format": "prettier --write src/"
},
"dependencies": {
"@mdi/js": "^7.3.67",
"@vueuse/core": "^10.6.0",
"@mdi/js": "^7.4.47",
"@vueuse/core": "^10.7.1",
"echarts": "^5.4.3",
"pinia": "^2.1.7",
"vue": "^3.3.8",
"vue-echarts": "^6.6.1",
"vue": "^3.4.3",
"vue-echarts": "^6.6.8",
"vue-router": "^4.2.5",
"vuetify": "^3.4.0"
"vuetify": "^3.4.9"
},
"devDependencies": {
"@kingyue/rollup-plugin-modify": "^4.1.0",
"@pinia/testing": "^0.1.3",
"@rushstack/eslint-patch": "^1.5.1",
"@testing-library/vue": "^8.0.0",
"@types/jsdom": "^21.1.5",
"@types/node": "^20.9.0",
"@vitejs/plugin-vue": "^4.4.1",
"@vue/eslint-config-prettier": "^8.0.0",
"@rushstack/eslint-patch": "^1.6.1",
"@testing-library/vue": "^8.0.1",
"@types/jsdom": "^21.1.6",
"@types/node": "^20.10.6",
"@vitejs/plugin-vue": "^5.0.2",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^12.0.0",
"@vue/test-utils": "^2.4.1",
"@vue/tsconfig": "^0.4.0",
"electron": "^27.0.4",
"electron-builder": "^24.6.4",
"eslint": "^8.53.0",
"eslint-plugin-vue": "^9.18.1",
"jsdom": "^22.1.0",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"@vue/test-utils": "^2.4.3",
"@vue/tsconfig": "^0.5.1",
"electron": "^28.1.0",
"electron-builder": "^24.9.1",
"eslint": "^8.56.0",
"eslint-plugin-vue": "^9.19.2",
"jsdom": "^23.0.1",
"prettier": "^3.1.1",
"tree-kill": "^1.2.2",
"typescript": "^5.3.3",
"unplugin-auto-import": "^0.17.3",
"unplugin-vue-components": "^0.26.0",
"unplugin-vue-router": "^0.7.0",
"vite": "^4.5.0",
"vite-plugin-electron": "^0.15.4",
"vite-plugin-vue-devtools": "1.0.0-rc.5",
"vite-plugin-vue-meta-layouts": "^0.3.1",
"vite-plugin-vuetify": "^1.0.2",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.22"
"vite": "^5.0.10",
"vite-plugin-electron": "0.28.0-beta.1",
"vite-plugin-vue-devtools": "7.0.2",
"vite-plugin-vue-meta-layouts": "^0.4.1",
"vite-plugin-vuetify": "^2.0.1",
"vitest": "^1.1.1",
"vue-tsc": "^1.8.27"
}
}
Loading

0 comments on commit 08e0d56

Please sign in to comment.