Use start script for development

This commit is contained in:
Leo Lamprecht 2016-09-22 07:59:24 +02:00
parent 29908dacd1
commit e30c49994f
No known key found for this signature in database
GPG key ID: C251EE4DA454117B
2 changed files with 3 additions and 4 deletions

View file

@ -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:

View file

@ -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",