-
Notifications
You must be signed in to change notification settings - Fork 4
/
project.clj
133 lines (119 loc) · 6.82 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
(defproject tomaat "1.3.0"
:description "Pomodoro electron app written in ClojureScript"
:url "http://github.com/brianium/tomaat"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:min-lein-version "2.7.1"
:dependencies [[org.clojure/clojure "1.9.0-alpha17"]
[org.clojure/clojurescript "1.9.908"]
[org.clojure/core.async "0.3.443"]
[cljsjs/nodejs-externs "1.0.4-1"]
[cljs-http "0.1.44"]
[reagent "0.8.0-alpha2"]]
:plugins [[lein-cljsbuild "1.1.7" :exclusions [[org.clojure/clojure]]]
[lein-shell "0.5.0"]
[lein-figwheel "0.5.14"]]
:source-paths ["src"]
:cljsbuild {:builds
[{:id "main-dev"
:source-paths ["src/tomaat"]
:figwheel {:on-jsload "tomaat.main.core/reload"}
:compiler {:main tomaat.main.core
:output-to "resources/main.js"
:output-dir "resources/public/js/main-out"
:optimizations :none
:install-deps true
:target :nodejs
:parallel-build true
:source-map true
:npm-deps {:electron "1.8.1"
:ws "3.3.1"}}}
{:id "main"
:source-paths ["src/tomaat"]
:compiler {:main tomaat.main.core
:optimizations :simple
:output-to "resources/main.js"
:output-dir "resources/public/js/main/out"
:install-deps true
:target :nodejs
:parallel-build true
:process-shim true
:pretty-print false
:npm-deps {:electron "1.8.1"}}}
{:id "ui-dev"
:source-paths ["src/tomaat"]
:figwheel true
:compiler {:main tomaat.ui.core
:output-to "resources/public/js/ui.js"
:output-dir "resources/public/js/ui-out"
:optimizations :none
:install-deps true
:hashbang false
:target :nodejs
:parallel-build true
:source-map true
:npm-deps {:electron "1.8.1"
:react "15.6.2"
:react-dom "15.6.2"
:electron-default-menu "1.0.1"
:create-react-class "15.6.2"}}}
{:id "ui"
:source-paths ["src/tomaat"]
:compiler {:main tomaat.ui.core
:optimizations :simple
:output-to "resources/public/js/ui.js"
:output-dir "resources/public/js/ui/out"
:install-deps true
:target :nodejs
:hashbang false
:parallel-build true
:process-shim true
:pretty-print false
:npm-deps {:electron "1.8.1"
:react "15.6.2"
:react-dom "15.6.2"
:electron-default-menu "1.0.1"
:create-react-class "15.6.2"}}}
{:id "worker-dev"
:source-paths ["src/tomaat"]
:figwheel true
:compiler {:main tomaat.worker.core
:output-to "resources/public/js/worker.js"
:output-dir "resources/public/js/worker-out"
:optimizations :none
:install-deps true
:hashbang false
:target :nodejs
:parallel-build true
:npm-deps {:electron "1.8.1"}}}
{:id "worker"
:source-paths ["src/tomaat"]
:compiler {:main tomaat.worker.core
:optimizations :simple
:output-to "resources/public/js/worker.js"
:output-dir "resources/public/js/worker/out"
:install-deps true
:hashbang false
:process-shim true
:target :nodejs
:parallel-build true
:npm-deps {:electron "1.8.1"}}}]}
:aliases {"electron" ["shell" "node_modules/.bin/electron" "resources/main.js"]
"build" ["do" "clean" ["cljsbuild" "once" "worker" "main" "ui"]]
"start" ["do" "clean" ["figwheel" "main-dev" "worker-dev" "ui-dev"]]}
:figwheel {:css-dirs ["resources/public/css"]
:nrepl-port 7888
:nrepl-middleware ["cider.nrepl/cider-middleware"
"cemerick.piggieback/wrap-cljs-repl"]}
;; Setting up nREPL for Figwheel and ClojureScript dev
;; Please see:
;; https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
:profiles {:dev {:dependencies [[figwheel-sidecar "0.5.13"]
[com.cemerick/piggieback "0.2.2"]]
;; need to add dev source path here to get user.clj loaded
:source-paths ["src/tomaat" "dev"]
:plugins [[cider/cider-nrepl "0.15.1-SNAPSHOT"]]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}
:clean-targets ^{:protect false} ["resources/main.js"
"resources/public/js"
:target-path]}})