-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
48 lines (40 loc) · 1.16 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
# This is a justfile (https://github.com/casey/just)
# list out the available actions
default:
@just --list
# install/update miniserve
install-miniserve:
@cargo install miniserve
# open google chrome beta to the local dev server
browse:
@open -a "Google Chrome Beta" http://localhost:8080/
# serve project (requires miniserve)
serve:
@miniserve \
--header "Cache-Control: no-cache; max-age=1" \
--header "Cross-Origin-Embedder-Policy: require-corp" \
--header "Cross-Origin-Opener-Policy: same-origin" \
--header "Cross-Origin-Resource-Policy: cross-origin" \
--index index.html \
.
# serve project from ./build (requires miniserve)
serve-build:
@miniserve \
--header "Cache-Control: no-cache; max-age=1" \
--header "Cross-Origin-Embedder-Policy: require-corp" \
--header "Cross-Origin-Opener-Policy: same-origin" \
--header "Cross-Origin-Resource-Policy: cross-origin" \
--index index.html \
build
# sync to host
rsync:
@rsync -avp ./build/ rud.is:~/rud.is/w/webr-file/
# publish to GH
github:
@git add -A
@git commit -m "chore: lazy justfile commit"
@git push
# be environmentally conscious
rollup:
@rm -rf build/
@npx rollup --config