Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove require extensions

  • Loading branch information...
commit 555deec6fff74361fb994cb6eb2bdf56cd9f4357 1 parent c94267f
@quarterto authored
View
2  lib/main.js
@@ -83,7 +83,7 @@
error: __bind(Logger(3, 'ERROR', process.stderr), 'print')
};
Logger.setLevel(exports.Config.logLevel);
- Server = require("./server/server.co").Server;
+ Server = require("./server/server").Server;
return exports.Server = new Server(exports.Config.port, exports.Config.host);
};
}
View
2  lib/mvc/controller.js
@@ -2,7 +2,7 @@
var util, pathutil, Loader, Q, Controller, __split = ''.split, __slice = [].slice;
util = require('util');
pathutil = require('path');
- Loader = require("./loader.co").Loader;
+ Loader = require("./loader").Loader;
Q = require('q');
exports.Controller = Controller = (function(){
Controller.displayName = 'Controller';
View
2  lib/mvc/loader.js
@@ -3,7 +3,7 @@
fs = require('fs');
path = require('path');
Q = require('q');
- signal = require("./signal.co").signal;
+ signal = require("./signal").signal;
Log = require.main.exports.Log;
Reloader = (function(){
Reloader.displayName = 'Reloader';
View
4 lib/server/router.js
@@ -1,8 +1,8 @@
(function(){
var Config, Controller, Loader, url, vm, methods, Script, InvalidMethod, NoAction, Generic, Router, __slice = [].slice;
Config = require.main.exports.Config;
- Controller = require("../mvc/controller.co").Controller;
- Loader = require("../mvc/loader.co").Loader;
+ Controller = require("../mvc/controller").Controller;
+ Loader = require("../mvc/loader").Loader;
url = require('url');
vm = require('vm');
exports.Loaders = {
View
2  lib/server/server.js
@@ -8,7 +8,7 @@
vm = require('vm');
fs = require('fs');
util = require('util');
- _ref = require("./router.co"), Router = _ref.Router, Errors = _ref.Errors, Loaders = _ref.Loaders;
+ _ref = require("./router"), Router = _ref.Router, Errors = _ref.Errors, Loaders = _ref.Loaders;
Timer = (function(){
Timer.displayName = 'Timer';
var prototype = Timer.prototype, constructor = Timer;
View
2  src/main.co
@@ -53,6 +53,6 @@ else
Logger.setLevel exports.Config.logLevel
- {Server} = require "./server/server.co"
+ {Server} = require "./server/server"
exports.Server = new Server exports.Config.port,exports.Config.host
View
2  src/mvc/controller.co
@@ -1,6 +1,6 @@
util = require \util
pathutil = require \path
-{Loader} = require "./loader.co"
+{Loader} = require "./loader"
Q = require \q
class exports.Controller
->
View
2  src/mvc/loader.co
@@ -1,7 +1,7 @@
fs = require \fs
path = require \path
Q = require \q
-{signal} = require "./signal.co"
+{signal} = require "./signal"
{Log} = require.main.exports
class Reloader
View
4 src/server/router.co
@@ -1,7 +1,7 @@
# router.co
{Config} = require.main.exports
-{Controller} = require "../mvc/controller.co"
-{Loader} = require "../mvc/loader.co"
+{Controller} = require "../mvc/controller"
+{Loader} = require "../mvc/loader"
url = require \url
vm = require \vm
View
2  src/server/server.co
@@ -10,7 +10,7 @@ vm = require \vm
fs = require \fs
util = require \util
-{Router,Errors,Loaders} = require "./router.co"
+{Router,Errors,Loaders} = require "./router"
class Timer
Please sign in to comment.
Something went wrong with that request. Please try again.