-
Notifications
You must be signed in to change notification settings - Fork 2
/
project.clj
124 lines (112 loc) · 5.85 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
(defproject witan.ui "0.1.0-SNAPSHOT"
:description "FIXME: write this!"
:url "http://example.com/FIXME"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:min-lein-version "2.5.3"
:dependencies [[org.clojure/clojure "1.8.0"]
[org.clojure/core.async "0.2.385" :exclusions [org.clojure/tools.reader]]
[org.clojure/clojurescript "1.9.36" :scope "provided"]
[devcards "0.2.1-6"]
[sablono "0.6.2"]
[reagent "0.6.0-rc"]
[cljs-log "0.2.2"]
[com.fasterxml.jackson.core/jackson-core "2.6.6"]
[jarohen/chord "0.7.0" :exclusions [com.fasterxml.jackson.core/jackson-core]]
[com.andrewmcveigh/cljs-time "0.4.0"]
[bidi "2.0.0"]
[venantius/accountant "0.1.7"]
[environ "1.0.2"]
[cljs-ajax "0.7.2"]
[inflections "0.12.2"]
[prismatic/schema "1.1.2"]
[com.cognitect/transit-cljs "0.8.239"]
[com.cemerick/url "0.1.1"]
[automat "0.2.2"]
;;
[cljsjs/dialog-polyfill "0.4.3-0"]
[cljsjs/moment "2.10.6-4"]
[cljsjs/mustache "1.1.0-0"]
[cljsjs/filesaverjs "1.1.20151003-0"]
[cljsjs/clipboard "1.5.9-0"]
[cljsjs/toastr "2.1.2-0"]
[cljsjs/pikaday "1.5.1-2"]
[cljsjs/parinfer "2.0.0-0"]]
:plugins [[lein-figwheel "0.5.4-3" :exclusions [org.clojure/tools.reader]]
[lein-cljsbuild "1.1.2" :exclusions [org.clojure/clojure]]
[lein-garden "0.2.6"]
[lein-doo "0.1.7"]]
:profiles {:uberjar {:auto-clean false}
:data {:source-paths ["data-src"]
:dependencies [[amazonica "0.3.73" :exclusions [com.fasterxml.jackson.core/jackson-core]]]}
:dev {:dependencies [[com.cemerick/piggieback "0.2.1"]
[org.clojure/tools.nrepl "0.2.12"]
[ring/ring-defaults "0.1.5"]
[compojure "1.4.0"]
[figwheel "0.5.4-3"]
[figwheel-sidecar "0.5.4-3"]]
:source-paths ["dev-src"]
:repl-options {:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]}}}
:source-paths ["src/clj"]
:repl-options {:init-ns user}
:clean-targets ^{:protect false} ["resources/public/js/compiled"
"target"]
:cljsbuild {:builds
[{:id "dev"
:source-paths ["src/cljs"]
;; If no code is to be run, set :figwheel true for continued automagical reloading
:figwheel {:on-jsload "witan.ui.core/on-js-reload"}
:compiler {:main witan.ui.core
:asset-path "/js/compiled/out"
:output-to "resources/public/js/compiled/witan.ui.js"
:output-dir "resources/public/js/compiled/out"
:source-map-timestamp true
:warnings {:single-segment-namespace false}}}
{:id "devcards"
:source-paths ["src/cljs"]
:figwheel { :devcards true } ;; <- note this
:compiler {:main witan.ui.core
:asset-path "/js/compiled/devcards_out"
:output-to "resources/public/js/compiled/devcards_devcards.js"
:output-dir "resources/public/js/compiled/devcards_out"
:source-map-timestamp true }}
{:id "prod"
:source-paths ["src/cljs"]
:compiler {:output-to "resources/public/js/compiled/witan.ui.js"
:main witan.ui.core
:externs ["../js/externs.js"]
:optimizations :advanced
:pretty-print false
:closure-defines {goog.DEBUG false}
:warnings {:single-segment-namespace false}}}
{:id "test"
:source-paths ["src/cljs" "test/cljs"]
:compiler {:main witan.ui.runner
:output-to "resources/public/js/compiled/testable.js"
:warnings {:single-segment-namespace false}}}]}
:garden {:builds [{;; Optional name of the build:
:id "style"
;; Source paths where the stylesheet source code is
:source-paths ["src/styles"]
;; The var containing your stylesheet:
:stylesheet witan.ui.style/main
;; Compiler flags passed to `garden.core/css`:
:compiler {;; Where to save the file:
:output-to "resources/public/css/style.css"
:vendors [:moz :webkit :o :ms]
;; Compress the output?
:pretty-print? false}}]}
:figwheel {:css-dirs ["resources/public/css"] ;; watch and update CSS
:nrepl-port 7888
:ring-handler witan.ui.server/handler}
:jvm-opts ["-Xmx2g"]
:release-tasks [["change" "version"
"leiningen.release/bump-version" "release"]
["vcs" "commit"]
["vcs" "tag" "release-v"]
["change" "version" "leiningen.release/bump-version"]
["vcs" "commit"]
["vcs" "push"]]
:aliases {"upload-data" ["with-profile" "data" "run" "-m" "witan.ui.upload-data"]
"test" ["doo" "phantom" "test" "once"]
"test-auto" ["doo" "phantom" "test" "auto"]})