Try it:
wget https://gist.githubusercontent.com/aleclarson/759b5600974c6a8073eff2e3eb81699f/raw/lula.sh -O ~/bin/lula
chmod +x ~/bin/lulaYou must create a package.lua file in the root directory of your project.
In it, you will declare a global variable for each configuration option you want to use.
Here are the configuration options:
main: stringUsed as the 2nd argument when you runlulaorlula startscripts: {}Contains named shell scripts that you run withlula run <name>inject: {}An array of module paths to require before your "main" pathdependencies: {}An array of git urls to shallow clone into the ./lib directory
The main option defaults to init.lua.
The scripts.start option defaults to lua.
# Run the "start" script
lula
lula start
# Run any other script you wish
lula run <name>
# Install "dependencies" into the ./lib directory
lula install
lula i- Implement the "inject" feature
- Implement the "dependencies" feature
- Support adding a dependency via
lula install <git-url> - Support adding a dependency by its luarocks name (by resolving it to a url)
- Support passing extra arguments to
lula startandlula run - Let
scriptscontain pairs where the value is an array of commands
main = "init.lua"
inject = {
"moonscript",
}
dependencies = {
"https://github.com/tarantool/queue.git",
}
scripts = {
start = "tarantool",
clean = "rm data/backup/* &> /dev/null",
}