-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
113 lines (113 loc) · 3.39 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
(defproject clojusc/cljs-tools "0.2.2"
:description "Useful functions for cljs-based projects"
:url "https://github.com/clojusc/cljs-tools"
:license
{:name "Apache License, Version 2.0"
:url "http://www.apache.org/licenses/LICENSE-2.0"}
:exclusions [
[com.google.code.findbugs/jsr305]
[com.google.errorprone/error_prone_annotations]]
:dependencies
[[com.google.code.findbugs/jsr305 "3.0.2"]
[com.google.errorprone/error_prone_annotations "2.3.2"]
[joda-time/joda-time "2.10.1"]
[org.clojure/clojure "1.10.0"]
[org.clojure/clojurescript "1.10.439"]]
:plugins [
[lein-cljsbuild "1.1.7"]]
:clean-targets ^{:protect false}
["resources/public/js"
"target"]
:cljsbuild {
:builds [
{:id "cljs-tools"
:source-paths ["src"]
:compiler
{:main "cljs-tools.core"
:asset-path "js/out"
:output-to "resources/public/js/cljs_tools.js"
:output-dir "resources/public/js"}}
{:id "node"
:source-paths ["src"]
:compiler
{:target :nodejs
:output-to "target/node/cljs_tools.js"
:output-dir "target/node"
:main clojusc.cljs-tools}}]}
:profiles {
:ubercompile {
:aot :all}
:lint {
:source-paths ^:replace ["src"]
:test-paths ^:replace []
:plugins [
[jonase/eastwood "0.3.5"]
[lein-ancient "0.6.15"]
[lein-kibit "0.1.6"]
[lein-shell "0.5.0"]]}
:dev {
:source-paths ["dev-resources/src"]
:repl-options {
:init-ns clojusc.cljs-tools.dev}
:dependencies [
[org.clojure/tools.namespace "0.2.11"]]}
:test {
:aot :all
:dependencies [
[org.clojure/tools.namespace "0.2.11"]]
:plugins [
[lein-ltest "0.3.0"]]
:source-paths ["test/clj"]
: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"
["shell" "echo" "== Kibit =="]
["kibit"]]
"eastwood" ["with-profile" "+lint" "eastwood" "{:namespaces [:source-paths]}"]
"lint" ["do"
["kibit"]
;["eastwood"]
]
"ltest" ["with-profile" "+test" "ltest"]
;; Build
"cljs" ["cljsbuild" "once" "cljs-tools"]
"cljs-node" ["cljsbuild" "once" "node"]
"build" ^{:doc "Perform build steps."} ["do"
["clean"]
["ubercompile"]
["check-vers"]
;["lint"]
["ltest"]
["uberjar"]
["cljs"]
["cljs-node"]]})