Files
silverbullet-icalendar/Makefile
sstent 6480b56875
All checks were successful
Build SilverBullet Plug / build (push) Successful in 18s
Merge fixes and new dev tools
2026-02-17 08:36:22 -08:00

35 lines
906 B
Makefile

.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