Skip to content

Commit

Permalink
clean: remove electron
Browse files Browse the repository at this point in the history
  • Loading branch information
letwebdev committed Jun 18, 2024
1 parent f2eca99 commit 94fc718
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 99 deletions.
46 changes: 0 additions & 46 deletions electron-builder.json5

This file was deleted.

16 changes: 0 additions & 16 deletions electron/main.ts

This file was deleted.

15 changes: 0 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
"version": "0.0.7",
"type": "module",
"private": true,
"main": "dist-electron/main.js",
"scripts": {
"dev": "vite",
"dev:electron": "VITE_LAUNCHING_ELECTRON='true' vite",
"build": "run-p type-check build-only",
"preview": "vite preview",
"test:unit": "vitest",
Expand All @@ -23,15 +21,6 @@
"sync": "npm run build && npm run sync-only",
"build:apk-only": "bash -c 'source './.env' && cd ${CAPACITOR_ANDROID_PATH} && chmod +x ./gradlew && ./gradlew assembleDebug'",
"sync-only": "cap sync",
"setUp:electron": "npm install --save-dev electron electron-builder",
"setUp:electron-noSave": "npm install --no-save electron electron-builder",
"pack:electron": "electron-builder --dir",
"build:electron": "npm run build && npm run build:electron-only",
"build:electron:linux": "npm run build && npm run build:electron:linux-only",
"build:electron:windows": "npm run build && npm run build:electron:windows-only",
"build:electron-only": "electron-builder --publish never",
"build:electron:linux-only": "electron-builder --linux --publish never",
"build:electron:windows-only": "electron-builder --windows --publish never",
"prepare": "husky",
"lint:staged": "npx lint-staged"
},
Expand Down Expand Up @@ -83,7 +72,6 @@
"unocss": "^0.61.0",
"unplugin-auto-import": "^0.17.6",
"vite": "^5.3.1",
"vite-plugin-electron": "^0.28.7",
"vite-plugin-vuetify": "^2.0.3",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.21"
Expand Down
10 changes: 0 additions & 10 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import AutoImport from "unplugin-auto-import/vite"
import UnoCSS from "unocss/vite"
import vuetify from "vite-plugin-vuetify"

import electron from "vite-plugin-electron"

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
Expand Down Expand Up @@ -58,14 +56,6 @@ export default defineConfig({

UnoCSS(),
vuetify(),
electron({
onstart(args) {
if (process.env.VITE_LAUNCHING_ELECTRON) {
args.startup([".", "--no-sandbox"])
}
},
entry: "electron/main.ts",
}),
],
resolve: {
alias: {
Expand Down

0 comments on commit 94fc718

Please sign in to comment.