Script for easily working with Luarocks trees
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
rockspecs
LICENSE
README.md
lrt

README.md

lrt

Script for easily working with Luarocks trees. Allows you to configure Lua projects to only reference project-local dependencies in order to isolate them from system-wide dependencies.

Installation

luarocks install lrt

Commands

Install

Install (or reinstall) a rock from Luarocks into ./lua_modules.

lrt install <rock name or rockspec> [additional luarocks arguments]

or

lrt i <rock name or rockspec> [additional luarocks arguments]

Install Dependencies

Install dependencies listed in ./deps-dev-0.rockspec.

lrt install_deps

or

lrt id

Run

Run a command with Luarocks binary and package paths configured for ./lua_modules.

lrt run <command name> [arguments]

or

lrt r <command name> [arguments]

Clean

Remove all rocks install in ./lua_modules.

lrt clean

or

lrt c

Write Empty Dependencies File

Creates an empty dependency file at ./deps-dev-0.rockspec.

lrt write_depfile

or

lrt w