ender-js/Ender — Issue #113: Can't build (or can't see how to build) from an Ender-enhanced project
Author: jhs
Created: 2011-12-22 03:27:01+00:00
State: open

I made a Javascript library, [Browser Request][req] and want to make it available via Ender. My test procedure builds it into various formats (CommonJS, RequireJS, etc.) and puts it on a web server for me to test.

I need to build an Ender app for testing, right from the project checkout. My package.json has "ender" pointing to the bridge code.

1. Run some command, such as `ender build` or `ender compile`
2. Get some output file, such as `ender.js` with my library bundled up
3. Use that file in my own test suite

Ender should handle steps 1 and 2 but it is failing.

I have tried several ideas. None do what I would expect is the most obvious and most common command of all: bundle this up and let me try it!

* `ender build` - Does not include my code in the final ender.js file
* `ender build .` - Same problem (I think this is the same command as the previous). When I run `ender info` I see `UNMET DEPENDENCY! browser-request - Please install with $ ender add browser-request`
* `ender build && ender compile release/ender/ender.js` - Firstly, this seems wrong and brittle. But at least it runs. The only output is minified of course and not very useful for testing.

I appreciate any help. Either I have seriously failed Ender, or vice versa.

[req]: https://github.com/iriscouch/browser-request