-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8146b3
commit 55fd714
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
-- A template that will be replaced by the .github/workflows/release-luarocks.yml file | ||
-- | ||
-- Reference: | ||
-- Example template https://github.com/nvim-neorocks/luarocks-tag-release/blob/master/resources/rockspec.template | ||
-- | ||
|
||
local git_ref = "v1.5.4" | ||
local modrev = "1.5.4" | ||
local specrev = "1" | ||
|
||
local repo_url = "https://github.com/ColinKennedy/nvim-best-practices-plugin-template" | ||
|
||
rockspec_format = "3.0" | ||
package = "nvim-best-practices-plugin-template" | ||
version = modrev .. "-" .. specrev | ||
|
||
local user = "ColinKennedy" | ||
|
||
description = { | ||
homepage = "https://github.com/" .. user .. "/" .. package, | ||
labels = { "neovim", "neovim-plugin" }, | ||
license = "MIT", | ||
summary = 'A "Best Practices" Neovim plugin template', | ||
} | ||
|
||
dependencies = { | ||
"mega.cmdparse >= 1.0.3, < 2.0", | ||
"mega.logging >= 1.1.4, < 2.0", | ||
|
||
-- TODO(you): Remove these dependencies if you don't need them | ||
-- "lualine.nvim", -- Reference: https://luarocks.org/modules/neorocks/lualine.nvim | ||
"telescope.nvim >= 0.1.8 < 1.0", | ||
} | ||
|
||
test_dependencies = { | ||
"busted >= 2.0, < 3.0", | ||
"lua >= 5.1, < 6.0", | ||
"nlua >= 0.2, < 1.0", | ||
} | ||
|
||
-- Reference: https://github.com/luarocks/luarocks/wiki/test#test-types | ||
test = { type = "busted" } | ||
|
||
source = { | ||
url = repo_url .. "/archive/" .. git_ref .. ".zip", | ||
dir = "nvim-best-practices-plugin-template-" .. "1.5.4", | ||
} | ||
|
||
if modrev == "scm" or modrev == "dev" then | ||
source = { | ||
url = repo_url:gsub("https", "git"), | ||
} | ||
end | ||
|
||
build = { | ||
type = "builtin", | ||
copy_directories = { 'doc', 'plugin' } , | ||
} |