control-freak-ide/server/nodejs/nxappmain/server_debug_min.js
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

81 lines
1.7 KiB
JavaScript

var commander = require('commander');
/*
var dlc = require("dcl");
var DriverBase = require("xcf/driver/DriverBase");
var util = require('util');*/
//debugger;
//var a = new DriverBase();
//console.error(util.inspect(a,true,4));
//a.test();
//var b = new driverBase();
commander
.version('0.0.1')
.option('-d, --driver <driver>','path to the driver')
.parse(process.argv);
/*
var watchr = require('watchr');
// Watch a directory or file
//console.log('Watch our paths');
var exec = require('child_process').exec;
exec('ps -aux | grep node', function(err, stdout, stderr) {
// stdout is a string containing the output of the command.
// parse it and look for the apache and mysql processes.
//console.log(util.inspect(JSON.stringify(stdout)));
});
if (commander.driver) {
//console.error('debug driver : ' +commander.driver);
var driver = require(commander.driver);
var dinstance = new driver;
console.error(util.inspect(dinstance,true,4));
console.log(dinstance.myProp);
dinstance.start();
}
*/
console.error('hello');
var initModule = "nxappmain/main_debug_min";
dojoConfig = {
hasCache: {
"host-node": 1,
"host-browser":0,
"dojo-sync-loader":1
},
trace: 1,
async: 0,
baseUrl: ".",
packages: [
{
name: "dojo",
location: "dojo"
},
{
name: "nxappmain",
location: "nxappmain"
},
{
name: "nxapp",
location: "nxapp"
},
{
name: "xapp",
location: "xapp"
},
{
name: "xcf",
location: "xcf"
}
],
deps: [initModule]
};
// Load dojo/dojo
require("../dojo/dojo.js");