cloudfoundry/heroku-buildpack-nodejs — pull request #1 by shawn-nielsen (2013-08-22 22:00:07+00:00)
Title: Add support for npm install flag

Adds support to disable npm install by using a 'cfNpmInstall':false flag in the engine section of the application's package.json file. Default is to use 'npm install'.

This will allow nodejs builds to be executed prior to running on cloudfoundry and can prevent external npm registry requirements essentially allowing the build to happen prior to pushing the application up.

The flag is turned off by default, leaving the default 'npm install' behavior the same as is it today. It simply extends the option. This is an example of the engines section of the package.json file:

"engines": {
"cfNpmInstall":false,
"node": "0.8.x",
"npm": "= 1.2.12"
}