mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-11-27 18:11:20 +00:00
Moved RecordFirstDeployTime from MainForm to Program for better separation of concerns. Updated instance directory creation and asset copying logic in Program.cs to support JS entrypoints, including library copying and first deploy time recording. Added a sleep call to helloworld.js for demonstration purposes.
24 lines
503 B
JavaScript
24 lines
503 B
JavaScript
var SYS = require("lib/system");
|
|
var HTTP = require("lib/http");
|
|
//var Toolkit = require("lib/toolkit");
|
|
|
|
function main(args) {
|
|
console.log("Hello world");
|
|
if (typeof WScript !== "undefined") {
|
|
console.log("Process version:", SYS.getProcessVersion());
|
|
}
|
|
|
|
try {
|
|
var web = HTTP.create();
|
|
console.log(web.userAgent);
|
|
} catch (e) {
|
|
console.error("lib/http: Something wrong");
|
|
}
|
|
|
|
sleep(100000);
|
|
|
|
//Toolkit.create();
|
|
}
|
|
|
|
exports.main = main;
|