Question to all concerned who are creating these tools that bundle:

How do you handle dependencies in purely client-side code?  I built a 
little library that uses transitive reduction along with a manifest file 
that lists all known dependencies for each of the browser-side scripts, so 
for example jQuery gets loaded before jQueryUI.  My library also makes sure 
that no file is referenced twice, but that all dependencies are fulfilled 
before compressing the result and sending it to the browser.
I'd like to just switch over to using Browserify, but so far it doesn't 
seem like I can use libraries for GUI development easily with this library 
without a bunch of (!isServer) checks.

On Friday, February 22, 2013 7:43:34 PM UTC-5, substack wrote:
>
> browserify v2 was just released! browserify lets you write node-style 
> require() calls for browser code so that you can package up your scripts 
> and npm modules into a single bundle to serve to browsers. browserify 
> implements exactly the node_modules lookup algorithm so you can use many 
> libraries written for node and published to npm in the browser without any 
> modifications.
>
> Here's the full writeup of the new changes: 
> http://browserify.org/announcing_browserify_v2
> * static module resolution for tinier bundles. Just ~250 bytes of prelude 
> now.
> * support for multi-file bundles for multi-page apps and better caching of 
> infrequently-updating assets
> * streaming bundle pipeline
> * new "browsers" field support by https://github.com/shtylman
> * less features
>
> The core library itself is just 180 sloc now with the bulk of the 
> functionality now handled by completely separate, reusable libraries that 
> you can use to build your own browserify if you want. Most of what 
> browserify provides can now be provided by this shell pipeline:
>
> $ module-deps main.js | insert-module-globals main.js | browser-pack > 
> bundle.js
>
> Just `npm install -g module-deps insert-module-globals browser-pack` to 
> play around with those streaming components.
>
> tldr; less features, more unix!
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to