improved dev-server

This commit is contained in:
antelle 2016-09-18 13:30:09 +03:00
parent 4c254a67ed
commit 13ae47dd8c
2 changed files with 9 additions and 5 deletions

View File

@ -680,7 +680,12 @@ module.exports = function(grunt) {
'build-web-app'
]);
grunt.registerTask('dev', 'Start web server and watcher', [
grunt.registerTask('dev', 'Build project and start web server and watcher', [
'build-web-app',
'devsrv'
]);
grunt.registerTask('devsrv', 'Start web server and watcher', [
'concurrent:dev-server'
]);

View File

@ -44,15 +44,14 @@ The app can be built with grunt: `grunt` (html file will be in `dist/`).
Desktop apps are built with `grunt desktop`. This works only in mac osx as it builds dmg; requires wine.
To run Electron app without building installer, install electron package (`npm install electron-prebuilt -g`), build the app with `grunt` and start in this way:
```bash
$ grunt && grunt dev
$ grunt dev
$ npm run-script electron
```
For debug build:
1. run `grunt`
2. run `grunt dev`
3. open `tmp/index.html`
1. run `grunt dev`
2. open `http://localhost:8085/tmp`
# Contributing