-
Notifications
You must be signed in to change notification settings - Fork 1
/
project.clj
54 lines (47 loc) · 2.49 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
(defproject gozar "0.1.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.9.0-alpha14"]
[org.clojure/clojurescript "1.9.542"]
[reagent "0.6.0"]
[re-frame "0.9.2"]
[re-frisk "0.3.2"]]
:plugins [[lein-cljsbuild "1.1.4"]
[lein-sassc "0.10.4"]]
:min-lein-version "2.5.3"
:source-paths ["src/clj" "src/cljc"]
:clean-targets ^{:protect false} ["resources/public/js/compiled"
"resources/public/css"
"target"]
;; PROFILES
:profiles {:dev {:dependencies [[binaryage/devtools "0.8.2"]
[figwheel-sidecar "0.5.8"]
[com.cemerick/piggieback "0.2.1"]
[org.clojure/test.check "0.9.0"]]
:plugins [[lein-figwheel "0.5.9"]]}}
;; DEV
:figwheel {:css-dirs ["resources/public/css"]}
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
;; TEST
:test-paths ["test/clj"]
:css-dirs ["resources/public/css"]
;; RESOURCES
:sassc [{:src "resources/sass/style.sass"
:output-to "resources/public/css/style.css"}]
;:style "compressed"}]
;; BUILDS
:cljsbuild {:builds [{:id "dev"
:source-paths ["src/cljs" "src/cljc"]
:figwheel {:on-jsload "gozar.core/mount-root"}
:compiler {:main gozar.core
:output-to "resources/public/js/compiled/app.js"
:output-dir "resources/public/js/compiled/out"
:asset-path "js/compiled/out"
:source-map-timestamp true
:preloads [devtools.preload]
:external-config {:devtools/config {:features-to-install :all}}}}
{:id "min"
:source-paths ["src/cljs" "src/cljc"]
:compiler {:main gozar.core
:output-to "resources/public/js/compiled/app.js"
:optimizations :advanced
:closure-defines {goog.DEBUG false}
:pretty-print false}}]})