Build: Use local deno in Makefile for CI compatibility
All checks were successful
Build SilverBullet Plug / build (push) Successful in 25s

This commit is contained in:
2026-02-17 10:19:20 -08:00
parent b53fc0acf8
commit 32933f9a34

View File

@@ -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/