Build utility like Rake for luvit
No npm-like utility yet :(
git clone https://github.com/mgutz/luv.git
# symlink the script
ln -sf `pwd`/luv/bin/luv ~/bin
Create a Luvfile.lua
in your project's root directory.
-- Specify task depencencies in 3rd argument.
task("build", "Builds the project.", {"clean"}, function()
print("build your project here")
end)
-- All tasks must have `name`, `description` and `action`.
task("clean", "Cleans the project.", function()
print("cleaning")
end)
See all tasks
luv
Run a task
luv build
Specify task options.
-- Encode task options in the description `lapp` style
local desc = [[
Creates distribution
-a,--archive-name (string) Archive name.
]]
task("dist", desc, {"build"}, function(self)
print("Creating distribution "..self.args["archive-name"])
end)