diff options
| author | citrons <citrons@mondecitronne.com> | 2024-04-10 18:16:41 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2024-04-10 18:24:14 -0500 |
| commit | 86425c8c93c8529cd2c88db1d0303fe980048896 (patch) | |
| tree | 87d160b058ba0990d8c66631f3b776a6d2deb82f /main.lua | |
initial commit
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main.lua b/main.lua new file mode 100644 index 0000000..ac380c4 --- /dev/null +++ b/main.lua @@ -0,0 +1,18 @@ +-- bundler. public domain. +-- https://citrons.xyz/git/cc-bundler.git + +local bundler = require "bundler" +local platform = require "bundler.platform" + +local out, main_module = ... +local other_modules = {} +for i = 3, select("#", ...) do + table.insert(other_modules, (select(i, ...))) +end + +if not out or not main_module then + platform.error "usage: [output file] [main module] [other modules]..." + return +end + +platform.write(out, bundler.bundle(main_module, other_modules)) |
