-
Notifications
You must be signed in to change notification settings - Fork 7
/
project.clj
58 lines (57 loc) · 2.37 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
(defproject hello-electron "0.1.0-SNAPSHOT"
:license {:name "The MIT License"
:url "https://opensource.org/licenses/MIT"}
:source-paths ["src"]
:description "A hello world application for electron"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.10.312"]
[figwheel "0.5.17"]
[reagent "0.8.1"]
[ring/ring-core "1.6.1"]]
:plugins [[lein-cljsbuild "1.1.5"]
[lein-figwheel "0.5.17"]
[lein-cooper "1.2.2"]]
: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"
:output-dir "resources/public/js/electron-dev"
:optimizations :simple
:pretty-print true
:cache-analysis true}}
{:source-paths ["ui_src" "dev_src"]
:id "frontend-dev"
:figwheel {:heads-up-display false}
: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"
:output-dir "resources/public/js/electron-release"
:optimizations :advanced
:pretty-print true
:cache-analysis true
:infer-externs 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 :advanced
:cache-analysis true
:infer-externs true
:main "ui.core"}}]}
:figwheel {:http-server-root "public"
:css-dirs ["resources/public/css"]
:ring-handler tools.figwheel-middleware/app
:server-port 3449})