forked from a-viv-a/deer-social
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (39 loc) · 1.19 KB
/
justfile
File metadata and controls
54 lines (39 loc) · 1.19 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
49
50
51
52
53
export PATH := "./node_modules/.bin:" + env_var('PATH')
# lots of just -> yarn, but this lets us chain yarn command deps
[group('dist')]
dist-build-web: intl build-web
[group('dist')]
dist-build-android-sideload: intl build-android-sideload
[group('build')]
intl:
yarn intl:build
[group('build')]
prebuild-android:
expo prebuild -p android
[group('build')]
build-web: && postbuild-web
yarn build-web
[group('build')]
build-android-sideload: prebuild-android
eas build --local --platform android --profile sideload-android
[group('build')]
postbuild-web:
# build system outputs some srcs and hrefs like src="static/"
# need to rewrite to be src="/static/" to handle non root pages
sed -i 's/\(src\|href\)="static/\1="\/static/g' web-build/index.html
# we need to copy the static iframe html to support youtube embeds
cp -r bskyweb/static/iframe/ web-build/iframe
# copy our static pages over!
cp -r deer-static-about web-build/about
[group('dev')]
dev-android-setup: prebuild-android
yarn android
[group('dev')]
dev-web:
yarn web
[group('dev')]
dev-web-functions: build-web
wrangler pages dev ./web-build
[group('lint')]
typecheck:
yarn typecheck