Skip to content

Commit

Permalink
fix: add babashka script
Browse files Browse the repository at this point in the history
  • Loading branch information
WarFox committed Jun 9, 2024
1 parent d96b457 commit c3cc2c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ Clone the repository using git

This will start =shadow-cljs= and tests on watch mode

2. =bb dev=

This will run =npm run watch=. You need to setup [[https://babashka.org/][babashka]] for this to work.

** References

- https://www.youtube.com/watch?v=vI0QArPnkUc
Expand Down
7 changes: 7 additions & 0 deletions bb.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{:tasks {;; Used only in local development.
dev {:doc "Runs app in dev mode. Compiles cljs, less and runs JVM app in parallel."
:task (run '-watch {:parallel true})}
-watch {:depends [npm:watch]}

npm:watch {:doc "Starts app and tests in watch mode"
:task (shell "npm run watch") }}}

0 comments on commit c3cc2c3

Please sign in to comment.