From 539ae2850fe598e20fa1c0b6339b64e88e112ef2 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Tue, 19 Mar 2013 09:11:16 -0700 Subject: [PATCH] add moonscript.base module for loading moonscrit without installing moonloader --- moonscript-dev-1.rockspec | 1 + moonscript/base.lua | 2 ++ moonscript/base.moon | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 moonscript/base.lua create mode 100644 moonscript/base.moon diff --git a/moonscript-dev-1.rockspec b/moonscript-dev-1.rockspec index 9906efc..457c016 100644 --- a/moonscript-dev-1.rockspec +++ b/moonscript-dev-1.rockspec @@ -25,6 +25,7 @@ build = { ["moon"] = "moon/init.lua", ["moon.all"] = "moon/all.lua", ["moonscript"] = "moonscript/init.lua", + ["moonscript.base"] = "moonscript/base.lua", ["moonscript.compile"] = "moonscript/compile.lua", ["moonscript.compile.statement"] = "moonscript/compile/statement.lua", ["moonscript.compile.value"] = "moonscript/compile/value.lua", diff --git a/moonscript/base.lua b/moonscript/base.lua new file mode 100644 index 0000000..2636187 --- /dev/null +++ b/moonscript/base.lua @@ -0,0 +1,2 @@ +_G.moon_no_loader = true +return require("moonscript") diff --git a/moonscript/base.moon b/moonscript/base.moon new file mode 100644 index 0000000..b5fae84 --- /dev/null +++ b/moonscript/base.moon @@ -0,0 +1,2 @@ +_G.moon_no_loader = true +require "moonscript"