From 4a78a212845691ec67193ddbd24fdb544f721ca5 Mon Sep 17 00:00:00 2001 From: jens Date: Thu, 1 Mar 2018 22:47:25 +0100 Subject: [PATCH] init/add devtron/electron-react-devtools --- app.js | 2 ++ package.json | 1 + yarn.lock | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/app.js b/app.js index 3a374b74..cbcaa695 100644 --- a/app.js +++ b/app.js @@ -150,6 +150,8 @@ function createPreviewWindow() { } function addDevToolsExtension() { + BrowserWindow.addDevToolsExtension(require('devtron').path); + BrowserWindow.addDevToolsExtension(require('electron-react-devtools').path); if (process.env.REACT_DEV_TOOLS_PATH) BrowserWindow.addDevToolsExtension(process.env.REACT_DEV_TOOLS_PATH); if (process.env.REDUX_DEV_TOOLS_PATH) diff --git a/package.json b/package.json index 544eb3a8..3e89557e 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,7 @@ "duplicate-package-checker-webpack-plugin": "^1.2.6", "electron": "^1.7.10", "electron-builder": "^19.52.1", + "electron-react-devtools": "^0.5.3", "enzyme": "^3.3.0", "enzyme-adapter-react-16": "^1.1.1", "eslint": "^4.15.0", diff --git a/yarn.lock b/yarn.lock index fef27498..00632d45 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2674,6 +2674,10 @@ electron-publish@19.52.0: fs-extra-p "^4.5.0" mime "^2.1.0" +electron-react-devtools@^0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/electron-react-devtools/-/electron-react-devtools-0.5.3.tgz#c74edb1245dc1cfe1380b93016cd4eb588ed00b7" + electron-settings@^3.1.2: version "3.1.4" resolved "https://registry.yarnpkg.com/electron-settings/-/electron-settings-3.1.4.tgz#1b670837fd00626395714210291fb4af8ff52880"