Add an npm script to run the Electron app for debugging

This allows for developers to attach Dev Tools, e.g. the Chrome
"dedicated DevTools for node", to the main Electron process
for debugging operations that occur on the main process.
This commit is contained in:
Jarod Gowgiel 2024-12-01 17:55:59 -07:00
parent eb6944a1c9
commit 6896160c38
2 changed files with 6 additions and 2 deletions

View File

@ -35,6 +35,7 @@
"build:web": "npm run build --workspace=packages/bruno-app", "build:web": "npm run build --workspace=packages/bruno-app",
"prettier:web": "npm run prettier --workspace=packages/bruno-app", "prettier:web": "npm run prettier --workspace=packages/bruno-app",
"dev:electron": "npm run dev --workspace=packages/bruno-electron", "dev:electron": "npm run dev --workspace=packages/bruno-electron",
"dev:electron:debug": "npm run debug --workspace=packages/bruno-electron",
"build:bruno-common": "npm run build --workspace=packages/bruno-common", "build:bruno-common": "npm run build --workspace=packages/bruno-common",
"build:bruno-query": "npm run build --workspace=packages/bruno-query", "build:bruno-query": "npm run build --workspace=packages/bruno-query",
"build:graphql-docs": "npm run build --workspace=packages/bruno-graphql-docs", "build:graphql-docs": "npm run build --workspace=packages/bruno-graphql-docs",
@ -51,6 +52,6 @@
"prepare": "husky install" "prepare": "husky install"
}, },
"overrides": { "overrides": {
"rollup":"3.29.5" "rollup": "3.29.5"
} }
} }

View File

@ -9,6 +9,7 @@
"scripts": { "scripts": {
"clean": "rimraf dist", "clean": "rimraf dist",
"dev": "electron .", "dev": "electron .",
"debug": "electron . --inspect=9229",
"dist:mac": "electron-builder --mac --config electron-builder-config.js", "dist:mac": "electron-builder --mac --config electron-builder-config.js",
"dist:win": "electron-builder --win --config electron-builder-config.js", "dist:win": "electron-builder --win --config electron-builder-config.js",
"dist:linux": "electron-builder --linux AppImage --config electron-builder-config.js", "dist:linux": "electron-builder --linux AppImage --config electron-builder-config.js",
@ -19,7 +20,9 @@
"test": "node --experimental-vm-modules $(npx which jest)" "test": "node --experimental-vm-modules $(npx which jest)"
}, },
"jest": { "jest": {
"modulePaths": ["node_modules"] "modulePaths": [
"node_modules"
]
}, },
"dependencies": { "dependencies": {
"@aws-sdk/credential-providers": "3.658.1", "@aws-sdk/credential-providers": "3.658.1",