We have constructed our app to consist of three repositories:
- Frontend (this one is deployed)
- Shared
- Core
These are all private Git repositories on GitHub.
The relevant part of my package.json file looks like this:
"dependencies": {
"express": "2.5.x",
"coffeecup": "0.3.x",
"socket.io": "0.8.x",
"connect-mongodb": "1.x",
"app-core": "git+ssh://git@github.com:...git",
"app-shared": "git+ssh://git@github.com:...git"
},
"devDependencies": {
"mongoskin": "*",
"bcrypt": "*",
"libxml-to-js": "0.3.x"
},
"bundleDependencies": [
"app-core",
"app-shared"
],
"analyze": true
When I deploy to Nodejitsu the only way to make it work is to have Shared and Core's dependencies in devDependencies of the repository I deploy, but that seems to be the wrong solution as devDependencies is meant for development and not production.
I have also tried Shrinkwrapping but with no avail.
Does anyone know of a better solution?