Live data from Hacker News

An Attempt To Use Browserify

wiredcraft.com

1–10 of 15 posts

Re: An Attempt To Use Browserify

#2
The title is a bit misleading. Only a small part of the article mentions Browserify. I was hoping for the authors take on the struggles and efficiencies, as I'm at the point where I need to make the decision to use Browserify for my companies client heavy apps.

Re: An Attempt To Use Browserify

#3
post #2

The title is a bit misleading. Only a small part of the article mentions Browserify. I was hoping for the authors take on the struggles and efficiencies, as I'm at the point where I need to make the decision to use Browserify for my companies client heavy apps.

I'd be happy to answer any questions concerns you may have, I've had some decent experience with Browserify and I've loved it.

Re: An Attempt To Use Browserify

#4
post #2

The title is a bit misleading. Only a small part of the article mentions Browserify. I was hoping for the authors take on the struggles and efficiencies, as I'm at the point where I need to make the decision to use Browserify for my companies client heavy apps.

I'd be happy to answer any questions concerns you may have, I've had some decent experience with Browserify and I've loved it.

Thanks for the offer!

My main concern is non-CommonJS libraries. I haven't really had any luck with any of the Browserify shim modules out there. Any jQuery plugin that I've used with Browserify I ended up modifying myself to support CommonJS. Even then, I'm not sure I was doing it right.

Any insight?

Re: An Attempt To Use Browserify

#5
Er ... "I can now grab the user's webcam stream, generate a GIF, and let the user download or share it on an image hosting platform. And all of this is done in the front-end using a lightweight interface!" ... that's 3 lines (sorry: 4) of native JS, we need node-modules for this?

Re: An Attempt To Use Browserify

#6
post #5

Er ... "I can now grab the user's webcam stream, generate a GIF, and let the user download or share it on an image hosting platform. And all of this is done in the front-end using a lightweight interface!" ... that's 3 lines (sorry: 4) of native JS, we need node-modules for this?

you can generate a gif with native js?

Re: An Attempt To Use Browserify

#7
post #4

Earlier quoted context omitted.

I'd be happy to answer any questions concerns you may have, I've had some decent experience with Browserify and I've loved it.

Thanks for the offer! My main concern is non-CommonJS libraries. I haven't really had any luck with any of the Browserify shim modules out there. Any jQuery plugin that I've used with Browserify I ended up modifying myself to support CommonJS. Even then, I'm not sure I was doing it right. Any insight?

We were just sharing an attempt to use it and explaining why we considered using Browserify. If you want more insight on it we will follow through with a more technical approach to it.

Re: An Attempt To Use Browserify

#8
post #6
post #5

Er ... "I can now grab the user's webcam stream, generate a GIF, and let the user download or share it on an image hosting platform. And all of this is done in the front-end using a lightweight interface!" ... that's 3 lines (sorry: 4) of native JS, we need node-modules for this?

you can generate a gif with native js?

Yeap. Check out the code here. https://github.com/fraserxu/gifme There's an awesome library to do this. It's basically capture serval frames and use a algorithem to generate it.

Re: An Attempt To Use Browserify

#9
post #4

Earlier quoted context omitted.

I'd be happy to answer any questions concerns you may have, I've had some decent experience with Browserify and I've loved it.

Thanks for the offer! My main concern is non-CommonJS libraries. I haven't really had any luck with any of the Browserify shim modules out there. Any jQuery plugin that I've used with Browserify I ended up modifying myself to support CommonJS. Even then, I'm not sure I was doing it right. Any insight?

Hmm. I got the same issue while trying to use certain libraries. Not all of them is suitable for using in the client side. I changed some of the code and using the `module.exports` method to export it for browserify to use. Luckily most of the code is exposing an object already, so may not that hard to change it. The best approach may wrapper it and send the author of the lib a pull request. You may also check the video here. http://www.youtube.com/watch?v=YabwsSq6ASQ

Re: An Attempt To Use Browserify

#10
post #2

The title is a bit misleading. Only a small part of the article mentions Browserify. I was hoping for the authors take on the struggles and efficiencies, as I'm at the point where I need to make the decision to use Browserify for my companies client heavy apps.

@hellopat In case you want know more about using browerify for client side development, do check this: http://dontkry.com/posts/code/using-npm-on-the-client-side.h... http://dontkry.com/posts/code/browserify-and-the-universal-m...
Post reply on HN