|
20 | 20 | [lein-environ "1.1.0"] |
21 | 21 | [lein-shell "0.5.0"]] |
22 | 22 |
|
23 | | - :hooks [leiningen.cljsbuild] |
24 | | - |
| 23 | + ; this is just for IntelliJ + Cursive to play well, see :lib profile for real source paths |
25 | 24 | :source-paths ["src/lib" |
26 | 25 | "src/exts" |
27 | 26 | "src/exts_private" |
28 | 27 | "src/exts_internal" |
29 | 28 | "src/apps" |
30 | 29 | "src/apps_private" |
31 | | - "src/apps_internal"] |
| 30 | + "src/apps_internal" |
| 31 | + "scripts"] |
| 32 | + :test-paths ["test"] |
32 | 33 |
|
33 | 34 | :jar-exclusions [#"readme\.md"] |
34 | 35 |
|
35 | | - :test-paths ["test"] |
36 | | - |
37 | 36 | :cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413 |
38 | 37 |
|
39 | | - :profiles {:dev-ext {:cljsbuild {:builds {:dev |
| 38 | + :profiles {:nuke-aliases {:aliases ^:replace {}} |
| 39 | + |
| 40 | + :lib ^{:pom-scope :provided} ; ! to overcome default jar/pom behaviour, our :dependencies replacement would be ignored for some reason |
| 41 | + [:nuke-aliases |
| 42 | + {:dependencies ~(let [project (->> "project.clj" |
| 43 | + slurp read-string (drop 3) (apply hash-map)) |
| 44 | + test-dep? #(->> % (drop 2) (apply hash-map) :scope (= "test")) |
| 45 | + non-test-deps (remove test-dep? (:dependencies project))] |
| 46 | + (with-meta (vec non-test-deps) {:replace true})) ; so ugly! |
| 47 | + :source-paths ^:replace ["src/lib" |
| 48 | + "src/exts" |
| 49 | + "src/exts_private" |
| 50 | + "src/exts_internal" |
| 51 | + "src/apps" |
| 52 | + "src/apps_private" |
| 53 | + "src/apps_internal"] |
| 54 | + :resource-paths ^:replace [] |
| 55 | + :test-paths ^:replace []}] |
| 56 | + |
| 57 | + :dev-ext {:cljsbuild {:builds {:dev |
40 | 58 | {:source-paths ["src/lib" |
41 | 59 | "src/exts" |
42 | 60 | "src/exts_private" |
|
88 | 106 | "test-all" ["do" |
89 | 107 | ["test"] |
90 | 108 | ["test-advanced"]] |
| 109 | + "install" ["do" |
| 110 | + ["shell" "scripts/prepare-jar.sh"] |
| 111 | + ["shell" "scripts/local-install.sh"]] |
| 112 | + "jar" ["shell" "scripts/prepare-jar.sh"] |
91 | 113 | "release" ["do" |
92 | 114 | ["clean"] |
93 | | - ["test-all"] |
94 | | - ["jar"] |
| 115 | + ["shell" "scripts/check-versions.sh"] |
| 116 | + ["shell" "scripts/prepare-jar.sh"] |
95 | 117 | ["shell" "scripts/check-release.sh"] |
96 | | - ["deploy" "clojars"]]}) |
| 118 | + ["shell" "scripts/deploy-clojars.sh"]] |
| 119 | + "deploy" ["shell" "scripts/deploy-clojars.sh"]}) |
0 commit comments