mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
33 lines
802 B
JavaScript
33 lines
802 B
JavaScript
(function() {
|
|
'use strict';
|
|
|
|
var DIR = __dirname + '/',
|
|
DIR_LIB = DIR + 'lib/',
|
|
DIR_SERVER = DIR + 'lib/server/',
|
|
|
|
win = require(DIR_SERVER + 'win'),
|
|
update = require(DIR_SERVER + 'update'),
|
|
|
|
server = require(DIR_LIB + 'server'),
|
|
|
|
config = require(DIR_SERVER + 'config');
|
|
|
|
module.exports = function(params) {
|
|
var keys;
|
|
|
|
if (params) {
|
|
keys = Object.keys(params);
|
|
|
|
keys.forEach(function(name) {
|
|
config(name, params[name]);
|
|
});
|
|
}
|
|
|
|
win.prepareCodePage();
|
|
|
|
if (update)
|
|
update.get();
|
|
|
|
server();
|
|
};
|
|
})();
|