Skip to content

Commit 80b2a67

Browse files
committed
✅ make sure to correctly group arguements in Justfile
1 parent a861e53 commit 80b2a67

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

Justfile

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@ default:
44
do-it:
55
@xdg-open https://youtu.be/AkygX8Fncpk
66

7-
build:
8-
-@just build_js 2> /dev/null
9-
just build_css
10-
just build_js
11-
12-
build_css *args: (esbuild '--outbase=style' '--outdir=an_website/static/css' '"style/**/*.css"' args)
13-
14-
build_js_debug *args: (esbuild 'an_website/**/*[!_].ts' '--bundle' '"--external:/static/*"' '--legal-comments=inline' '"--footer:js=// @license-end"' '--format=esm' '--outbase=an_website' '--outdir=an_website/static/js' '"--alias:@utils/utils.js=$(./scripts/fix_static_url_path.py /static/js/utils/utils.js)"' args)
15-
16-
build_js *args: (build_js_debug '--pure:console.log' '--pure:console.debug' args)
17-
187
clean: clean_css clean_js
198
./scripts/compress_static_files.py --clean
209

@@ -24,8 +13,26 @@ clean_css:
2413
clean_js:
2514
rm -fr "{{ justfile_directory() }}/an_website/static/js"
2615

16+
build:
17+
-@just build_js 2> /dev/null
18+
@just build_css
19+
@just build_js
20+
21+
[positional-arguments]
22+
build_css *args:
23+
@just esbuild --outbase=style --outdir=an_website/static/css 'style/**/*.css' "$@"
24+
25+
[positional-arguments]
26+
build_js_debug *args:
27+
@just esbuild an_website/**/*[!_].ts --bundle '--external:/static/*' --legal-comments=inline '--footer:js=// @license-end' --format=esm --outbase=an_website --outdir=an_website/static/js "--alias:@utils/utils.js=$(./scripts/fix_static_url_path.py /static/js/utils/utils.js)" "$@"
28+
29+
[positional-arguments]
30+
build_js *args:
31+
@just build_js_debug '--pure:console.log' '--pure:console.debug' "$@"
32+
33+
[positional-arguments]
2734
esbuild *args:
28-
deno run -A https://deno.land/x/esbuild@v0.24.2/mod.js --target=$(just target),chrome103,edge129,firefox115,ios11,opera114,safari15.6 --charset=utf8 --minify --sourcemap --tree-shaking=false {{ args }}
35+
deno run -A https://deno.land/x/esbuild@v0.24.2/mod.js "--target=$(just target),chrome103,edge129,firefox115,ios11,opera114,safari15.6" --charset=utf8 --minify --sourcemap --tree-shaking=false "$@"
2936

3037
target:
3138
#!/usr/bin/env python3

0 commit comments

Comments
 (0)