Skip to content

Commit

Permalink
chore: add "just live-rebuild" (#1345)
Browse files Browse the repository at this point in the history
This will rebuild build/release/ftl whenever source changes.
  • Loading branch information
alecthomas authored Apr 27, 2024
1 parent 8c853cb commit 4f8a992
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ clean:
find . -name '*.zip' -exec rm {} \;
mvn -f kotlin-runtime/ftl-runtime clean

# Live rebuild the ftl binary whenever source changes.
live-rebuild:
watchexec -e go -- just build ftl

# Build everything
build-all: build-frontend build-generate build-kt-runtime build-protos build-sqlc build-zips
@just build ftl ftl-controller ftl-runner ftl-initdb
Expand Down Expand Up @@ -70,7 +74,7 @@ build-extension: npm-install
# Install development version of VSCode extension
install-extension: build-extension
@mk {{EXTENSION_OUT}} : extensions/vscode/src -- "cd extensions/vscode && npm run compile"
@cd extensions/vscode && vsce package && code --install-extension ftl-*.vsix
@cd extensions/vscode && vsce package && code --install-extension ftl-*.vsix

package-extension: build-extension
@cd extensions/vscode && vsce package
Expand Down

0 comments on commit 4f8a992

Please sign in to comment.