Created
February 4, 2012 18:17
-
-
Save mgutz/1739294 to your computer and use it in GitHub Desktop.
require with index.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### index.lua | |
return require("./lib/luv") | |
### lib/luv.lua | |
local luv = {} | |
_G.task = function(name, description, ...) | |
end | |
return luv | |
### test/luvTest.lua | |
-- expected this to be equivalent of require("../index") | |
local luv = require("..") | |
task("build", "Builds the file", function() | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment