-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
44 lines (32 loc) · 1.01 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SNAPSHOT:=false
build-prod:
echo "Building app"
lein clean
lein fig:prod
scrape-data:
lein scrape --download-item-data=true --download-item-images=false
scrape-images:
lein scrape --download-item-data=false --download-item-images=true
scrape: scrape-data scrape-images
# Requires Babashka
patch-data:
./scripts/patch_items.clj
get-version:
./scripts/get_version.clj
bump-version:
echo "Editing changelog and bumping version, SNAPSHOT=${SNAPSHOT}"
lein bump-version "$$(cat CHANGELOG.md | vipe | cat)" CHANGELOG.md ${SNAPSHOT}
bump-snapshot-version:
make bump-version SNAPSHOT=true
template:
echo "Applying templates"
lein template
copy-to-build:
echo "Copying to build/"
mkdir build/ || true
cp -rf resources/public/* build/ && rm build/devcards.html
commit-version:
echo "Committing changes and tagging release"
./scripts/commit_version.clj
release-snapshot: build-prod bump-snapshot-version template copy-to-build commit-version
release: build-prod bump-version template copy-to-build commit-version