From 3d574dcfb26bda2adf0cd7e0aa093b6b3761e8a9 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Fri, 25 Aug 2023 18:58:43 +0800 Subject: [PATCH] [chore] add build script --- project.clj | 6 +++--- script/release.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 script/release.sh diff --git a/project.clj b/project.clj index b39aa1e..92cb3cc 100644 --- a/project.clj +++ b/project.clj @@ -4,8 +4,7 @@ :url "http://example.com/FIXME" :license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0" :url "https://www.eclipse.org/legal/epl-2.0/"} - :dependencies [ - [org.clojure/clojure "1.11.1"] + :dependencies [[org.clojure/clojure "1.11.1"] [org.clojure/clojurescript "1.11.60"] [thheller/shadow-cljs "2.25.2"] [com.google.javascript/closure-compiler-unshaded "v20230802"] @@ -36,4 +35,5 @@ [org.jsoup/jsoup "1.16.1"] [cheshire "5.11.0"]] - :aot :all}}) + :resource-paths ["public/"] + :aot :all}}) diff --git a/script/release.sh b/script/release.sh new file mode 100644 index 0000000..1d08b17 --- /dev/null +++ b/script/release.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env sh + +npm run postcss:release +npm run shadow:release +cp -r public resources/public +rm -rf resources/public/js/cljs-runtime + +lein uberjar