-
Notifications
You must be signed in to change notification settings - Fork 10
/
project.clj
134 lines (123 loc) · 7.42 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
134
(defproject navis/untangled-ui "1.0.0-alpha27"
:description "Untangled Components is a library of pre-built CSS and active components for use with Untangled and Om Next"
:url ""
:license {:name "MIT"
:url "https://opensource.org/licenses/MIT"}
:dependencies [[clojurewerkz/money "1.9.0"]
;[ru.yandex.qatools.ashot/ashot "1.5.2" :scope "test"]
;[org.seleniumhq.selenium/selenium-java "3.0.1" :scope "test"]
;[org.seleniumhq.selenium/htmlunit-driver "2.24" :scope "test"]
;[clj-webdriver "0.7.2" :scope "test"]
[image-resizer "0.1.9"]
[lein-doo "0.1.7" :scope "test"]
[org.clojure/clojure "1.9.0-alpha14" :scope "provided"]
[org.clojure/clojurescript "1.9.473" :scope "provided"]
[org.omcljs/om "1.0.0-alpha48" :scope "provided"]
[navis/untangled-client "0.8.2-SNAPSHOT" :scope "provided"]
[navis/untangled-server "0.7.0-SNAPSHOT" :scope "provided"]
[navis/untangled-spec "0.3.9" :scope "test"
:exclusions [ring/ring-core commons-fileupload prismatic/schema bidi]]
[com.taoensso/timbre "4.7.4" :exclusions [io.aviso/pretty]]]
:plugins [[com.jakemccrary/lein-test-refresh "0.17.0"]
[lein-cljsbuild "1.1.5"]
[lein-shell "0.5.0"]
[lein-doo "0.1.7"]]
:source-paths ["src/main"]
:test-paths ["src/test"]
:jar-exclusions [#".DS_Store" #"public/js" #"private"]
:jvm-opts ["-XX:-OmitStackTraceInFastThrow"]
:clean-targets ^{:protect false} ["resources/public/js" "target" "resources/private/js"]
:test-refresh {:report untangled-spec.reporters.terminal/untangled-report
:with-repl true}
:aliases {"jar" ["with-profile" "release" "jar"]}
:doo {:build "automated-tests"
:paths {:karma "node_modules/karma/bin/karma"}}
:cljsbuild {:builds
[{:id "guide"
:source-paths ["src/main" "src/guide"]
:figwheel {:devcards true}
:compiler {:main untangled.ui.guide-ui
:asset-path "js/guide"
:output-to "resources/public/js/guide.js"
:output-dir "resources/public/js/guide"
:preloads [devtools.preload]
:parallel-build true
:optimizations :none}}
{:id "production-guide"
:source-paths ["src/main" "src/guide"]
:compiler {:devcards true
:main untangled.ui.start-ui
:asset-path "js/pg-js"
:output-dir "resources/public/js/pg-js"
:output-to "resources/public/js/guide.min.js"
:optimizations :advanced}}
{:id "production-visuals"
:source-paths ["src/main" "src/visuals"]
:compiler {:devcards true
:main untangled.ui.start-ui
:asset-path "js/pv-js"
:output-dir "resources/public/js/pv-js"
:output-to "resources/public/js/visuals.min.js"
:optimizations :advanced}}
{:id "visuals"
:source-paths ["src/main" "src/visuals"]
:figwheel {:devcards true}
:compiler {:main untangled.ui.visuals-ui
:asset-path "js/visuals"
:output-to "resources/public/js/visuals.js"
:output-dir "resources/public/js/visuals"
:preloads [devtools.preload]
:optimizations :none}}
{:id "test"
:source-paths ["src/test" "src/main"]
:figwheel {:on-jsload "cljs.test-dev/on-load"}
:compiler {:main cljs.test-dev
:output-to "resources/public/js/specs.js"
:output-dir "resources/public/js/specs"
:preloads [devtools.preload]
:asset-path "js/specs"}}
{:id "production-css"
:source-paths ["src/main" "src/css-guide"]
:compiler {:asset-path "js/pcss"
:optimizations :advanced
:main guideui.main
:output-dir "resources/public/js/pcss"
:output-to "resources/public/js/css-guide.min.js"}}
{:id "css-guide"
:figwheel true
:source-paths ["dev" "src/main" "src/css-guide"]
:compiler {:asset-path "js/css-guide"
:optimizations :none
:recompile-dependents true
:main guideui.main
:output-dir "resources/public/js/css-guide"
:output-to "resources/public/js/css-guide.js"
:preloads [devtools.preload]
:source-map-timestamp true}}
{:id "automated-tests"
:source-paths ["src/test" "src/main"]
:compiler {:output-to "resources/private/js/unit-tests.js"
:output-dir "resources/private/js/unit-tests"
:main untangled.ui.all-tests
:asset-path "js/unit-tests"
:optimizations :none}}]}
:figwheel {:server-port 8001
:css-dirs ["resources/public/css"]}
:deploy-repositories [["snapshots" :clojars]]
; TODO: On figwheel startup, run the gulp shell command if the CSS files are missing
; TODO: JAR generation: Make sure to do a prep-task to build the CSS, then include it in the jar.
:profiles {:release {:prep-tasks [["shell" "gulp"]]
:jar-exclusions [#"public/img/.*" #"test/.*" #"favicon.ico" #".*html$"]}
:dev {:dependencies [[binaryage/devtools "0.9.0"]
[criterium "0.4.3"]
[figwheel-sidecar "0.5.9" :exclusions [http-kit]]
[com.cemerick/piggieback "0.2.1"]
[org.clojure/tools.namespace "0.2.11"]
[org.clojure/tools.nrepl "0.2.12"]
[hickory "0.7.0"]
[devcards "0.2.2" :exclusions [org.omcljs/om]]]
:source-paths ["dev" "src/guide" "src/css-guide"]
:repl-options {:init-ns clj.user
:init (use 'clj.user :reload)
:nrepl-middleware [cemerick.piggieback/wrap-cljs-repl]
:port 7001}}})