Permalink
Browse files

Update for new compound and co-socket

  • Loading branch information...
1 parent d62949f commit 33072998570dad20b6cb3b737acc7c73b6dc071c @1602 1602 committed Mar 11, 2013
Showing with 38 additions and 25 deletions.
  1. +13 −0 config/autoload.js
  2. +0 −1 config/environment.js
  3. +0 −4 npmfile.js
  4. +25 −20 package.json
View
@@ -0,0 +1,13 @@
+module.exports = function (compound) {
+ return typeof window === 'undefined' ? [
+ 'jugglingdb',
+ 'co-assets-compiler',
+ 'co-socket'
+ ].concat('development' == compound.app.get('env') ? [
+ 'ejs-ext',
+ 'seedjs',
+ 'co-generators',
+ ] : []).map(require) : [
+ ];
+};
+
View
@@ -4,7 +4,6 @@ module.exports = function (compound) {
var app = compound.app;
app.configure(function(){
- app.use(compound.assetsCompiler.init());
app.use(express.static(app.root + '/public', {maxAge: 86400000}));
app.set('view engine', 'ejs');
app.set('view options', {complexNames: true});
View
@@ -1,4 +0,0 @@
-require('rw.io');
-require('ejs-ext');
-require('jugglingdb');
-require('seedjs');
View
@@ -1,23 +1,28 @@
-{ "name": "reversi-game"
-, "version": "0.0.1"
-, "engines": ["node >= 0.4.0"]
-, "main": "server.js"
-, "dependencies":
- { "ejs": "*"
- , "ejs-ext": "*"
- , "express": "~2.x"
- , "compound": ">= 0.2.6"
- , "jugglingdb": ">= 0.1.0"
- , "coffee-script": ">= 1.1.1"
- , "socket.io": "latest"
- , "rw.io": "latest"
+{
+ "name": "reversi-game",
+ "version": "0.0.1",
+ "engines": [
+ "node >= 0.4.0"
+ ],
+ "main": "server.js",
+ "dependencies": {
+ "ejs": "*",
+ "ejs-ext": "*",
+ "express": "3.x",
+ "compound": ">= 0.2.6",
+ "jugglingdb": ">= 0.1.0",
+ "coffee-script": ">= 1.1.1",
+ "socket.io": "latest",
+ "co-socket": "latest",
+ "co-assets-compiler": "0.0.1",
+ "co-generators": "0.0.1-3"
},
- "devDependencies":
- { "nodeunit": "*"
- , "sinon": "*"
- , "semicov": "*"
- }
-, "scripts":
- { "test": "nodeunit test/*/*"
+ "devDependencies": {
+ "nodeunit": "*",
+ "sinon": "*",
+ "semicov": "*"
+ },
+ "scripts": {
+ "test": "nodeunit test/*/*"
}
}

0 comments on commit 3307299

Please sign in to comment.