add moonscript.base module for loading moonscrit without installing moonloader

This commit is contained in:
leaf corcoran 2013-03-19 09:11:16 -07:00
parent 610d3d5690
commit 539ae2850f
3 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@ build = {
["moon"] = "moon/init.lua", ["moon"] = "moon/init.lua",
["moon.all"] = "moon/all.lua", ["moon.all"] = "moon/all.lua",
["moonscript"] = "moonscript/init.lua", ["moonscript"] = "moonscript/init.lua",
["moonscript.base"] = "moonscript/base.lua",
["moonscript.compile"] = "moonscript/compile.lua", ["moonscript.compile"] = "moonscript/compile.lua",
["moonscript.compile.statement"] = "moonscript/compile/statement.lua", ["moonscript.compile.statement"] = "moonscript/compile/statement.lua",
["moonscript.compile.value"] = "moonscript/compile/value.lua", ["moonscript.compile.value"] = "moonscript/compile/value.lua",

2
moonscript/base.lua Normal file
View File

@ -0,0 +1,2 @@
_G.moon_no_loader = true
return require("moonscript")

2
moonscript/base.moon Normal file
View File

@ -0,0 +1,2 @@
_G.moon_no_loader = true
require "moonscript"