/
project.clj
70 lines (61 loc) · 3.39 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
(defproject e03 "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.229"]
[devcards "0.2.3"]
[sablono "0.7.4"]
;; need to specify this for sablono
;; when not using devcards
[cljsjs/react "15.3.1-0"]
[cljsjs/react-dom "15.3.1-0"]
#_[org.omcljs/om "1.0.0-alpha46"]
#_[reagent "0.6.0"]
]
:plugins [[lein-figwheel "0.5.9"]
[lein-cljsbuild "1.1.5" :exclusions [org.clojure/clojure]]]
:clean-targets ^{:protect false} ["resources/public/js/compiled"
"target"]
:source-paths ["src"]
:cljsbuild {
:builds [{:id "devcards"
:source-paths ["src"]
:figwheel { :devcards true ;; <- note this
;; :open-urls will pop open your application
;; in the default browser once Figwheel has
;; started and complied your application.
;; Comment this out once it no longer serves you.
:open-urls ["http://localhost:3449/cards.html"]}
:compiler { :main "e03.core"
:asset-path "js/compiled/devcards_out"
:output-to "resources/public/js/compiled/e03_devcards.js"
:output-dir "resources/public/js/compiled/devcards_out"
:source-map-timestamp true }}
{:id "dev"
:source-paths ["src"]
:figwheel true
:compiler {:main "e03.core"
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/e03.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true }}
{:id "prod"
:source-paths ["src"]
:compiler {:main "e03.core"
:asset-path "js/compiled/out"
:output-to "resources/public/js/compiled/e03.js"
:optimizations :advanced}}]}
:figwheel { :css-dirs ["resources/public/css"] }
:profiles {:dev {:dependencies [[binaryage/devtools "0.9.2"]
[figwheel-sidecar "0.5.9"]
[com.cemerick/piggieback "0.2.1"]]
;; need to add dev source path here to get user.clj loaded
:source-paths ["src" "dev"]
;; for CIDER
;; :plugins [[cider/cider-nrepl "0.12.0"]]
:repl-options {; for nREPL dev you really need to limit output
:init (set! *print-length* 50)
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}})