Permalink
Browse files

client & testPage moved from tools to root level

  • Loading branch information...
1 parent 3d3fd8e commit 1cccc6c493d3f21ddd84769608d56da7f6efa66a @dimsmol committed Feb 17, 2013
Showing with 19 additions and 19 deletions.
  1. +10 −0 lib/client.js
  2. +4 −0 lib/index.js
  3. +4 −4 lib/{tools → }/test_page.js
  4. +0 −10 lib/tools/client.js
  5. +1 −5 lib/tools/index.js
View
@@ -0,0 +1,10 @@
+"use strict";
+var path = require('path');
+
+
+module.exports = {
+ paths: {
+ src: path.join(__dirname, '../client/src/apis'),
+ min: path.join(__dirname, '../client/min')
+ }
+};
View
@@ -1,4 +1,6 @@
"use strict";
+var client = require('./client');
+var testPage = require('./test_page');
var Loader = require('./loader');
var AppBase = require('./app_base');
var App = require('./app');
@@ -16,6 +18,8 @@ var tools = require('./tools');
module.exports = {
+ client: client,
+ testPage: testPage,
Loader: Loader,
AppBase: AppBase,
App: App,
@@ -1,13 +1,13 @@
"use strict";
var path = require('path');
-var cont = require('../handlers/contract').cont;
-var st = require('../handlers/static').st;
-var res = require('../resources').res;
+var cont = require('./handlers/contract').cont;
+var st = require('./handlers/static').st;
+var res = require('./resources').res;
var clientPaths = require('./client').paths;
var result = {
- staticPath: path.join(__dirname, '../../public/static/test_page')
+ staticPath: path.join(__dirname, '../public/static/test_page')
};
Object.defineProperties(result, {
contract: {
View
@@ -1,10 +0,0 @@
-"use strict";
-var path = require('path');
-
-
-module.exports = {
- paths: {
- src: path.join(__dirname, '../../client/src/apis'),
- min: path.join(__dirname, '../../client/min')
- }
-};
View
@@ -2,14 +2,10 @@
var DoubleDict = require('./double_dict');
var http = require('./http');
var path = require('./path');
-var client = require('./client');
-var testPage = require('./test_page');
module.exports = {
DoubleDict: DoubleDict,
http: http,
- path: path,
- client: client,
- testPage: testPage
+ path: path
};

0 comments on commit 1cccc6c

Please sign in to comment.