NebLua is a tiny zero-dependency bundler for Lua. Lua 5.3 supported but it may work for Lua 5.4.
- Bundle
require
,loadfile
anddofile
functions - Text import by
requireText
Download single source file from Releases
This is a part of configuration of NebLua's self-build. See /example
, ./bundleSelf.lua
and /test/bundle/bundle.test.lua
local bundle = require("src.neblua").bundle
bundle {
entry = "src.neblua",
output = "./dist/neblua.lua",
files = {
"./src/neblua.lua",
"./src/path.lua",
"./src/string.lua",
{ path = "./src/templates/template.lua", type = "text" }
},
verbose = true,
}
key | value |
---|---|
rootDir |
root directory of source files |
entry |
entry module name |
output |
output file name |
files |
source files |
verbose |
enable verbose mode |
$ lua neblua-cli [options] [files]
options | value | function |
---|---|---|
-e , --entry |
module name | set entry point |
-o , --output |
file name | set output file name |
--verbose |
none | enable verbose mode |
-v , --version |
none | print version |
- support
require
- support
loadfile
- support
dofile
- error output override
- string require
- automatically add required files
- minify
- tree shaking