-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
55 lines (43 loc) · 1.15 KB
/
justfile
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
45
46
47
48
49
50
51
52
53
54
55
BUILD_DIR := "build"
RESUME_PDF := BUILD_DIR / "resume.pdf"
RESUME_HTML := BUILD_DIR / "resume.html"
CONFIG := "resume.config.ts"
default:
@just --list
build:
pnpx tsx main.ts {{CONFIG}} --pdf={{RESUME_PDF}} --html={{RESUME_HTML}}
serve: build
@just watch &
browser-sync start --server --index {{RESUME_HTML}} --files {{RESUME_HTML}}
watch:
ls {{CONFIG}} src/** | entr -s "just build"
# preview
preview: build
zathura {{RESUME_PDF}} &
# dropbox link
link: build
rclone copy {{RESUME_PDF}} db:perso
rclone link db:perso/resume.pdf | tee >(echo) | xclip -sel clip
# github release
release: build
#!/bin/bash
printf "Unsaved Changes:\n%s\n" $(git status -s)
while true; do
read -r -p "Are You Sure? [Y/n] " input
case $input in
[yY][eE][sS] | [yY])
echo "Yes"
break
;;
[nN][oO] | [nN])
echo "No"
# break
exit
;;
*)
echo "Invalid input..."
;;
esac
done
read -r -p "Notes: " notes
gh release create "$(date +%m-%d-%y)" --notes "${notes}" {{RESUME_PDF}} {{RESUME_HTML}}