.PHONY: build up down logs clean # Build the plug using a Docker container with Deno build: docker run --rm -v $(PWD):/app -w /app denoland/deno:latest task build # Start the SilverBullet test container up: mkdir -p test_space docker compose up -d # Stop the SilverBullet test container down: docker compose down # View logs from the SilverBullet container logs: docker compose logs -f # Watch for changes and rebuild automatically using Deno's internal watch watch: @echo "Starting watch in background..." docker run -d --name ical-watch -v $(PWD):/app -w /app denoland/deno:latest task watch @echo "Watching... Use 'docker logs -f ical-watch' to see build progress." # Stop the watch container stop-watch: docker rm -f ical-watch # Clean up build artifacts and test space clean: rm -f *.plug.js # Be careful with test_space if you have notes there you want to keep # rm -rf test_space