-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.janet
32 lines (29 loc) · 918 Bytes
/
project.janet
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
(declare-project
:name "Documentarian"
:description "Generate documentation from Janet source files"
:author "Michael Camilleri"
:license "MIT"
:url "https://github.com/pyrmont/documentarian"
:repo "git+https://github.com/pyrmont/documentarian"
:dependencies ["https://github.com/pyrmont/argy-bargy"
"https://github.com/pyrmont/musty"]
:dev-dependencies ["https://github.com/pyrmont/testament"])
(declare-executable
:name "documentarian"
:entry "documentarian.janet"
:install true)
(declare-source
:source ["documentarian.janet"])
(task "dev-deps" []
(if-let [deps ((dyn :project) :dependencies)]
(each dep deps
(bundle-install dep))
(do
(print "no dependencies found")
(flush)))
(if-let [deps ((dyn :project) :dev-dependencies)]
(each dep deps
(bundle-install dep))
(do
(print "no dev-dependencies found")
(flush))))