-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.clj
54 lines (53 loc) · 2.17 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 hello-electron "0.1.0-SNAPSHOT"
:source-paths ["src"]
:description "A hello world application for electron"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.8.40"]
[figwheel "0.5.2"]
[reagent "0.5.1"]
[ring/ring-core "1.4.0"]
[io.nervous/fink-nottle "0.4.6"]
[re-com "0.8.3"]
[cljs-bach "0.2.0"]]
:plugins [[lein-cljsbuild "1.1.1"]
[lein-figwheel "0.5.2"]]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
:init-ns user}
:clean-targets ^{:protect false} ["resources/main.js"
"resources/public/js/ui-core.js"
"resources/public/js/ui-core.js.map"
"resources/public/js/ui-out"]
:cljsbuild
{:builds
[{:source-paths ["electron_src"]
:id "electron-dev"
:compiler {:output-to "resources/main.js"
:optimizations :simple
:pretty-print true
:cache-analysis true}}
{:source-paths ["ui_src" "dev_src"]
:id "frontend-dev"
:compiler {:output-to "resources/public/js/ui-core.js"
:output-dir "resources/public/js/ui-out"
:source-map true
:asset-path "js/ui-out"
:optimizations :none
:cache-analysis true
:main "dev.core"}}
{:source-paths ["electron_src"]
:id "electron-release"
:compiler {:output-to "resources/main.js"
:optimizations :simple
:pretty-print true
:cache-analysis true}}
{:source-paths ["ui_src"]
:id "frontend-release"
:compiler {:output-to "resources/public/js/ui-core.js"
:output-dir "resources/public/js/ui-release-out"
:source-map "resources/public/js/ui-core.js.map"
:optimizations :simple
:cache-analysis true
:main "ui.core"}}]}
:figwheel {:http-server-root "public"
:ring-handler tools.figwheel-middleware/app
:server-port 3449})