-
Notifications
You must be signed in to change notification settings - Fork 2
/
bb.edn
27 lines (25 loc) · 990 Bytes
/
bb.edn
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
{
:min-bb-version "0.3.6"
:tasks
{
:init (do
;;"npx shadow-cljs "
(defn run-shadow [args] (shell (str "pnpm exec shadow-cljs " args)))
;;"npm run "
(defn run-srcpt [args] (shell (str "pnpm run " args)))
;;"npx "
(defn run-dlx [args] (shell (str "pnpm dlx " args))))
watch {:task (run-shadow "watch app")}
compile {:task (run-shadow "compile app")}
release {:task (run-shadow "release app")}
;;updates
update-npm {:task (run-dlx "npm-check-updates -u")}
update-deps {:task (shell "clojure -Moutdated --upgrade")}
;;tailwind
purgecss {:task (run-srcpt "tw")}
;;shadow report
buildreport {:task (let [date (java.time.LocalDateTime/now)
formatter (java.time.format.DateTimeFormatter/ofPattern "yyyy-MM-dd")
file (str "buildreport_" (.format date formatter) ".html")]
(run-shadow (str "run shadow.cljs.build-report app " file)))}
,}}