-
Notifications
You must be signed in to change notification settings - Fork 0
/
emitter.tl-dev-1.rockspec
52 lines (52 loc) · 1.33 KB
/
emitter.tl-dev-1.rockspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
rockspec_format = "3.0"
package = "emitter.tl"
version = "dev-1"
source = {
url = "git+https://github.com/mtdowling/emitter.tl.git",
branch = "main",
}
description = {
summary = "A small, strongly typed event emitter library for Lua and typed with Teal",
detailed = [[
* Designed around strongly typed events using Teal. Events are no longer just
strings and bags of data.
* Allows for decoupling logic by subscribing and unsubscribing to events.
* Support for receiving an event at most once.
* Can efficiently forward all events from an Emitter to another Emitter.
This is great for things like games that have global events and listeners
that should only persist for the lifetime of a specific emitter.
* Listeners can be added or removed while emitting, and removals take effect
immediately.
]],
homepage = "https://github.com/mtdowling/emitter.tl",
license = "MIT <http://opensource.org/licenses/MIT>",
}
dependencies = {
"lua >= 5.1",
}
test_dependencies = {
"busted",
--"busted-tl",
}
build_dependencies = {
"tl >= 0.24.1",
"cyan >= 0.4.0",
"luacheck >= 0.2.0",
}
test = {
type = "busted",
flags = {
"--loaders=teal",
},
}
build = {
type = "builtin",
modules = {
emitter = "src/emitter.lua",
},
install = {
lua = {
emitter = "src/emitter.tl",
},
},
}