Skip to content

Commit

Permalink
chore: Overhaul dev rockspec with LunarModules boilerplate and test d…
Browse files Browse the repository at this point in the history
…ependencies
  • Loading branch information
alerque committed Dec 2, 2023
1 parent 3fba0ca commit 9e66cb3
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions lua_cliargs-dev-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
package = "lua_cliargs"
version = "dev-1"
local package_name = "lua_cliargs"
local package_version = "dev"
local rockspec_revision = "1"
local github_account_name = "lunarmodules"
local github_repo_name = package_name

rockspec_format = "3.0"
package = package_name
version = package_version .. "-" .. rockspec_revision

source = {
url = "git+https://github.com/lunarmodules/lua_cliargs.git",
branch = "master"
url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git"
}

if package_version == "dev" then source.branch = "master" else source.tag = "v" .. package_version end

description = {
summary = "A command-line argument parser.",
detailed = [[
Expand All @@ -13,11 +23,24 @@ description = {
cliargs allows you to define required, optional, and flag arguments.
]],
homepage = "https://github.com/amireh/lua_cliargs",
license = "MIT <http://opensource.org/licenses/MIT>"
license = "MIT"
}

dependencies = {
"lua >= 5.1"
}

test_dependencies = {
"busted",
"dkjson",
"inifile",
"yaml",
}

test = {
type = "busted",
}

build = {
type = "builtin",
modules = {
Expand Down

0 comments on commit 9e66cb3

Please sign in to comment.