enhance: publishing --dev also watches frontend

also provide a dedicated backend command for simpler
rebuilding of backend
This commit is contained in:
Gabriel Horner
2024-01-23 21:44:26 -05:00
committed by Gabriel Horner
parent 3cd7b2d762
commit dc5127b48a
4 changed files with 63 additions and 17 deletions

View File

@@ -307,13 +307,20 @@ point out:
```sh
# One time setup
$ cd scripts && yarn install && cd -
# Build a release export
# Build a release publishing app
$ bb dev:publishing /path/to/graph-dir tmp/publish
# OR build a dev export with `clojure -M:cljs watch publishing` and then
# OR build a dev publishing app that watches frontend changes
$ bb dev:publishing /path/to/graph-dir tmp/publish --dev
# View the app in a browser
$ python3 -m http.server 8080 -d tmp/db-publish &; open http://localhost:8080
# View the publishing app in a browser
$ python3 -m http.server 8080 -d tmp/publish &; open http://localhost:8080
# Rebuild the publishing backend for dev/release.
# Handy when making backend changes in deps/publishing or
# to test a different graph
$ bb dev:publishing-backend /path/graph-dir tmp/publish
```