Skip to content

Instantly share code, notes, and snippets.

@brianleroux
Created December 13, 2013 00:32
Show Gist options
  • Save brianleroux/7938149 to your computer and use it in GitHub Desktop.
Save brianleroux/7938149 to your computer and use it in GitHub Desktop.
// 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