-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.clj
26 lines (25 loc) · 949 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 dev.build
(:require
[shadow.css.build :as cb]
[clojure.java.io :as io]))
(defn css-release
[& args]
(let [build-state
(-> (cb/start)
(cb/index-path
;; /home/benj/repos/faster-than-light-memes/src/ftlmemes/page/pages
(io/file "src" "ftlmemes" "page" "pages")
{})
(cb/generate
'{:ui {:entries
[ftlmemes.page.pages.documentaries
ftlmemes.page.ui.ui
ftlmemes.page.pages.pareidolia]}})
(cb/minify)
(cb/write-outputs-to (io/file "public"
"css")))]
(doseq [mod (:outputs build-state)
{:as warning :keys [warning-type]} (:warnings
mod)]
(prn [:CSS (name warning-type)
(dissoc warning :warning-type)]))))