forked from GitHubMirrors/silverbullet-icalendar
Merge fixes and new dev tools
All checks were successful
Build SilverBullet Plug / build (push) Successful in 18s
All checks were successful
Build SilverBullet Plug / build (push) Successful in 18s
This commit is contained in:
34
Makefile
Normal file
34
Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
.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
|
||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
silverbullet:
|
||||
image: zefhemel/silverbullet:latest
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./test_space:/space
|
||||
- ./icalendar.plug.js:/space/_plug/icalendar.plug.js:ro
|
||||
environment:
|
||||
- SB_USER=admin:admin # Default for easy local testing
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user