-
-
Notifications
You must be signed in to change notification settings - Fork 180
/
build.clj
26 lines (22 loc) · 807 Bytes
/
build.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
(ns build
(:require
[shadow.css.build :as cb]
[clojure.java.io :as io]))
(defn css-release []
(let [build-state
(-> (cb/start)
(cb/index-path (io/file "src" "main") {})
(cb/generate
'{:ui
{:entries [shadow.cljs.ui.main
;; FIXME: since this is lazy-loaded shadow.css doesn't find it on its own
shadow.cljs.ui.components.code-editor]}})
(cb/minify)
(cb/write-outputs-to (io/file "src" "ui-release" "shadow" "cljs" "ui" "dist" "css")))]
(doseq [mod (:outputs build-state)
{:keys [warning-type] :as warning} (:warnings mod)]
(prn [:CSS (name warning-type) (dissoc warning :warning-type)]))
))
(comment
(time
(css-release)))