forked from joshuaeckroth/propertea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
72 lines (70 loc) · 1.86 KB
/
project.clj
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(defn get-banner
[]
(try
(str
(slurp "resources/text/banner.txt")
; (slurp "resources/text/loading.txt")
)
;; If another project can't find the banner, just skip it;
;; this function is really only meant to be used by Dragon itself.
(catch Exception _ "")))
(defn get-prompt
[ns]
(str "\u001B[35m[\u001B[34m"
ns
"\u001B[35m]\u001B[33m =>\u001B[m "))
(defproject clojusc/propertea "1.5.0"
:description "Load, coerce, and validate property files."
:url ""
:license {
:name "BSD 3-Clause"
:url "https://opensource.org/licenses/BSD-3-Clause"}
:dependencies [
[org.clojure/clojure "1.10.1"]]
:profiles {
:dev {
:source-paths ["dev-resources/src"]
:repl-options {
:init-ns propertea.repl
:prompt ~get-prompt
:init ~(println (get-banner))}}
:ubercompile {
:aot :all}
:lint {
:source-paths ^:replace ["src"]
:test-paths ^:replace []
:plugins [
[jonase/eastwood "0.3.6"]
[lein-ancient "0.6.15"]
[lein-kibit "0.1.7"]]}
:test {
:dependencies [
[expectations "2.1.10"]]
:plugins [
[lein-expectations "0.0.8"]]}}
:aliases {
;; Dev & Testing Aliases
"repl" ["do"
["clean"]
["repl"]]
"ubercompile" ["with-profile" "+ubercompile" "compile"]
"check-vers" ["with-profile" "+lint" "ancient" "check" ":all"]
"check-jars" ["with-profile" "+lint" "do"
["deps" ":tree"]
["deps" ":plugin-tree"]]
"check-deps" ["do"
["check-jars"]
["check-vers"]]
"kibit" ["with-profile" "+lint" "kibit"]
"eastwood" ["with-profile" "+lint" "eastwood" "{:namespaces [:source-paths]}"]
"lint" ["do"
["kibit"]
["eastwood"]
]
"build" ["do"
["clean"]
["check-vers"]
["ubercompile"]
["lint"]
["test"]
["jar"]]})