Skip to content

Commit

Permalink
refactor: remove electron-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGuy10 committed May 15, 2024
1 parent 3ec3d24 commit 0dd1995
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 62 deletions.
12 changes: 3 additions & 9 deletions backend/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ class AppUpdater {
}
}

if (electronIsDev) {
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { default: electronDebug } = await import('electron-debug')
electronDebug({
showDevTools: true,
devToolsMode: 'right',
})
}

const installExtensions = async () => {
/**
* NOTE:
Expand Down Expand Up @@ -80,6 +71,9 @@ const spawnAppWindow = async () => {
appWindow.maximize()
appWindow.setMenu(null)
appWindow.show()

if (electronIsDev) appWindow.webContents.openDevTools({ mode: 'right' })

appWindow.on('closed', () => {
appWindow = null
})
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"concurrently": "^8.2.2",
"electron": "^30.0.5",
"electron-builder": "^24.13.3",
"electron-debug": "^3.2.0",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.57.0",
"eslint-config-next": "^14.2.3",
Expand Down
53 changes: 1 addition & 52 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6893,7 +6893,7 @@ __metadata:
languageName: node
linkType: hard

"debug@npm:4, debug@npm:^4.0.0, debug@npm:^4.0.1, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4":
"debug@npm:4, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.3, debug@npm:^4.3.4":
version: 4.3.4
resolution: "debug@npm:4.3.4"
dependencies:
Expand Down Expand Up @@ -7492,16 +7492,6 @@ __metadata:
languageName: node
linkType: hard

"electron-debug@npm:^3.2.0":
version: 3.2.0
resolution: "electron-debug@npm:3.2.0"
dependencies:
electron-is-dev: "npm:^1.1.0"
electron-localshortcut: "npm:^3.1.0"
checksum: 10c0/ee3e19c328f4a569b36c336b56a77833472b2e9942d08b1f2e567c3b81614e51bcdc0cd32ea1bdba0f75d2ee2e85024874a1ec6d3f123a7629de7817f79e8c95
languageName: node
linkType: hard

"electron-devtools-installer@npm:^3.2.0":
version: 3.2.0
resolution: "electron-devtools-installer@npm:3.2.0"
Expand All @@ -7514,39 +7504,13 @@ __metadata:
languageName: node
linkType: hard

"electron-is-accelerator@npm:^0.1.0":
version: 0.1.2
resolution: "electron-is-accelerator@npm:0.1.2"
checksum: 10c0/120da55c3b581cbca5eccdd80c9099574a7aa0a8ea8b9fd4e5dcd906dcf83308c94587ad771b066cdd073e45e68dbe4c06256602998f16ccafbcfe1cab968718
languageName: node
linkType: hard

"electron-is-dev@npm:^1.1.0":
version: 1.2.0
resolution: "electron-is-dev@npm:1.2.0"
checksum: 10c0/56a4c8e9b9eb7d43da86ee63093b80b32e3fb92cc5e4a60a6b7cacafcdf456ec2c6102d90fa5919fb8b03c61848d4bfa2db820349c5abd9f19e73f7afd2dc22d
languageName: node
linkType: hard

"electron-is-dev@npm:^3.0.1":
version: 3.0.1
resolution: "electron-is-dev@npm:3.0.1"
checksum: 10c0/80d37d61d44b8b7af0af90eab622b09e0f165afbc2560297c760356efa93fcb54dbbd13d4d6522da6474e261d630b76b804c86385564a1f3062d28fc59c340bd
languageName: node
linkType: hard

"electron-localshortcut@npm:^3.1.0":
version: 3.2.1
resolution: "electron-localshortcut@npm:3.2.1"
dependencies:
debug: "npm:^4.0.1"
electron-is-accelerator: "npm:^0.1.0"
keyboardevent-from-electron-accelerator: "npm:^2.0.0"
keyboardevents-areequal: "npm:^0.2.1"
checksum: 10c0/6490a1dd0155926d5664500d45a5acb4771ba96e3ad4a878367e24ab96096c8824197cf3e2890a4f51b0307665afe680fe5f22dae2e4ba781cf32ddab9dcc335
languageName: node
linkType: hard

"electron-log@npm:^5.1.4":
version: 5.1.4
resolution: "electron-log@npm:5.1.4"
Expand Down Expand Up @@ -10408,20 +10372,6 @@ __metadata:
languageName: node
linkType: hard

"keyboardevent-from-electron-accelerator@npm:^2.0.0":
version: 2.0.0
resolution: "keyboardevent-from-electron-accelerator@npm:2.0.0"
checksum: 10c0/94bd9da6eb80145b36f336adb3f0a55cc8fdf0138f0df3028feb30d790d0727f8de27f040278805a499cc61dba816c8fab012e7f76c2495033d2fd7c2762f309
languageName: node
linkType: hard

"keyboardevents-areequal@npm:^0.2.1":
version: 0.2.2
resolution: "keyboardevents-areequal@npm:0.2.2"
checksum: 10c0/1612c2aa52001163b2517ef6c0ea9abf20117e206e6796ba15eb99c0ae331a8826ab60a18e7ddb8ed0e15272af64d3b14383d2ae832beaa2f68548c1c53e4fa6
languageName: node
linkType: hard

"keyv@npm:^4.0.0":
version: 4.5.2
resolution: "keyv@npm:4.5.2"
Expand Down Expand Up @@ -11749,7 +11699,6 @@ __metadata:
concurrently: "npm:^8.2.2"
electron: "npm:^30.0.5"
electron-builder: "npm:^24.13.3"
electron-debug: "npm:^3.2.0"
electron-devtools-installer: "npm:^3.2.0"
electron-is-dev: "npm:^3.0.1"
electron-log: "npm:^5.1.4"
Expand Down

0 comments on commit 0dd1995

Please sign in to comment.