yoichiro / chrome_mysql_admin

ChromeMyAdmin provides you the administration GUI of MySQL server. It is like phpMyAdmin, Sequel Pro.
https://www.eisbahn.jp/chrome_mysql_admin
Apache License 2.0
140 stars 33 forks source link

(WIP) enable auto reload without livereload #30

Closed igrep closed 9 years ago

igrep commented 9 years ago

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 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!

yoichiro commented 9 years ago

test this please

igrep commented 9 years ago

Sorry, I found the added tasks doesn't work well, and I'm actually satisfied without the tasks. So I'll close. Thanks for reviewing.