forked from zachary-kuhn/Postal
-
Notifications
You must be signed in to change notification settings - Fork 3
/
project.clj
121 lines (118 loc) · 3.47 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
(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-help
[]
(str "\nTo demo the code, try the following:\n\n"
"\t(demo-lite)\n"
"\t(source demo-lite)\n"
"\t(source parsed-lite)\n"
"\tparsed-lite\n\n"
"\t(demo-full)\n"
"\t(source demo-full)\n"
"\t(source parsed-full)\n"
"\tparsed-full\n\n"
"\t(test-message)\n\n"))
(defn get-prompt
[ns]
(str "\u001B[35m[\u001B[34m"
ns
"\u001B[35m]\u001B[33m λ\u001B[m=> "))
(defproject clojusc/rfc5322 "0.5.0"
:description "A Parser for the Internet Message Format (RFC 5322)"
:url "https://github.com/clojusc/rfc5322"
:license {
:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:excludsions [org.clojure/clojure]
:dependencies [
[com.taoensso/timbre "4.10.0"]
[instaparse "1.4.10"]
[org.clojure/clojure "1.10.0"]]
:test-path "spec/"
:source-paths ["src" "dev-resources/src" "test"]
:aot [rfc5322.exception]
:profiles {
:ubercompile {
:aot :all}
:custom-repl {
:repl-options {
:init-ns rfc5322.repl
:prompt ~get-prompt
:init ~(println (get-banner))
:welcome ~(println (get-help))}}
:dev {
:dependencies [
[clojusc/trifl "0.4.2"]
[org.clojure/tools.namespace "0.2.11"]]
:plugins [
[lein-shell "0.5.0"]]}
:lint {
:plugins [
[jonase/eastwood "0.3.5"]
[lein-kibit "0.1.6"]]}
:test {
:dependencies [
[clojusc/ltest "0.4.0-SNAPSHOT"]
[environ "1.1.0"]]
:plugins [
[lein-ancient "0.6.15"]
[lein-ltest "0.4.0-SNAPSHOT"]]
:test-selectors {
:select :select}}
:docs {
:dependencies [
[codox-theme-rdash "0.1.2"]]
:plugins [
[lein-codox "0.10.5"]
[lein-marginalia "0.9.1"]
[lein-simpleton "1.3.0"]]
:codox {
:project {
:name "rfc5322"
:description "A Parser for the Internet Message Format (RFC 5322)"}
:namespaces [#"^rfc5322\.(?!dev)"]
:themes [:rdash]
:output-path "docs/master/current"
:doc-paths ["docs/source"]
:metadata {
:doc/format :markdown
:doc "Documentation forthcoming"}}}}
:aliases {
"repl" ["with-profile" "+custom-repl,+test" "repl"]
"ubercompile" ["with-profile" "+ubercompile" "compile"]
"check-vers" ["with-profile" "+test" "ancient" "check" ":all"]
"check-jars" ["with-profile" "+test" "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"]
]
"ltest" ["with-profile" "+test" "ltest"]
"docs" ["with-profile" "+docs,+test" "do"
["codox"]
["marg" "--dir" "docs/current"
"--file" "marginalia.html"
"--name" "sockets"]]
"build" ["with-profile" "+test" "do"
["check-vers"]
["ubercompile"]
["lint"]
["ltest"]
["docs"]
["uberjar"]]
"publish-docs" ["do"
["docs"]
["shell" "resources/scripts/publish-docs.sh"]]})