PEM-- / meteor-helper

Meteor.js under Atom.io
http://pem-musing.blogspot.fr/2014/07/meteorjs-from-within-atomio-full-stack.html
MIT License
50 stars 9 forks source link

Feature request: launch Meteor URL in browser automatically #19

Closed ghost closed 8 years ago

ghost commented 9 years ago

It would be really cool if, after the meteor server is running (in my case, localhost port 3000), the Meteor Helper launched that in the browser automatically.

PEM-- commented 9 years ago

Not sure about this one. It is easily doable but... I already think it through without stating on it :no_mouth:.

Actually, I could do it at the Atom level through a pane but this will import the logs into Atom's dev console which is less powerful than my custom Chrome dev tools. It also could be done via an equivalent of gulp-open / grunt-open though it doesn't allow selection of your browser.

Personally, I sometime end up firing up to 5 browsers (my iPad, my HTC, Chrome, Safari and Firefox). Thus I didn't find any good pattern.

Note that this could also be done in Meteor. Since 0.9.4, you can add package that modify Meteor's command line.

I will leave this issue open in case multiple users are requesting the same enhancement and a pattern of usage arise from their description.

Note that for the debug feature that could also be great depending on your debugging strategies.

ghost commented 9 years ago

I definitely wouldn't want it as a pane in the Atom window (too small). I imagine it would work just like grunt, where you run grunt serve and it builds everything then automatically launches the URL in your default browser.

PEM-- commented 9 years ago

That is exactly my way of thinking. This should work like grunt or gulp.

Meteor watches files, builds them, serves them, acts as an enhanced livereload, launches the tests when Velocity is included as a package, imports bower packages or git archives when Famono is included as a package... From a high level point of view, it is like a grunt or gulp on steroids except for few stuff like the grunt-open package. Creating a Meteor-Open package would be far more beneficial to Meteor's community than integrating open in Atom. With the fresh and stabilized API provided by Meteor-1.0.0 that has just landed, this should be a nice build package to add to Atmosphere.

I've just checked if somebody has started something on it. But nothing has been done for the moment.

There are other packages that are also currently missing in my workflow like svgo, imagemagick, and imageoptim. I'm not already a Meteor package expert. Just published 3 basic ones. But I'm thinking of filling this gap.