Repository navigation
Expand file tree
/
Copy pathbb.edn
More file actions
36 lines (36 loc) · 2.52 KB
/
Copy pathbb.edn
File metadata and controls
36 lines (36 loc) · 2.52 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
{:min-bb-version "0.9.161"
:deps {borkdude/rewrite-edn {:mvn/version "0.4.6"}}
:paths ["src" "resources" "bb"]
:tasks {:requires ([babashka.cli :as cli]
[tasks :as t])
:init (def playground-cli-opts (cli/parse-opts *command-line-args* {:coerce {:port :int
:headers :edn}}))
build (t/build-squint-npm-package)
publish {:doc "Publishes to npm and Clojars, --bump for a new patch version"
:exec-fn tasks/publish}
watch {:doc "Starts the squint dev watcher"
:task (t/watch-squint)}
serve-playground {:doc "Starts squint the playground http server"
:task (do (t/wait-for-cli)
(shell {:dir "playground"} "bb dev"))}
dev {:doc "Starts the squint dev watcher and the playground http server"
:task (run '-dev {:parallel true})}
dev:stop {:doc "Stops the process listening on playground port 5173"
:task (shell "sh" "-c" "pids=$(lsof -tiTCP:5173 -sTCP:LISTEN); [ -z \"$pids\" ] || kill -TERM $pids")}
bump-versions (load-file "script/bump_versions.clj")
-dev {:depends [watch serve-playground]}
test:node {:doc "Run tests in Node.js"
:task (t/test-squint)}
test:bb {:doc "Run tests in bb"
:extra-deps {this/project {:local/root "."}}
:extra-paths ["test"]
:task (exec 'squint.compiler-test/run-tests)}
test:clj {:doc "Run tests in Clojure"
:task (clojure "-X:test")}
test:libs {:doc "Run external library tests"
:task (t/libtests)}
test:e2e {:doc "e2e tests (node nREPL server + browser REPL via vite + playwright).\nNeeds `npx playwright install chromium`.\nOptional --vite <version> (default 8), e.g. `bb test:e2e --vite 5`."
:task (exec 'tasks/e2e)}
test:size {:doc "Compile and bundle reagami against the latest release (or --baseline <version>) and this checkout.\nFails when the gzipped bundle grows beyond --threshold (default 1.02)."
:task (exec 'tasks/size-check)}}
}