Skip to content

Commit e4fe361

Browse files
committed
Enable local-caching for uberjar builds
1 parent c0dc13b commit e4fe361

File tree

14 files changed

+957
-879
lines changed

14 files changed

+957
-879
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ madek-media-service_aot.jar
1010
node_modules/
1111
pom.xml
1212
resources/build-timestamp.txt
13+
resources/commit-id.txt
1314
resources/media-service/public/js/
1415
tmp/
1516
tmux-client*.log

bin/clean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
22
set -euxo
3-
rm -rf madek-media-service
43
rm -rf resources/media-service/public/js/
54
rm -f resources/build-timestamp.txt
5+
rm -f resources/build-timestamp.txt
6+
rm -f resources/deps.svg

bin/clj-deps-graph

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22
set -euxo
3-
clj -A:graph --output-format svg "$@"
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
6+
clojure -A:graph --output-format svg "$@"

bin/clj-outdated-show

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22
set -euxo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
clojure -Aoutdated -a outdated

bin/clj-outdated-update

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
22
set -euxo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
clojure -Aoutdated -a outdated --update
47
$(dirname "$0")/clj-deps-graph

bin/clj-repl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22
set -euxo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
rlwrap clj -R:nREPL -m nrepl.cmdline -i "$@"

bin/clj-run

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
clj -m madek.media-service.main "$@"

bin/clj-test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
#!/usr/bin/env bash
22
set -euo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
clj -A:test

bin/clj-uberjar

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
22
set -euxo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
clojure -Spom
47
clojure -A:depstar:resources -m hf.depstar.uberjar madek-media-service.jar -C -m madek.media-service.main

bin/cljs-build-app

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/usr/bin/env bash
22
set -euxo
3+
PROJECT_DIR="$(cd -- "$(dirname "${BASH_SOURCE}")" ; cd .. > /dev/null 2>&1 && pwd -P)"
4+
cd $PROJECT_DIR
5+
source $PROJECT_DIR/clojure/bin/activate
36
rm -rf resources/media-service/public/js/
47
npx shadow-cljs compile app

0 commit comments

Comments
 (0)