justfile 573 B

12345678910111213141516171819202122232425262728
  1. # List available targets
  2. default:
  3. @just --list
  4. # Remove build artifacts
  5. clean:
  6. rm -rf build
  7. # Test the Book
  8. test-book:
  9. bash test_book.sh
  10. # Build Web App (Chapter 5)
  11. build-web-app:
  12. bash build_web_app.sh
  13. # Stop any running server, then run Web App
  14. run-web-app: build-web-app
  15. -lsof -ti :8080 | xargs kill 2>/dev/null
  16. cd build/web-app && ./build/translate-server
  17. # Build Desktop App (Chapter 6)
  18. build-desktop-app:
  19. bash build_desktop_app.sh
  20. # Run Desktop App
  21. run-desktop-app: build-desktop-app
  22. cd build/desktop-app && ./build/translate-app