-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
77 lines (65 loc) · 4.41 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
(defproject binaryage/oops-sample "0.1.0-SNAPSHOT"
:description "An example integration of cljs-oops"
:url "https://github.com/binaryage/cljs-oops-sample"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.229"]
[clojure-future-spec "1.9.0-alpha11" :scope "provided"]
[org.clojure/core.async "0.2.385"]
[binaryage/oops "0.1.0-SNAPSHOT"]
[binaryage/devtools "0.8.1"]
[com.cognitect/transit-clj "0.8.288"]
[cljs-http "0.1.41"]
[environ "1.1.0"]
[figwheel "0.5.6"]]
:plugins [[lein-cljsbuild "1.1.3"]
[lein-figwheel "0.5.6"]
[lein-shell "0.5.0"]
[lein-environ "1.1.0"]]
; =========================================================================================================================
:source-paths ["src/demo"]
:clean-targets ^{:protect false} ["resources/public/_compiled"
"target"]
:checkout-deps-shares ^:replace [] ; http://jakemccrary.com/blog/2015/03/24/advanced-leiningen-checkouts-configuring-what-ends-up-on-your-classpath/
; =========================================================================================================================
:cljsbuild {:builds {}} ; prevent https://github.com/emezeske/lein-cljsbuild/issues/413
:profiles {; --------------------------------------------------------------------------------------------------------------
:demo
{:cljsbuild {:builds {:demo
{:source-paths ["src/demo"]
:compiler {:output-to "resources/public/_compiled/demo/main.js"
:output-dir "resources/public/_compiled/demo"
:asset-path "_compiled/demo"
:main oops.demo.main
:external-config {:devtools/config {:features-to-install :all}
:oops/config {:runtime-error-reporting-mode :console
:runtime-warning-reporting-mode :console}}
:preloads [devtools.preload]
:optimizations :none}}}}}
; --------------------------------------------------------------------------------------------------------------
:checkouts
{:checkout-deps-shares ^:replace [:source-paths
:test-paths
:resource-paths
:compile-path
#=(eval leiningen.core.classpath/checkout-deps-paths)]
:cljsbuild {:builds {:demo
{:source-paths ["checkouts/cljs-devtools/src/lib"
"checkouts/cljs-oops/src/lib"]}}}}
; --------------------------------------------------------------------------------------------------------------
:figwheel
{:figwheel {:server-port 7330
:server-logfile ".figwheel/server.log"}
:cljsbuild {:builds {:demo
{:figwheel true}}}}}
; =========================================================================================================================
:aliases {"demo" ["with-profile" "+demo,+figwheel"
"figwheel"]
"dev-demo" ["with-profile" "+demo,+figwheel,+checkouts"
"figwheel"]
"cljs" ["with-profile" "+demo"
"cljsbuild" "auto"]
"present" ["with-profile" "+demo"
"do"
"clean,"
"cljsbuild" "once,"
"shell" "scripts/dev-server.sh"]})