From a524b800362ab38ea3fb9b4e1c02c6147679e764 Mon Sep 17 00:00:00 2001 From: mojit0 Date: Wed, 17 Oct 2012 12:51:15 -0600 Subject: [PATCH] Remove obsolete index.js files. --- lib/app/archetypes/app/default/index.js | 17 ----------------- lib/app/archetypes/app/default/server.js | 12 ------------ lib/app/archetypes/app/full/index.js | 17 ----------------- lib/app/archetypes/app/full/server.js | 12 ------------ lib/app/archetypes/app/simple/server.js | 12 ------------ 5 files changed, 70 deletions(-) delete mode 100644 lib/app/archetypes/app/default/index.js delete mode 100644 lib/app/archetypes/app/full/index.js diff --git a/lib/app/archetypes/app/default/index.js b/lib/app/archetypes/app/default/index.js deleted file mode 100644 index 4818a1ca2..000000000 --- a/lib/app/archetypes/app/default/index.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved. - * Copyrights licensed under the New BSD License. - * See the accompanying LICENSE file for terms. - */ - -/*jslint nomen:true*/ - -/* - * By convention many node.js applications use an index.js file so we support - * that convention. Our goal is to redirect the require() to the proper location - * of the Mojito app/server baseline and to ensure whatever they export is - * exported to our callers. - */ -process.chdir(__dirname); - -module.exports = require('./server.js'); diff --git a/lib/app/archetypes/app/default/server.js b/lib/app/archetypes/app/default/server.js index 849e5806d..967cdae14 100644 --- a/lib/app/archetypes/app/default/server.js +++ b/lib/app/archetypes/app/default/server.js @@ -21,16 +21,4 @@ var app = Mojito.createServer(); // server. Adjust below to match the requirements of your hosting environment. // --------------------------------------------------------------------------- -/* - * Manhattan - * -module.exports = function(config, token) { - process.emit('application-ready', token, app.getHttpServer()); -}; -*/ - -/* - * Localhost and others where the default port/host combinations work. - * You can provide port, host, callback parameters as needed. - */ module.exports = app.listen(); diff --git a/lib/app/archetypes/app/full/index.js b/lib/app/archetypes/app/full/index.js deleted file mode 100644 index 4818a1ca2..000000000 --- a/lib/app/archetypes/app/full/index.js +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2011-2012, Yahoo! Inc. All rights reserved. - * Copyrights licensed under the New BSD License. - * See the accompanying LICENSE file for terms. - */ - -/*jslint nomen:true*/ - -/* - * By convention many node.js applications use an index.js file so we support - * that convention. Our goal is to redirect the require() to the proper location - * of the Mojito app/server baseline and to ensure whatever they export is - * exported to our callers. - */ -process.chdir(__dirname); - -module.exports = require('./server.js'); diff --git a/lib/app/archetypes/app/full/server.js b/lib/app/archetypes/app/full/server.js index 849e5806d..967cdae14 100644 --- a/lib/app/archetypes/app/full/server.js +++ b/lib/app/archetypes/app/full/server.js @@ -21,16 +21,4 @@ var app = Mojito.createServer(); // server. Adjust below to match the requirements of your hosting environment. // --------------------------------------------------------------------------- -/* - * Manhattan - * -module.exports = function(config, token) { - process.emit('application-ready', token, app.getHttpServer()); -}; -*/ - -/* - * Localhost and others where the default port/host combinations work. - * You can provide port, host, callback parameters as needed. - */ module.exports = app.listen(); diff --git a/lib/app/archetypes/app/simple/server.js b/lib/app/archetypes/app/simple/server.js index 849e5806d..967cdae14 100644 --- a/lib/app/archetypes/app/simple/server.js +++ b/lib/app/archetypes/app/simple/server.js @@ -21,16 +21,4 @@ var app = Mojito.createServer(); // server. Adjust below to match the requirements of your hosting environment. // --------------------------------------------------------------------------- -/* - * Manhattan - * -module.exports = function(config, token) { - process.emit('application-ready', token, app.getHttpServer()); -}; -*/ - -/* - * Localhost and others where the default port/host combinations work. - * You can provide port, host, callback parameters as needed. - */ module.exports = app.listen();