Added a grunt task to (re)load the app automatically.
Unfortunately, livereload is not well-supported on platforms other than Mac:
Windows version is still alpha (and I don't want to develop on it).
For Linux, only guard-livereload is available, which is no more maintained.
So I looked for a way to make grunt automatically reload the app without livereload,
then found one to use Chrome's --load-and-launch-app= option.
According to the doc, Chrome just reloads the app when already launched.
That is, it is possible to reload automatically by executing google-chrome --load-and-launch-app=app/ continuously by grunt watch.
That's why I sent this pull request.
But there's a problem I have to discuss with you:
I should extract some variables to be more flexible or DRY (as written as TODOs).
But where should I put the variable? The top level of Gruntfile or other?
I'm sorry but I'm new to grunt.
I'm glad if you give me some advice!
Thanks!
Added a grunt task to (re)load the app automatically.
Unfortunately, livereload is not well-supported on platforms other than Mac:
So I looked for a way to make grunt automatically reload the app without livereload, then found one to use Chrome's
--load-and-launch-app=
option. According to the doc, Chrome just reloads the app when already launched. That is, it is possible to reload automatically by executinggoogle-chrome --load-and-launch-app=app/
continuously bygrunt watch
. That's why I sent this pull request.But there's a problem I have to discuss with you: I should extract some variables to be more flexible or DRY (as written as TODOs). But where should I put the variable? The top level of Gruntfile or other?
I'm sorry but I'm new to grunt. I'm glad if you give me some advice! Thanks!