From 86425c8c93c8529cd2c88db1d0303fe980048896 Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 10 Apr 2024 18:16:41 -0500 Subject: initial commit --- main.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 main.lua (limited to 'main.lua') 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)) -- cgit v1.2.3