-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproject.clj
77 lines (65 loc) · 4.05 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
(def clojurescript-version (or (System/getenv "CANARY_CLOJURESCRIPT_VERSION") "1.9.946"))
(defproject binaryage/env-config "0.2.2"
:description "Clojure(Script) library for config map overrides via environment variables."
:url "https://github.com/binaryage/env-config"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"
:distribution :repo}
:scm {:name "git"
:url "https://github.com/binaryage/env-config"}
:dependencies [[org.clojure/clojure "1.9.0" :scope "provided"]
[org.clojure/tools.reader "1.2.1"]
[org.clojure/clojurescript ~clojurescript-version :scope "test"]
[org.clojure/tools.logging "0.4.0" :scope "test"]]
:clean-targets ^{:protect false} ["target"
"test/resources/.compiled"]
:plugins [[lein-shell "0.5.0"]]
; this is just for IntelliJ + Cursive to play well
:source-paths ["src/lib"]
:test-paths ["test/src/tests"]
:resource-paths ^:replace ["scripts"]
:cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413
:profiles {:dev
{:plugins [[com.jakemccrary/lein-test-refresh "0.20.0"]
[lein-tach "0.3.0"]
[lein-cljsbuild "1.1.6"]]}
: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
{:dependencies ~(let [project-str (slurp "project.clj")
project (->> project-str read-string (drop 3) (apply hash-map))
test-dep? #(->> % (drop 2) (apply hash-map) :scope (= "test"))
non-test-deps (remove test-dep? (:dependencies project))]
(with-meta (vec non-test-deps) {:replace true})) ; so ugly!
:source-paths ^:replace ["src/lib"]
:resource-paths ^:replace []
:test-paths ^:replace []}]
:clojure18
{:dependencies [[org.clojure/clojure "1.8.0" :scope "provided" :upgrade false]]}
:clojure17
{:dependencies [[org.clojure/clojure "1.7.0" :scope "provided" :upgrade false]]}
:self-host
{:cljsbuild {:builds [{:id "self-host-test-build"
:source-paths ["src/lib"
"test/src/tests"]
:compiler {:output-to "test/resources/.compiled/tests.js"
:main 'env-config.tests.runner
:target :nodejs
:optimizations :none}}]}
:tach {:debug? false
:force-non-zero-exit-on-test-failure? true}}}
:aliases {"install" ["do"
["shell" "scripts/prepare-jar.sh"]
["shell" "scripts/local-install.sh"]]
"test-all" ["shell" "scripts/test-all.sh"]
"test-self-host" ["shell" "scripts/test-self-host.sh"]
"jar" ["shell" "scripts/prepare-jar.sh"]
"deploy" ["shell" "scripts/deploy-clojars.sh"]
"release" ["do"
["clean"]
["shell" "scripts/check-versions.sh"]
["shell" "scripts/prepare-jar.sh"]
["shell" "scripts/check-release.sh"]
["shell" "scripts/deploy-clojars.sh"]]})