Created
December 13, 2013 00:32
-
-
Save brianleroux/7938149 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this thing | |
connect( | |
connect.static(_path.join(__dirname, '..', 'thirdparty')), | |
connect.static(__dirname), | |
connect.router(function (app) { | |
app.get('/cordova.test.js', function (req, res) { | |
/* impl */ | |
}), | |
app.get('/', function (req, res) { | |
/* impl */ | |
}); | |
}) | |
); | |
// becomes easier to read/reason about: | |
connect(vendor, tests, router).listen(3000); | |
// …vendor, tests, and router could be seperately tested modules | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment