Set up initial project

This commit is contained in:
Talia 2024-08-13 09:47:32 +02:00
commit c1446b0974
7 changed files with 47 additions and 0 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/lua_modules
/.luarocks

3
.luacheckrc Normal file
View file

@ -0,0 +1,3 @@
exclude_files = {
"lua_modules";
}

8
.luarc.json Normal file
View file

@ -0,0 +1,8 @@
{
"diagnostics.globals": [
"lfs"
],
"workspace.library": [
"${3rd}/lfs/library"
]
}

18
chains-dev-1.rockspec Normal file
View file

@ -0,0 +1,18 @@
package = "chains"
version = "dev-1"
source = {
url = "*** please add URL for source tarball, zip or repository here ***"
}
description = {
homepage = "*** please enter a project homepage ***",
license = "*** please specify a license ***"
}
dependencies = {
"luafilesystem",
}
build = {
type = "builtin",
modules = {
chains = "src/chains.lua"
}
}

5
spec/chains_spec.moon Normal file
View file

@ -0,0 +1,5 @@
chains = require "chains"
describe "Chains loader", ->
it "returns a function", ->
assert.is.function chains.new{}

View file

11
src/chains.lua Normal file
View file

@ -0,0 +1,11 @@
local chains = {}
local lfs = require "lfs"
function chains.new(loaders)
return function(path)
error "Not yet implemented"
end
end
return chains