jsoverson / grunt-open

Open urls and files from a grunt task
MIT License
109 stars 19 forks source link

`app` parameter! we can now specify Google Chrome Canary, Firefox and even other apps instead of default #7

Closed GabLeRoux closed 11 years ago

GabLeRoux commented 11 years ago

Added app parameter to resolve #3 and added a basic callback to display an error if something went wrong with open command.

Only tested on a mac, but should work on other os.

dmmalam commented 11 years ago

+1 Please merge, this is a show stopper for me using grunt-open

evgenyneu commented 11 years ago

That will be a very useful feature. My personal workaround is to make Chrome my default browser in Mac OS X, which is not exactly what I need.

vlcinsky commented 11 years ago

+1

jsoverson commented 11 years ago

Thanks for the patience and thanks @GabLeRoux for the PR. Just published 0.2.2

GabLeRoux commented 11 years ago

:+1:

dmmalam commented 11 years ago

:+1::+1:

Kageetai commented 10 years ago

Hey, how exactly I can specifiy to open Chrome Canary? thx

GabLeRoux commented 10 years ago

I think this worked for me on osx

grunt.initConfig({
  open : {
    dev : {
      path: 'http://127.0.0.1:8888/',
      app: 'Google Chrome Canary'
    },
  }
})

grunt.loadNpmTasks('grunt-open');

Not quite sure about windows.

Kageetai commented 10 years ago

Hmm, doesn't work on Windows :-/

jsoverson commented 10 years ago

I would assume you'd have to enter the path to the executable on windows. I don't have a windows machine to test, so feel free to submit a PR clarifying documentation or adding win support.

Kageetai commented 10 years ago

I tried that, but either couldn't get the right path or something else was wrong.

kowsheek commented 9 years ago

In case anyone's looking, you'll need a full path to the exe on Windows C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe.