-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
48 lines (36 loc) · 1.2 KB
/
justfile
File metadata and controls
48 lines (36 loc) · 1.2 KB
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
# Use `just <recipe>` to run a recipe
# https://just.systems/man/en/
import ".shared/common.just"
# By default, run the `--list` command
default:
@just --list
# Variables
transferDir := `if [ -d "$HOME/NextcloudPrivate/Transfer" ]; then echo "$HOME/NextcloudPrivate/Transfer"; else echo "$HOME/Nextcloud/Transfer"; fi`
projectName := 'qownotes-web-app'
build:
go build -o bin/server
clean:
rm bin -Rf
build-web:
cd web && npm install && npm run build
# Apply the patch to the project repository
[group('patch')]
git-apply-patch:
git apply {{ transferDir }}/{{ projectName }}.patch
# Create a patch from the staged changes in the project repository
[group('patch')]
@git-create-patch:
echo "transferDir: {{ transferDir }}"
git diff --no-ext-diff --staged --binary > {{ transferDir }}/{{ projectName }}.patch
ls -l1t {{ transferDir }}/ | head -2
# Open a terminal with the qownotes-web-app session
[group('dev')]
term-run:
zellij --layout term.kdl attach {{ projectName }} -c
# Kill the qownotes-web-app session
[group('dev')]
term-kill:
-zellij delete-session {{ projectName }} -f
# Kill and run a terminal with the qownotes-web-app session
[group('dev')]
term: term-kill term-run