Skip to content

Commit

Permalink
using npm to manage dependencies instead of submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjriddle committed Nov 18, 2010
1 parent 99db006 commit c132010
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 21 deletions.
9 changes: 0 additions & 9 deletions .gitmodules
@@ -1,12 +1,3 @@
[submodule "deps/node-mongodb-native"]
path = deps/node-mongodb-native
url = http://github.com/christkv/node-mongodb-native.git
[submodule "deps/node-socket.io"]
path = deps/node-socket.io
url = http://github.com/LearnBoost/Socket.IO-node.git
[submodule "public/socket.io"]
path = public/socket.io
url = http://github.com/LearnBoost/Socket.IO.git
[submodule "deps/node-static"]
path = deps/node-static
url = http://github.com/cloudhead/node-static.git
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -15,6 +15,7 @@ Requirements
-------------------

* node.js v0.1.96
* npm v0.2.4
* mongodb


Expand All @@ -24,11 +25,8 @@ Installation
git clone git://github.com/mnutt/hummingbird.git
cd hummingbird

# Update submodules
git submodule update --init --recursive

# build the native mongo db driver
cd deps/node-mongodb-native; make
# Use npm to install the dependencies
npm link .

# Copy the default configuration file
cp config/app.json.sample config/app.json
Expand Down
1 change: 0 additions & 1 deletion deps/node-mongodb-native
Submodule node-mongodb-native deleted from e271c5
1 change: 0 additions & 1 deletion deps/node-socket.io
Submodule node-socket.io deleted from 054e81
1 change: 0 additions & 1 deletion deps/node-static
Submodule node-static deleted from 8e1577
2 changes: 1 addition & 1 deletion lib/hummingbird.js
Expand Up @@ -4,7 +4,7 @@ var sys = require('sys'),
Metric = require('metric').Metric,
Aggregates = require('aggregates').Aggregates,
Buffer = require('buffer').Buffer,
io = require('deps/node-socket.io'),
io = require('socket.io'),
arrays = require('deps/arrays'),
querystring = require('querystring');

Expand Down
12 changes: 12 additions & 0 deletions package.json
@@ -0,0 +1,12 @@
{ "name" : "hummingbird"
, "description" : "A node.js statistics server"
, "version" : "0.0.1"
, "dependencies": {
"mongodb": "0.7.9"
,"socket.io": "0.6.1"
,"node-static": "0.5.2"
}
, "repository" : { "type" : "git"
, "url" : "http://github.com/mnutt/hummingbird.git" }
, "engines" : { "node" : ">=0.2.4" }
}
6 changes: 3 additions & 3 deletions server.js
Expand Up @@ -4,9 +4,9 @@ require.paths.unshift(__dirname);
var http = require('http'),
weekly = require('weekly'),
fs = require('fs'),
static = require('deps/node-static/lib/node-static'),
io = require('deps/node-socket.io'),
mongo = require('deps/node-mongodb-native/lib/mongodb'),
static = require('node-static'),
io = require('socket.io'),
mongo = require('mongodb'),
Hummingbird = require('hummingbird').Hummingbird;

try {
Expand Down

0 comments on commit c132010

Please sign in to comment.