Skip to content

Commit e5b816f

Browse files
committed
Use babashka.deps instead of creating a separate .classpath file
1 parent 06082d7 commit e5b816f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

bb.clj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
;; Example of using clj-chrome-devtools with babashka
22
;;
3-
;; Make a .classpath
4-
;; $ clj -A:bb -Spath > .classpath
5-
;;
63
;; Start Chrome in the background:
74
;; /some/chrome-binary --remote-debugging-port=9222 --headless &
85
;;
96
;; Run with:
10-
;; $ bb --classpath $(cat .classpath) bb.clj
7+
;; $ bb bb.clj
8+
9+
(require '[babashka.deps :as deps])
10+
(deps/add-deps
11+
'{:deps {tatut/devtools {:git/url "https://github.com/tatut/clj-chrome-devtools"
12+
:git/sha "cc96255433ca406aaba8bcee17d0d0b3b16dc423"}
13+
org.babashka/spec.alpha {:git/url "https://github.com/babashka/spec.alpha"
14+
:git/sha "1a841c4cc1d4f6dab7505a98ed2d532dd9d56b78"}}})
1115

1216
(require '[clj-chrome-devtools.core :as core]
1317
'[clj-chrome-devtools.automation :as auto])

0 commit comments

Comments
 (0)