mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-02-06 06:54: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 filepaths = [
|
||||
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, "node_modules", FN), // NPM
|
||||
];
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
function main(args) {
|
||||
console.log("Hello world");
|
||||
if (typeof WScript !== "undefined") {
|
||||
console.log("Runtime version:", WScript.Version);
|
||||
}
|
||||
}
|
||||
|
||||
exports.main = main;
|
Loading…
Reference in New Issue
Block a user