forked from clojusc/dragon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.clj
131 lines (129 loc) · 3.89 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
122
123
124
125
126
127
128
129
130
131
(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 dragon "0.4.0-SNAPSHOT"
:description "Customised, Stasis-based Static Site Generator"
:url "https://github.com/clojusc/dragon"
:scm {
:name "git"
:url "https://github.com/clojusc/dragon"}
:license {
:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [
[clojusc/env-ini "0.4.1"]
[clojusc/rfc5322 "0.4.0"]
[clojusc/trifl "0.2.0"]
[clojusc/twig "0.3.2"]
[com.datomic/clj-client "0.8.606"]
[com.stuartsierra/component "0.3.2"]
[com.taoensso/carmine "2.16.0" :exclusions [
com.taoensso/encore
com.taoensso/truss]]
[http-kit "2.2.0"]
[leiningen-core "2.7.1" :exclusions [
commons-logging
org.apache.maven.wagon/wagon-provider-api
org.apache.httpcomponents/httpclient
org.apache.httpcomponents/httpcore
org.codehaus.plexus/plexus-utils]]
[markdown-clj "1.0.1"]
[org.clojure/clojure "1.8.0"]
[org.clojure/core.async "0.3.443"]
;; The following two are need for onyx, to prevent version collision
;; errors
[org.apache.maven.wagon/wagon-provider-api "3.0.0"]
[commons-logging "1.2"]
;; end override
[org.onyxplatform/onyx "0.11.1" :exclusions [
com.google.guava/guava
commons-logging]]
[org.onyxplatform/onyx-redis "0.11.1.0" :exclusions [
com.google.guava/guava
commons-logging
log4j]]
[pandect "0.6.1"]
[potemkin "0.4.4"]
[ring/ring-core "1.6.2"]
[selmer "1.11.1" :exclusions [joda-time]]
[stasis "2.3.0"]]
:dragon {
:cli {
:log-level :trace}}
:profiles {
:ubercompile {
:aot :all}
:custom-repl {
:repl-options {
:init-ns dragon.dev
:prompt ~get-prompt
:init ~(println (get-banner))}}
:cli {}
:dev {
:source-paths ["dev-resources/src"]
:main dragon.main
:plugins [
[lein-simpleton "1.3.0"]]
:dependencies [
[org.clojure/tools.namespace "0.2.11"]]}
:test {
:exclusions [org.clojure/clojure]
:plugins [
[lein-ancient "0.6.12"]
[jonase/eastwood "0.2.5"]
[lein-bikeshed "0.5.0"]
[lein-kibit "0.1.5"]
[venantius/yagni "0.1.4"]]}
:docs {
:dependencies [
[codox-theme-rdash "0.1.2"]]
:plugins [
[lein-codox "0.10.3"]
[lein-marginalia "0.9.0"]
[lein-simpleton "1.3.0"]]
:codox {
:project {
:name "Dragon"
:description "Customised, Stasis-based Static Site Generator"}
:namespaces [#"^dragon\.(?!dev)"]
:themes [:rdash]
:output-path "docs/current"
:doc-paths ["resources/docs"]
:metadata {
:doc/format :markdown
:doc "Documentation forthcoming"}}}}
:aliases {
"dragon"
^{:doc (str "The Dragon blog CLI; type `lein dragon help` or `dragon help` "
"for commands")}
["with-profile" "+cli"
"run" "-m" "dragon.main" "cli"]
"repl" ["with-profile" "+custom-repl" "repl"]
"ubercompile" ["with-profile" "+ubercompile" "compile"]
"check-deps" ["with-profile" "+test" "ancient" "check" ":all"]
"lint" ["with-profile" "+test" "kibit"]
"docs" ["with-profile" "+docs" "do"
["codox"]
["marg" "--dir" "docs/current"
"--file" "marginalia.html"
"--name" "sockets"]]
"build" ["with-profile" "+test" "do"
;["check-deps"]
["lint"]
["docs"]
["ubercompile"]
["clean"]
["uberjar"]
["clean"]
["test"]]})