From 32933f9a34b52d9caca872d5d35076f895271db7 Mon Sep 17 00:00:00 2001 From: sstent Date: Tue, 17 Feb 2026 10:19:20 -0800 Subject: [PATCH] Build: Use local deno in Makefile for CI compatibility --- Makefile | 41 +++++++---------------------------------- 1 file changed, 7 insertions(+), 34 deletions(-) diff --git a/Makefile b/Makefile index 0abaf4f..143ec83 100644 --- a/Makefile +++ b/Makefile @@ -1,36 +1,9 @@ -.PHONY: build up down logs clean - -# Build the plug using a Docker container with Deno +# Build the plug using local deno build: - docker run --rm -v $(PWD):/app -w /app denoland/deno:latest task build + deno task build + +# Helper to build and copy to a local test space (if needed) +deploy-test: + deno task build mkdir -p test_space/_plug - cp icalendar.plug.js test_space/_plug/icalendar.plug.js - -# 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 + cp icalendar.plug.js test_space/_plug/ \ No newline at end of file