-
Notifications
You must be signed in to change notification settings - Fork 36
/
project.clj
98 lines (96 loc) · 4.33 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
(def cljsbuild
'[lein-cljsbuild "1.1.2" :exclusions [org.clojure/clojurescript]])
(def server-deps
'[[javax.servlet/servlet-api "2.5"]
[compojure "1.4.0"]
[http-kit "2.1.19"]
[hiccup "1.0.5"]])
(defproject racehub/om-bootstrap "0.6.1-SNAPSHOT"
:description "Bootstrap meets Om."
:url "http://github.com/racehub/om-bootstrap"
:license {:name "MIT License"
:url "http://www.opensource.org/licenses/mit-license.php"
:distribution :repo}
:scm {:name "git"
:url "https://github.com/racehub/om-bootstrap"}
:min-lein-version "2.3.0"
:uberjar-name "om-bootstrap.jar"
:jar-exclusions [#".DS_Store"]
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/core.async "0.2.374"]
[prismatic/om-tools "0.3.11" :exclusions [om]]
[prismatic/schema "0.4.0"
:exclusions [org.clojure/clojurescript]]
[org.omcljs/om "0.8.8" :scope "provided"]]
:profiles {:provided
{:dependencies [[org.clojure/clojurescript "1.7.228"]
[secretary "1.2.3"]]}
;; Change to the first version of the uberjar profile
;; when this bug gets fixed:
;; https://github.com/technomancy/leiningen/issues/1694
;; :uberjar [:docs {}]
:uberjar {:aot :all
:omit-source true
:main om-bootstrap.server
:plugins [~cljsbuild]
:prep-tasks ^:replace [["clean"]
["cljsbuild" "once" "heroku"]
["javac"]
["compile" ":all"]]
:dependencies ~server-deps
:source-paths ["docs/src/clj"]
:resource-paths ["dev"]}
:docs {:aot :all
:omit-source true
:main om-bootstrap.server
:plugins [~cljsbuild]
:prep-tasks ^:replace [["clean"]
["cljsbuild" "once" "heroku"]
["javac"]
["compile" ":all"]]
:dependencies ~server-deps
:source-paths ["docs/src/clj"]
:resource-paths ["dev"]}
:dev {:plugins [~cljsbuild
[com.cemerick/clojurescript.test "0.3.1"]
[paddleguru/lein-gitflow "0.1.2"]
[lein-figwheel "0.5.0-6"]]
:dependencies ~server-deps
:source-paths ["docs/src/clj" "docs/src-dev"]
:resource-paths ["dev"]
:main om-bootstrap.server}}
:aliases {"test" ["cljsbuild" "test"]
;; We'll change this for the next new alpha that comes out.
;; "test-8" ["do" "clean," "cljsbuild" "clean," "with-profile" "+om-8" "cljsbuild" "test"]
"repl" ["do" "cljsbuild" "once" "docs," "repl"]}
:cljsbuild
{:test-commands {"unit"
["phantomjs" :runner
"test/vendor/es5-shim.js"
"test/vendor/es5-sham.js"
"test/vendor/console-polyfill.js"
"this.literal_js_was_evaluated=true"
"target/om_bootstrap.js"]}
:builds
{:docs
{:source-paths ["src" "docs/src/cljs" "docs/src/clj"]
:figwheel true
:compiler {:output-to "dev/public/assets/main.js"
:output-dir "dev/public/generated"
:optimizations :none
:source-maps true}}
:heroku
{:source-paths ["src" "docs/src/cljs" "docs/src/clj"]
:compiler {:output-to "dev/public/assets/generated/om_bootstrap.js"
:output-dir "dev/public/assets/generated"
:externs ["externs/highlight.js"]
:optimizations :advanced
:pretty-print false
:source-map "dev/public/assets/generated/om_bootstrap.js.map"}}
:test
{:source-paths ["src" "test"]
:compiler {:output-to "target/om_bootstrap.js"
:optimizations :whitespace
:pretty-print true}}}}
:lein-release {:deploy-via :shell
:shell ["lein" "deploy" "clojars"]})