Homebrew/homebrew — pull request #31656 by wilmoore (2014-08-17 06:41:44+00:00)
Title: add jasmine-node command-line program (fixes #31461)

As noted in #31461, this formula does the following in order to get a working node CLI program bootstrapped:

- Vendor production dependencies (`npm install --production)
- Depends on `brew` provided `node` and `npm`

I thought about vendoring `node` itself; however, downloading the binary `node` just seemed wrong.

One caveat is that if you've also installed node via `nvm` (like I have), then this installed program will use whatever version of node it has active. I feel like this is a fair trade-off for keeping the formula simple. We could do a replace on the shebang and pin `node` to the one in the Cellar; however, this seems like overkill.