-
Notifications
You must be signed in to change notification settings - Fork 5
/
profiles.clj
140 lines (121 loc) · 5.7 KB
/
profiles.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
134
135
136
137
138
139
140
{
;; Development dependencies
:dev
{:dependencies [[org.clojure/tools.namespace "0.2.11"]]
;; :plugins [[lein-ancient "0.6.7" :exclusions [org.clojure/tools.reader]]]
:env {:config "config.edn"}}
;; Common dependencies
:common
{:dependencies [[org.clojure/clojure "1.7.0"]
[funcool/cats "1.1.0-SNAPSHOT"]]}
;; Backend profile
:back
[:common
{:source-paths ["src/backend"]
:test-paths ["test/backend"]
:dependencies [[org.clojure/clojure "1.7.0" :scope "provided"]
[org.slf4j/slf4j-simple "1.7.12" :scope "provided"]
[com.stuartsierra/component "0.3.0"]
[funcool/promissum "0.3.1"]
[funcool/catacumba "0.8.0-SNAPSHOT"]
[jarohen/nomad "0.7.2" :exclusions [org.clojure/tools.reader]]
[danlentz/clj-uuid "0.1.6"]
[com.datomic/datomic-free "0.9.5302"
:exclusions [commons-codec joda-time]]
[environ "1.0.1"]
[aleph "0.4.0"]]}]
;; Frontend profile
:front
[:common
{:source-paths ["src/frontend"]
:test-paths ["test/frontend"]
:dependencies [[org.clojure/clojurescript "1.7.122"]
;; String
[funcool/cuerdas "0.5.0"]
;; Rendering
[rum "0.3.0"]
[cljsjs/react-with-addons "0.13.3-0"]
;; Compositional Event Streams
;;[funcool/tocino "0.1.0"]
;; Datetime
[cljsjs/moment "2.10.6-0"]
;; Routing
[bidi "1.21.0" :exclusions [clj-time ring/ring-core]]
;; Storage and Querying
[datascript "0.11.6"]
;; Persistence
[funcool/hodgepodge "0.1.4"]
;; Development
[ring "1.4.0"]]
:plugins [[lein-cljsbuild "1.1.0" :exclusions [org.clojure/clojure]]
[lein-figwheel "0.3.9" :exclusions [org.clojure/clojurescript
org.codehaus.plexus/plexus-utils]]
[hiccup-bridge "1.0.1" :exclusions [org.clojure/clojure]]]
:clean-targets ^{:protect false} ["resources/public/js/compiled" "target"]
:cljsbuild
{:builds [{:id "dev"
:source-paths ["src/frontend" "test/frontend"]
:figwheel { :on-jsload "uxbox.core/on-js-reload" }
:compiler {:main uxbox.core
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/uxbox.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true
:warnings {:single-segment-namespace false}
:externs ["externs/bacon.js"]
:foreign-libs [{:file "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.js"
:file-min "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.min.js"
:provides ["bacon"]}]}}
{:id "test"
:source-paths ["src" "test"]
:notify-command ["node" "out/tests.js"]
:compiler {:output-to "out/tests.js"
:output-dir "out"
:source-map true
:static-fns true
:cache-analysis false
:main uxbox.runner
:optimizations :none
:target :nodejs
:pretty-print true
:warnings {:single-segment-namespace false}
:externs ["externs/bacon.js"]
:foreign-libs [{:file "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.js"
:file-min "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.min.js"
:provides ["bacon"]}]}}
{:id "min"
:source-paths ["src"]
:compiler {:output-to "resources/public/js/compiled/uxbox.js"
:main uxbox.core
:optimizations :advanced
:pretty-print false
:warnings {:single-segment-namespace false}
:externs ["externs/bacon.js"]
:foreign-libs [{:file "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.js"
:file-min "http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.73/Bacon.min.js"
:provides ["bacon"]}]}}]}
:figwheel
{;; :http-server-root "public" ;; default and assumes "resources"
;; :server-port 3449 ;; default
:css-dirs ["resources/public/css"] ;; watch and update CSS
;; Start an nREPL server into the running figwheel process
:nrepl-port 7888
;; Server Ring Handler (optional)
;; if you want to embed a ring handler into the figwheel http-kit
;; server, this is for simple ring servers, if this
;; doesn't work for you just run your own server :)
:ring-handler uxbox.ring/index
;; To be able to open files in your editor from the heads up display
;; you will need to put a script on your path.
;; that script will have to take a file path and a line number
;; ie. in ~/bin/myfile-opener
;; #! /bin/sh
;; emacsclient -n +$2 $1
;;
;; :open-file-command "myfile-opener"
;; if you want to disable the REPL
;; :repl false
;; to configure a different figwheel logfile path
;; :server-logfile "tmp/logs/figwheel-logfile.log"
}}
]}