From 8b0dccd066f0dfcd51bcb6b3c825af5aa7788de2 Mon Sep 17 00:00:00 2001 From: "Fotis Koutoulakis (@NlightNFotis)" Date: Wed, 19 Mar 2025 11:56:11 +0000 Subject: [PATCH 1/3] build: sync some utility just instructions I had locally --- justfile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 5c0edef4df..18bd2a8110 100644 --- a/justfile +++ b/justfile @@ -3,7 +3,7 @@ all: lint sync # Lint source typescript lint: - npm run lint -- --fix + npm run lint-fix # Sync generated files (javascript and PR checks) sync: build update-pr-checks @@ -15,3 +15,19 @@ update-pr-checks: # Transpile typescript code into javascript build: npm run build + +# Build then run all the tests +test: build + npm run test + +# Run the tests for a single file +test_file filename: build + npx ava --verbose {{filename}} + +# FOTIS: This shouldn't really be needed, as it's covered by `sync`, +# however, I recall having messed my environment such that this was the +# only solution, so keeping it here for convenience & docs. +[doc("Refresh the lib directory (the .js build artefacts)")] +[confirm] +refresh-lib: + rm -rf lib && npm run build From d271bde0ec328140a2d7d8ee692adba0a266a9a7 Mon Sep 17 00:00:00 2001 From: Fotis Koutoulakis Date: Wed, 19 Mar 2025 17:10:52 +0000 Subject: [PATCH 2/3] Update justfile Co-authored-by: Andrew Eisenberg --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index 18bd2a8110..f3de7bc271 100644 --- a/justfile +++ b/justfile @@ -27,7 +27,7 @@ test_file filename: build # FOTIS: This shouldn't really be needed, as it's covered by `sync`, # however, I recall having messed my environment such that this was the # only solution, so keeping it here for convenience & docs. -[doc("Refresh the lib directory (the .js build artefacts)")] +[doc("Refresh the .js build artefacts in the lib directory")] [confirm] refresh-lib: rm -rf lib && npm run build From c74c378e297cb8a20ad5155e7dc40f97093f4b69 Mon Sep 17 00:00:00 2001 From: Fotis Koutoulakis Date: Wed, 19 Mar 2025 17:11:02 +0000 Subject: [PATCH 3/3] Update justfile Co-authored-by: Andrew Eisenberg --- justfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/justfile b/justfile index f3de7bc271..f146ed9b48 100644 --- a/justfile +++ b/justfile @@ -24,9 +24,6 @@ test: build test_file filename: build npx ava --verbose {{filename}} -# FOTIS: This shouldn't really be needed, as it's covered by `sync`, -# however, I recall having messed my environment such that this was the -# only solution, so keeping it here for convenience & docs. [doc("Refresh the .js build artefacts in the lib directory")] [confirm] refresh-lib: