fix: CLJS watch mode missing todomvc from cljs_deps.js

Two issues caused "Loading from local store..." after tmux restart:

1. Watch path only included `src/`, so `example/todomvc/` sources
   weren't compiled on the watcher's initial build, leaving
   pocketbook.todomvc out of cljs_deps.js.
   Fix: `-w "src:example/todomvc"`

2. Stale output dir from previous builds caused incremental compile
   to skip regenerating cljs_deps.js.
   Fix: `cljs:clean` task (deletes js output) runs before `cljs:watch`.
This commit is contained in:
Florian Schroedl
2026-04-04 18:38:22 +02:00
parent 9c3ecc7038
commit 38a15b7a34
2 changed files with 5 additions and 1 deletions

View File

@@ -25,4 +25,4 @@
:extra-deps {org.clojure/clojurescript {:mvn/version "1.11.132"}
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
org.clojure/core.async {:mvn/version "1.7.701"}}
:main-opts ["-m" "cljs.main" "-co" "build.edn" "-w" "src" "-c"]}}}
:main-opts ["-m" "cljs.main" "-co" "build.edn" "-w" "src:example/todomvc" "-c"]}}}