mirror of https://github.com/keeweb/keeweb.git
improved dev-server
This commit is contained in:
parent
4c254a67ed
commit
13ae47dd8c
|
@ -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'
|
||||
]);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue