From e5c81f0ea85401690f757c378ec0d300b980fd28 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Mon, 31 Oct 2016 22:12:35 +0100 Subject: [PATCH] Add alternative method for developing using watch and start-dist Because of this issue https://github.com/electron/electron-compile/issues/146 --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index b897a4cd..84c837ec 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,8 @@ "scripts": { "start": "electron src", "build": "rm -rf dist && babel src -d dist --copy-files && ln -s ../node_modules dist/ && ln -s ../package.json ./dist/", + "watch": "npm run build && babel src -d dist --copy-files -w", + "start-dist": "./node_modules/electron-prebuilt-compile/node_modules/electron/cli.js dist", "package": "electron-packager dist LosslessCut --out=package --asar --overwrite --all --version 1.3.8", "lint": "eslint ." },