Warcraft 3 Demo Module "demo-hello" for WLPM
wlpm install https://github.com/Indaxia/wlpm-wc3-demo-hello
OR add a new property in your wlpm-package.json and run wlpm update build
"dependencies": {
"https://github.com/Indaxia/wlpm-wc3-demo-hello": "*"
}
WM("myModule", function(import, export, exportDefault) -- declare your main module
local greeting = import "demo-hello"
local anotherGreeting = import("welcome", "demo-hello")
print (greeting)
print (anotherGreeting)
end)
local greeting = importWM "demo-hello"
local anotherGreeting = importWM("welcome", "demo-hello")
print (greeting)
print (anotherGreeting)