-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
115 lines (115 loc) · 3.35 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
(defproject clojusc/twig "0.4.1"
:description "A little logging helper for Clojure/ClojureScript projects"
:url "https://github.com/clojusc/twig"
:license {
:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:exclusions [
[com.taoensso/encore]
[org.clojure/clojure]]
:dependencies [
[ch.qos.logback/logback-classic "1.2.3"]
[clansi "1.0.0"]
[clojusc/cljs-tools "0.2.2"]
[com.taoensso/encore "2.105.0"]
[com.taoensso/timbre "4.10.0"]
[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.439"]
[org.clojure/tools.logging "0.4.1"]
[org.slf4j/slf4j-api "1.7.25"]]
:plugins [
[lein-cljsbuild "1.1.7" :exclusions [org.clojure/clojure]]
[lein-npm "0.6.2" :exclusions [org.clojure/clojure]]]
:npm {
:dependencies [
[colors "1.1.2"]]}
:cljsbuild {
:builds [
{:id "twig"
:compiler
{:main "clojusc.twig"
:output-to "resources/public/js/twig.js"
:output-dir "resources/public/js"}}
{:id "node"
:compiler
{:target :nodejs
:output-to "target/node/twig.js"
:output-dir "target/node"}}]}
:profiles {
:ubercompile {
:aot :all}
:lint {
:source-paths ^:replace ["src"]
:test-paths ^:replace []
:exclusions [
[org.clojure/clojure]]
:plugins [
[jonase/eastwood "0.3.5"]
[lein-ancient "0.6.15"]
[lein-kibit "0.1.6"]]}
:dev {
:source-paths ["dev-resources/src"]
:repl-options {
:init-ns clojusc.twig.dev}
:dependencies [
[org.clojure/tools.nrepl "0.2.13"]]}
:test {
:aot :all
:dependencies [
[org.clojure/tools.namespace "0.2.11"]]
:plugins [
[lein-ltest "0.3.0"]]
:source-paths ["test"]
:test-selectors {
:default :unit
:unit :unit
:system :system
:integration :integration}}}
:aliases {
;; CLJS aliases
"rhino-repl"
^{:doc "Start a Rhino-based Clojurescript REPL"}
["trampoline" "run" "-m" "clojure.main"
"dev-resources/scripts/rhino-repl.clj"]
"node-repl"
^{:doc "Start a Node.js-based Clojurescript REPL"}
["trampoline" "run" "-m" "clojure.main"
"dev-resources/scripts/node-repl.clj"]
"browser-repl"
^{:doc "Start a browser-based Clojurescript REPL"}
["trampoline" "run" "-m" "clojure.main"
"dev-resources/scripts/browser-repl.clj"]
;; CLJ Aliases
"repl" ["do"
["clean"]
["repl"]]
"ubercompile" ["with-profile" "+ubercompile" "compile"]
;; Linting and tests
"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" "do"
["kibit"]]
"eastwood" ["with-profile" "+lint" "eastwood" "{:namespaces [:source-paths]}"]
"lint" ["do"
["kibit"]
;["eastwood"]
]
"ltest" ["with-profile" "+test" "ltest"]
;; Build
"cljs" ["cljsbuild" "once" "twig"]
"cljs-node" ["cljsbuild" "once" "node"]
"build" ^{:doc "Perform build steps."} ["do"
["clean"]
["ubercompile"]
["check-vers"]
["lint"]
["ltest"]
["uberjar"]
["cljs"]
["cljs-node"]]})