-
Notifications
You must be signed in to change notification settings - Fork 51
/
project.clj
173 lines (155 loc) · 12.3 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
(def clojurescript-version (or (System/getenv "CANARY_CLOJURESCRIPT_VERSION") "1.11.60"))
(defproject binaryage/devtools "1.0.7"
:description "A collection of Chrome, Edge and Firefox DevTools enhancements for ClojureScript developers."
:url "https://github.com/binaryage/cljs-devtools"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"
:distribution :repo}
:scm {:name "git"
:url "https://github.com/binaryage/cljs-devtools"}
:dependencies [[org.clojure/clojure "1.11.1" :scope "provided"]
[org.clojure/clojurescript ~clojurescript-version :scope "provided"]]
:clean-targets ^{:protect false} ["target"
"test/resources/.compiled"]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-shell "0.5.0"]]
; this is for IntelliJ + Cursive to play well
:source-paths ["src/lib"
"src/debug"]
:test-paths ["test/src/advanced-warning"
"test/src/dead-code"
"test/src/dead-code-no-mention"
"test/src/dead-code-no-require"
"test/src/tests"]
:resource-paths ["test/resources"]
:cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413
:profiles {:nuke-aliases
{:aliases ^:replace {}}
:lib
^{:pom-scope :provided} ; ! to overcome default jar/pom behaviour, our :dependencies replacement would be ignored for some reason
[:nuke-aliases
{:source-paths ^:replace ["src/lib"]
:resource-paths ^:replace []
:test-paths ^:replace []}]
:devel
{:cljsbuild {:builds {:devel
{:source-paths ["src/lib"
"src/debug"]
:compiler {:output-to "target/devel/cljs_devtools.js"
:output-dir "target/devel"
:optimizations :none}}}}}
:testing
{:source-paths ^:replace []
:resource-paths ^:replace []
:test-paths ^:replace []
:cljsbuild {:builds {:tests
{:source-paths ["src/lib"
"test/src/tests"]
:compiler {:output-to "test/resources/.compiled/tests/build.js"
:output-dir "test/resources/.compiled/tests"
:asset-path ".compiled/tests"
:main devtools.main
:preloads [devtools.testenv]
:optimizations :none
:checked-arrays :warn}}
:dead-code
{:source-paths ["src/lib"
"test/src/dead-code"]
:compiler {:output-to "test/resources/.compiled/dead-code/build.js"
:output-dir "test/resources/.compiled/dead-code"
:asset-path ".compiled/dead-code"
:main devtools.main
:closure-defines {"goog.DEBUG" false}
:pseudo-names true
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:dce-with-debug
{:source-paths ["src/lib"
"test/src/dead-code"]
:compiler {:output-to "test/resources/.compiled/dce-with-debug/build.js"
:output-dir "test/resources/.compiled/dce-with-debug"
:asset-path ".compiled/dce-with-debug"
:main devtools.main
:closure-defines {"goog.DEBUG" true}
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:dce-no-debug
{:source-paths ["src/lib"
"test/src/dead-code"]
:compiler {:output-to "test/resources/.compiled/dce-no-debug/build.js"
:output-dir "test/resources/.compiled/dce-no-debug"
:asset-path ".compiled/dce-no-debug"
:main devtools.main
:closure-defines {"goog.DEBUG" false}
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:dce-no-mention
{:source-paths ["src/lib"
"test/src/dead-code-no-mention"]
:compiler {:output-to "test/resources/.compiled/dce-no-mention/build.js"
:output-dir "test/resources/.compiled/dce-no-mention"
:asset-path ".compiled/dce-no-mention"
:main devtools.main
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:dce-no-require
{:source-paths ["src/lib"
"test/src/dead-code-no-require"]
:compiler {:output-to "test/resources/.compiled/dce-no-require/build.js"
:output-dir "test/resources/.compiled/dce-no-require"
:asset-path ".compiled/dce-no-require"
:main devtools.main
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:dce-no-sources
{:source-paths ["test/src/dead-code-no-require"]
:compiler {:output-to "test/resources/.compiled/dce-no-sources/build.js"
:output-dir "test/resources/.compiled/dce-no-sources"
:asset-path ".compiled/dce-no-sources"
:main devtools.main
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}
:advanced-warning
{:source-paths ["src/lib"
"test/src/advanced-warning"]
:compiler {:output-to "test/resources/.compiled/advanced-warning/build.js"
:output-dir "test/resources/.compiled/advanced-warning"
:asset-path ".compiled/advanced-warning"
:main devtools.main
:external-config {:devtools/config {:silence-optimizations-warning true}}
:optimizations :advanced
:checked-arrays :warn}}}}}
:dce-pseudo-names
{:cljsbuild {:builds {:dce-with-debug {:compiler {:pseudo-names true}}
:dce-no-debug {:compiler {:pseudo-names true}}
:dce-no-mention {:compiler {:pseudo-names true}}
:dce-no-require {:compiler {:pseudo-names true}}
:dce-no-sources {:compiler {:pseudo-names true}}}}}}
:aliases {"test" ["do"
["clean"]
["test-tests"]
["test-dead-code"]
;["test-dce-size"]
["test-advanced-warning"]]
"test-dead-code" ["do"
["with-profile" "+testing" "cljsbuild" "once" "dead-code"]
["shell" "test/scripts/dead-code-check.sh"]]
"test-dce-size" ["shell" "scripts/check-dce-size.sh" "+testing"]
"compare-dead-code" ["shell" "scripts/compare-dead-code.sh" "+testing"]
"compare-dead-code-with-pseudo-names" ["shell" "scripts/compare-dead-code.sh" "+testing,+dce-pseudo-names"]
"test-tests" ["do"
["with-profile" "+testing" "cljsbuild" "once" "tests"]
["shell" "node" "--no-deprecation" "test/resources/puppeteer.js" "test/resources" "run-tests.html"]]
"test-tests-with-config" ["do"
["shell" "scripts/compile-tests-with-config.sh"]
["shell" "node" "--no-deprecation" "test/resources/puppeteer.js" "test/resources" "run-tests-with-config.html"]]
"test-advanced-warning" ["do"
["with-profile" "+testing" "cljsbuild" "once" "advanced-warning"]
["shell" "node" "--no-deprecation" "test/resources/puppeteer.js" "test/resources" "run-advanced-warning.html"]]
"release" ["shell" "scripts/release.sh"]})