-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
bb.edn
23 lines (23 loc) · 1.17 KB
/
bb.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{:min-bb-version "0.9.161"
:deps {org.babashka/cli {:mvn/version "0.2.23"}
org.babashka/http-server {:mvn/version "0.1.12"}
borkdude/rewrite-edn {:mvn/version "0.3.4"}
io.github.squint-cljs/cherry-cljs {:local/root "."}}
:paths ["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-cherry-npm-package)
publish (t/publish)
dev {:doc "Starts the cherry dev watcher and the playground http server"
:task (run '-dev {:parallel true})}
-dev {:depends [watch serve-playground]}
watch {:doc "Starts the cherry dev watcher"
:task (t/watch-cherry)}
serve-playground {:doc "Starts the playground http server"
:task (t/start-playground-server playground-cli-opts)}
test {:doc "Run tests"
:task (t/test-cherry)}
bump-common tasks/bump-compiler-common
integration-tests {:doc "Run integration tests"
:task integration-tests/run-tests}}}