Permalink
Browse files

FIXED - directory loading order on linux

  • Loading branch information...
1 parent 87c22ef commit e38d2b729ea97f09e90e5b41f505c1fabd0917f4 @glesperance committed Apr 3, 2012
Showing with 13 additions and 13 deletions.
  1. +11 −11 lib/loader.js
  2. +2 −2 package.json
View
@@ -72,24 +72,24 @@ exports.createServer = function createServer_rocket() {
}
- asyncFs.mapDir(
-
- app_dir
-
- , [ [ CLIENT_DIR_NAME , async.apply(client.setup, app, middlewares) ]
-
+ async.forEachSeries(
+ [ [ CLIENT_DIR_NAME , async.apply(client.setup, app, middlewares) ]
+
, [ CONTROLLERS_DIR_NAME , async.apply(controller.setup, app, routes) ]
-
+
, [ EXPORTS_DIR_NAME , async.apply(xport.setup, app, options.nowjs) ]
-
+
, [ VIEWS_DIR_NAME , async.apply(view.setup, app, routes) ]
-
- , [ LOCALES_DIR_NAME , async.apply(locale.setup) ]
+ , [ LOCALES_DIR_NAME , async.apply(locale.setup) ]
+
]
+ , function(filter, callback) {
+ asyncFs.mapDir(app_dir, filter, callback);
+ }
+
, function(err) { callback(err, app); }
-
);
}
View
@@ -2,7 +2,7 @@
"name": "rocket"
, "description": "The rapid development framework for node.js"
, "keywords": ["mvc", "model view controller", "comet","rapid development", "Rocket", "framework"]
-, "version": "0.2.2"
+, "version": "0.2.3"
, "homepage": "http://wavo.me"
, "repository":
{ "type" : "git"
@@ -21,7 +21,7 @@
, "jade" : ">= 0.12.4"
, "lingo" : ">= 0.0.4"
, "async" : ">= 0.1.9"
- , "async-fs" : ">= 0.0.3"
+ , "async-fs" : ">= 0.0.2"
, "underscore" : ">= 1.1.6"
, "rimraf" : ">= 1.0.4"
, "oo" : ">= 0.0.3"

0 comments on commit e38d2b7

Please sign in to comment.