From e30c49994f5d70ee8a91ad0c2777afbe28c5b7f9 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Thu, 22 Sep 2016 07:59:24 +0200 Subject: [PATCH] Use start script for development --- README.md | 2 +- package.json | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cea23f22..9d3e2c82 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ $ brew cask install hyperterm 1. If you are running Linux, install "icnsutils", "graphicsmagick" and "xz-utils" 2. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device 3. Install the dependencies: `npm install` -4. Build the code, watch for changes and run the app: `npm run dev` +4. Build the code, watch for changes and run the app: `npm start` To make sure that your code works in the finished application, you can generate the binaries like that: diff --git a/package.json b/package.json index ab34b864..1ef636d2 100644 --- a/package.json +++ b/package.json @@ -104,11 +104,10 @@ } }, "scripts": { - "dev": "concurrently --kill-others --raw \"npm run dev-build\" \"npm start\"", - "dev-build": "webpack -w", + "start": "concurrently --kill-others --raw \"npm run dev\" \"electron app\"", + "dev": "webpack -w", "build": "NODE_ENV=production webpack", "test": "xo && electron-mocha test/*", - "start": "electron app", "prepublish": "npm test", "prepush": "npm test", "postinstall": "install-app-deps",