Commit Graph

17 Commits

Author SHA1 Message Date
isaacs
70464378e9 Fix #401 Segregate versioned dependency bins
This makes it so that if you depend on a specific version of spark, then
your start script can be "spark app.js", and you'll definitely get the
version that you installed.

Also works for bundled dependencies.
2010-12-02 17:56:42 -08:00
isaacs
df152ab031 Add the 'must-install' config, and use it in bundling 2010-11-24 16:52:20 -08:00
isaacs
a802dfa44c Don't allow certain commands in bundle 2010-11-24 12:26:02 -08:00
isaacs
b87d5c4aff Proxy support for all other npm commands to bundle
This lets you run *any* npm command on the bundle, by doing
`npm bundle <cmd>`, so you can use it to list bundled packages, remove
them, put things in the bundle cache, etc.
2010-11-21 18:37:34 -08:00
isaacs
692a511c95 Better bundle command.
To install all deps locally, it's just `npm bundle`
To install a specific package locally, it's `npm bundle <pkg>`

Todo: maybe it'd be better to be more explicit here?

    npm bundle all
    npm bundle add <pkg>
    npm bundle rm <pkg>
2010-11-21 17:39:10 -08:00
isaacs
427af5bf25 List bundle usage better. 2010-11-17 10:06:14 -08:00
isaacs
8330947190 Don't write the bundle shim. Is unnecessary. 2010-11-14 16:33:19 -08:00
isaacs
4f005293db Simplify bundle command 2010-11-14 15:24:23 -08:00
isaacs
38804a6b19 unnecessary double-stat, and default to bundling into node_modules folder 2010-10-23 22:25:24 -07:00
Timo Derstappen
0a96d1f965 replaced cache.add with readJson in bundle module where possible.
bundle now does handle names, urls and tars via cache.add.
if the package is a directory only the package.json is read.
this makes bundling faster and fixes a bug with cache.add where
the bundling cache was added recursively.

 * also fixed a bug with package names eg vows@0.5.1
 * bundle does not support version ranges eg sax@">=0.1.0 <0.2.0"
 * now throws an error if bundling packages without dependencies
2010-10-01 23:51:39 -07:00
isaacs
42c6fd209a Print nice short "usage" lines when doing -h, -?, or --help 2010-09-28 17:02:17 -07:00
isaacs
d4388749d4 unnecessary \n 2010-08-27 12:37:25 -07:00
isaacs
8777cdf71d Stray commas in bundle command 2010-08-27 11:17:25 -07:00
isaacs
1c992a9ab0 do deps in a way that works with no.de setups 2010-08-27 00:55:21 -07:00
isaacs
11d2d35e2c Don't put the bundle path in require.paths over and over again. 2010-08-25 18:01:25 -07:00
isaacs
86bca612e8 A better bundle command. 2010-08-25 18:01:24 -07:00
isaacs
2dbaf0d208 First crack at something resembling a fix for #74 2010-08-25 18:01:24 -07:00