forked from bhauman/lein-figwheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
92 lines (83 loc) · 4.24 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
(defproject figwheel-example "0.2.2-SNAPSHOT"
:description "Just an example of using the lein-figwheel plugin"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/clojurescript "0.0-3058"]
[org.clojure/core.async "0.1.346.0-17112a-alpha"]
[sablono "0.3.4"]
[org.omcljs/om "0.8.8"]
[ankha "0.1.4"]
[figwheel "0.2.7-SNAPSHOT"]
[datascript "0.9.0"]
[cljs-http "0.1.26"]
;; for development purposes
[figwheel-sidecar "0.2.7-SNAPSHOT"]]
:plugins [[lein-ring "0.8.13"]
[lein-cljsbuild "1.0.5"]
[lein-figwheel "0.2.7-SNAPSHOT"]
[lein-npm "0.4.0"]]
:node-dependencies [[source-map-support "0.2.8"]
[express "4.10.7"]
[serve-static "1.9.1"]
[body-parser "1.12.0"]
[type-is "1.6.0"]
[ws "0.7.1"]]
;; this is used for testing an external server
:ring { :handler example.server/static-server }
:source-paths ["src"]
;; :repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:clean-targets ^{:protect false} ["resources/public/js/out"
"resources/public/js/example.js"
"server_out"
"server_out/todo_server.js"]
:resource-paths ["resources" "other_resources"]
:cljsbuild {
:builds [{ :id "example"
:source-paths ["src" "dev" "tests" "../support/src"]
:compiler {:main example.dev
:asset-path "js/out"
:output-to "resources/public/js/example.js"
:output-dir "resources/public/js/out"
:source-map true
:source-map-timestamp true
;; :recompile-dependents true
:cache-analysis true
:optimizations :none}}
{:id "server"
:source-paths ["server_src"]
:compiler {
:output-to "server_out/todo_server.js"
:output-dir "server_out"
:target :nodejs
:optimizations :none
:cache-analysis true
:source-map true}}
{ :id "example-admin"
:source-paths ["other_src" ]
:compiler { :output-to "resources/public/js/compiled/example_admin.js"
:output-dir "resources/public/js/compiled/admin"
:source-map true
:optimizations :none
}}
{ :id "example-admin-prod"
:source-paths ["other_src" ]
:compiler { :output-to "resources/public/js/prod/example_admin.js"
:output-dir "resources/public/js/prod/admin"
:optimizations :whitespace
}}]}
:figwheel {
:http-server-root "public" ;; default and assumes "resources"
:server-port 3449 ;; default
:css-dirs ["resources/public/css"]
:open-file-command "emacsclient"
;; Start an nREPL server into the running fighweel process
:nrepl-port 7888
;; to disable to launched repl
;; :repl false
;; to specify a server logfile
;; :server-logfile "tmp/logs/test-server-logfile.log"
;; if you want to embed a server in figwheel do it like so:
;; :ring-handler example.server/handler
})