-
Notifications
You must be signed in to change notification settings - Fork 0
/
bb.edn
56 lines (56 loc) · 2.55 KB
/
bb.edn
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
53
54
55
56
{:deps {metosin/malli {:mvn/version "0.13.0"},
org.clojure/tools.cli {:mvn/version "1.0.219"}},
:paths ["src/bb" "test/bb" "resources"],
:tasks
{:enter {},
:init (do
(defn stop [msg n] (clojure.core/println msg) (System/exit (or n 0)))
(defn print-error-code
[msg n]
(when-not (zero? n)
(clojure.core/println msg)
(clojure.core/println "Command has failed with exit code: " n)))),
:requires [],
ci-check {:doc "Ask all cfg item to check their consistency",
:requires [[core]],
:task (core/ci-check *command-line-args* print-error-code)},
ci-clean {:doc "Clean the setup - remove outdated downloads",
:requires [[core]],
:task (core/ci-clean *command-line-args* print-error-code)},
ci-init {:doc "Init the setup - to be run only once",
:requires [[core]],
:task (core/ci-init *command-line-args* stop)},
ci-install {:doc "Use to install cfg-item",
:requires [[core]],
:task (core/ci-install *command-line-args* stop)},
ci-restore {:doc "Restore the current configuration",
:requires [[core]],
:task (core/ci-restore *command-line-args* print-error-code)},
ci-save {:doc "Save the current configuration",
:requires [[core]],
:task (core/ci-save *command-line-args* print-error-code)},
ci-update {:doc "Regularly update you environment",
:requires [[core]],
:task (core/ci-update *command-line-args* print-error-code)},
ci-version {:doc "Display current version of configuration items.",
:requires [[core]],
:task (core/ci-version *command-line-args* stop)},
format {:doc "Format all project files",
:requires [[core]],
:task (core/format *command-line-args* stop)},
nrepl {:doc "Launch the nrepl",
:requires [[tasks.nrepl]],
:task (tasks.nrepl/nrepl *command-line-args*)},
os {:doc "Display current os",
:requires [[current-os]],
:task (println (format "os is `%s`, linked to configuration `%s`"
(System/getProperty "os.name")
(current-os/current-os)))},
show {:doc "Show cfg-item dependencies.",
:requires [[core]],
:task (core/show *command-line-args*)},
test
{:doc "Test the project", :requires [[test-runner]], :task test-runner/exec},
validate {:doc "Check the validity of your configuration file.",
:requires [[core]],
:task (core/validate)}}}