luabundler
Bundles several Lua files into a single file.
Last updated 4 months ago by benjamin.dobell .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install luabundler 
SYNC missed versions from official npm registry.

luabundler

CLI tool for bundling several Lua files into a single file.

If you're looking for an API, see luabundle

oclif Version Downloads/week License

Installation

npm install -g luabundler

Usage

luabundler takes an input Lua file, and recursively collects all the require()d modules and bundles them into a single output bundle.

luabundler input.lua -p "/path/to/lua/?.lua" -o bundle.lua

If you don't specify an output file (-o), the resultant bundle will be printed to your terminal.

Search Paths

In order to know where to look for required files, you must provide one or more search path patterns.

In addition to allowing you to add directories to search within, the pattern format allows you to configure supported file extensions as well.

For example, it's fairly common practice for Lua scripts written for Tabletop Simulator to use the .ttslua extension:

luabundler input_file.lua -p "/path/to/lua/?.lua" -p "/path/to/mod/?.ttslua"  -o output_bundle.lua

Current Tags

  • 1.2.0                                ...           latest (4 months ago)

7 Versions

  • 1.2.0                                ...           4 months ago
  • 1.1.0                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
  • 0.9.1                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |