-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathproject.clj
136 lines (121 loc) · 8.16 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
(def clojurescript-version (or (System/getenv "CANARY_CLOJURESCRIPT_VERSION") "1.11.4"))
(def required-deps
[['binaryage/env-config "0.2.2"]])
(def provided-deps
[['org.clojure/clojure "1.10.3" :scope "provided"]
['org.clojure/clojurescript clojurescript-version :scope "provided"]])
(def test-deps
[['environ "1.2.0" :scope "test"]
['funcool/cuerdas "2022.01.14-391"]
['binaryage/devtools "RELEASE" :scope "test"]
['figwheel "RELEASE" :scope "test"]
['org.clojure/tools.logging "1.2.4" :scope "test"]
['clj-logging-config "1.9.12" :scope "test"]
['clansi "1.0.0" :scope "test"]])
(def lib-deps (concat provided-deps required-deps))
(def all-deps (concat lib-deps test-deps))
(defproject binaryage/oops "0.7.2"
:description "ClojureScript macros for convenient Javascript object access."
:url "https://github.com/binaryage/cljs-oops"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"
:distribution :repo}
:scm {:name "git"
:url "https://github.com/binaryage/cljs-oops"}
:dependencies ~all-deps
:clean-targets ^{:protect false} ["target"
"test/resources/.compiled"]
:plugins [[lein-cljsbuild "1.1.8"]
[lein-figwheel "RELEASE"]]
; this is just for IntelliJ + Cursive to play well
:source-paths ["src/lib"]
:test-paths ["test/src/arena"
"test/src/circus"
"test/src/runner"
"test/src/tests"
"test/src/tools"]
:resource-paths ^:replace ["test/resources"
"scripts"]
:cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413
:profiles {
:lib
^{:pom-scope :provided} ; ! to overcome default jar/pom behaviour, our :dependencies replacement would be ignored for some reason
[{:dependencies ~(with-meta lib-deps {:replace true})
:source-paths ^:replace ["src/lib"]
:resource-paths ^:replace []
:test-paths ^:replace []}]
:clojure18
{:dependencies [[org.clojure/clojure "1.8.0" :scope "provided" :upgrade false]
[clojure-future-spec "1.9.0-beta4" :scope "provided"]]}
:clojure19
{:dependencies [[org.clojure/clojure "1.9.0" :scope "provided" :upgrade false]]}
:cooper
{:plugins [[lein-cooper "1.2.2"]]}
:figwheel
{:figwheel {:server-port 7118
:server-logfile ".figwheel/log.txt"
:validate-interactive false
:repl false}}
:circus
{:source-paths ["src/lib"
"test/src/circus"
"test/src/arena"
"test/src/tools"]}
:testing-basic-onone
{:cljsbuild {:builds {:basic-onone
{:source-paths ["src/lib"
"test/src/runner"
"test/src/tools"
"test/src/tests"]
:compiler {:output-to "test/resources/.compiled/basic_onone/main.js"
:output-dir "test/resources/.compiled/basic_onone"
:asset-path ".compiled/basic_onone"
:main oops.runner
:optimizations :none
:checked-arrays :warn ; see https://github.com/binaryage/cljs-oops/issues/14
:external-config {:devtools/config {:dont-detect-custom-formatters true}
:oops/config {:debug true
:dynamic-selector-usage false
:static-nil-target-object false}}}
:figwheel true}}}}
:testing-basic-oadvanced-core
{:cljsbuild {:builds {:basic-oadvanced-core
{:source-paths ["src/lib"
"test/src/runner"
"test/src/tools"
"test/src/tests"]
:compiler {:output-to "test/resources/.compiled/basic_oadvanced_core/main.js"
:output-dir "test/resources/.compiled/basic_oadvanced_core"
:asset-path ".compiled/basic_oadvanced_core"
:main oops.runner
:pseudo-names true
:optimizations :advanced
:checked-arrays :warn ; see https://github.com/binaryage/cljs-oops/issues/14
:external-config {:devtools/config {:silence-optimizations-warning true}
:oops/config {:debug true
:key-get :core
:key-set :core}}}}}}}
:testing-basic-oadvanced-goog
{:cljsbuild {:builds {:basic-oadvanced-goog
{:source-paths ["src/lib"
"test/src/runner"
"test/src/tools"
"test/src/tests"]
:compiler {:output-to "test/resources/.compiled/basic_oadvanced_goog/main.js"
:output-dir "test/resources/.compiled/basic_oadvanced_goog"
:asset-path ".compiled/basic_oadvanced_goog"
:main oops.runner
:pseudo-names true
:optimizations :advanced
:checked-arrays :warn ; see https://github.com/binaryage/cljs-oops/issues/14
:external-config {:devtools/config {:silence-optimizations-warning true}
:oops/config {:debug true
:key-get :goog
:key-set :goog}}}}}}}
:auto-testing
{:cljsbuild {:builds {:basic-onone {:notify-command ["scripts/rerun-tests.sh" "basic_onone"]}
:basic-oadvanced {:notify-command ["scripts/rerun-tests.sh" "basic_oadvanced_core"]}
:basic-oadvanced-goog {:notify-command ["scripts/rerun-tests.sh" "basic_oadvanced_goog"]}}}}
:dev-basic-onone
{:cooper {"server" ["scripts/launch-fixtures-server.sh"]
"figwheel" ["scripts/fig-basic-onone.sh"]}}})