-
Notifications
You must be signed in to change notification settings - Fork 4
/
justfile
34 lines (29 loc) · 939 Bytes
/
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
LOCKFILE := "pnpm-lock.yaml"
LOCKFILE_NDK := "packages/ndk/pnpm-lock.yaml"
branches:
@echo "Current branch: `git branch --show-current`" \
&& if [[ -n $(git status --porcelain) ]]; then \
git status --porcelain; \
fi
@echo "packages/ndk branch: `cd packages/ndk && git branch --show-current`" \
&& cd packages/ndk && if [[ -n $(git status --porcelain) ]]; then \
git status --porcelain; \
fi
update:
git submodule update --recursive --remote
cd packages/ndk && git checkout master && git pull
build:
turbo build
renew:
if [ -f {{LOCKFILE}} ]; then \
rm {{LOCKFILE}}; \
fi \
&& \
if [ -f {{LOCKFILE_NDK}} ]; then \
echo asdf \
&& rm {{LOCKFILE_NDK}}; \
fi \
&& find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; \
&& pnpm i && cd packages/ndk && pnpm i
compile-ndk:
./ndk_compile.sh