This file contains 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
var http = require('http'); | |
var qs = require('querystring'); | |
var events = require('events'); | |
var util = require('util'); | |
/*** | |
* uuid | |
*/ | |
var S4 = function() { | |
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); | |
}; |
This file contains 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
var App = require('./app'); | |
var app = new App({ | |
__dirname : __dirname, | |
"author" : "Tim <price.timmy@gmail.com>", | |
"name" : "test-site-1", | |
"description" : "this is just a test site call one.", | |
"version" : "0.0.1", | |
"main" : "web.js", |
This file contains 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
/*** | |
* | |
* | |
* | |
*/ | |
var events = require('events'); | |
var util = require('util'); | |
var fs = require('fs'); | |
This file contains 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
/*** | |
* | |
* | |
* | |
*/ | |
var events = require('events'); | |
var util = require('util'); | |
var fs = require('fs'); | |
var modulesObj = require('./modules'); |
This file contains 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
/*** | |
* | |
* | |
* | |
*/ | |
var vm = require('vm'); | |
var events = require('events'); | |
var util = require('util'); | |
var fs = require('fs'); | |
var npm = require('npm'); |
This file contains 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
var fs = require('fs') | |
var events = require('events') | |
var util = require('util') | |
var path = require('path') | |
var FsPool = module.exports = function(dir) { | |
events.EventEmitter.call(this) | |
this.dir = dir; | |
this.files = []; | |
this.active = []; |
This file contains 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
var argsKeys = []; | |
var argsObjs = []; | |
for(var i = 0; i < locals.length; i++) { | |
argsKeys.push(locals[i].key); | |
argsObjs.push(locals[i].object); | |
}; | |
argsKeys.push('return (' + block + ')(' + argsKeys.join(',') + ');'); |
This file contains 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
/*** | |
* Node modules | |
*/ | |
var events = require('events'); | |
var util = require('util'); | |
var fs = require('fs'); | |
/*** | |
* Local modules | |
*/ |
This file contains 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
var utils = require('./util') | |
var RpcModule = require('./rpc').RpcModule | |
var events = require('events'); | |
var util = require('util'); | |
var net = require('net'); | |
var crypto = require('crypto'); | |
/*** |
This file contains 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
var utils = require('../lib/util') | |
var RpcModule = require('../lib/rpc').RpcModule | |
var events = require('events'); | |
var util = require('util'); | |
var net = require('net'); | |
/*** | |
* | |
* |