Kit framework with Undertow, Reitit routing, Hiccup + HTMX templating, Tailwind CSS v4, PostgreSQL (empty database), and mobile-first index page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
816 B
Clojure
29 lines
816 B
Clojure
(ns build
|
|
(:require [clojure.tools.build.api :as b]))
|
|
|
|
(def lib 'pmagnus/btcprice)
|
|
(def version "0.0.1-SNAPSHOT")
|
|
(def target-dir "target")
|
|
(def class-dir (str target-dir "/classes"))
|
|
|
|
(def basis (delay (b/create-basis {:project "deps.edn"})))
|
|
(def uber-file (str target-dir "/btcprice-standalone.jar"))
|
|
|
|
(defn clean [_]
|
|
(b/delete {:path target-dir}))
|
|
|
|
(defn uber [_]
|
|
(clean nil)
|
|
(b/copy-dir {:src-dirs ["src/clj" "resources" "env/prod/resources" "env/prod/clj"]
|
|
:target-dir class-dir})
|
|
(b/compile-clj {:basis @basis
|
|
:ns-compile '[pmagnus.btcprice.core]
|
|
:class-dir class-dir})
|
|
(b/uber {:class-dir class-dir
|
|
:uber-file uber-file
|
|
:basis @basis
|
|
:main 'pmagnus.btcprice.core}))
|
|
|
|
(defn all [_]
|
|
(uber nil))
|