ender-js/Ender — pull request #125 by vic (2012-03-08 14:39:29+00:00)
Title: Support for reading packages from files like package.json or npm-shrinkwrap.json.

If you provide a path to a json file, `ender build` expects it to be
either a `package.json` or a `npm-shrinkwrap.json`[1] files.
The filename is not important, but the format is, that is to say, if
you provide a `package.json`-like file it must contain a json object
with a `dependencies` hash.

This feature can be useful when trying to lock down dependency versions
between packages. NPM has created a new `shrinkwrap` command to
produce a json file with a list of exact versions to use. Providing
the generated `npm-shrinkwrap.json` file to `ender build` will create
an ender file with just those packages.

For example if you create a `ender.json` like this:

```javascript
{
dependencies: {
"foo": ">= 2.0.1"
"bar": "1.0.2"
}
}
```

and execute `ender build ender.json` then only the dependencies included in that file will be built by ender.

[1] http://npmjs.org/doc/shrinkwrap.html