Skip to content

Instantly share code, notes, and snippets.

@mgutz
Created February 4, 2012 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgutz/1739294 to your computer and use it in GitHub Desktop.
Save mgutz/1739294 to your computer and use it in GitHub Desktop.
require with index.lua
### 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