mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 15:04:58 +00:00
Update app.js, helloworld.js
This commit is contained in:
parent
ecbef69860
commit
c4dfca7c62
2
app.js
2
app.js
|
@ -219,7 +219,7 @@ function require(FN) {
|
||||||
var basepath = getCurrentScriptDirectory();
|
var basepath = getCurrentScriptDirectory();
|
||||||
var filepaths = [
|
var filepaths = [
|
||||||
path.join(basepath, FN), // WelsonJS base library
|
path.join(basepath, FN), // WelsonJS base library
|
||||||
path.join(basepath, "Scripts", FN) // NuGet
|
path.join(basepath, "Scripts", FN), // NuGet
|
||||||
path.join(basepath, "bower_components", FN), // Bower
|
path.join(basepath, "bower_components", FN), // Bower
|
||||||
path.join(basepath, "node_modules", FN), // NPM
|
path.join(basepath, "node_modules", FN), // NPM
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
function main(args) {
|
function main(args) {
|
||||||
console.log("Hello world");
|
console.log("Hello world");
|
||||||
|
if (typeof WScript !== "undefined") {
|
||||||
|
console.log("Runtime version:", WScript.Version);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exports.main = main;
|
exports.main = main;
|
Loading…
Reference in New Issue
Block a user