Update Makefile with Docker support and additional npm commands for packaging and publishing

This commit is contained in:
2025-12-25 16:03:45 -06:00
parent c9053cb0c6
commit 8d4e8cde81

View File

@@ -1,4 +1,4 @@
.PHONY: help install dev build preview check lint format clean
.PHONY: help install dev build preview check lint format clean docker-build docker-run docker package publish
help:
@echo 'Usage: make [target]'
@@ -6,15 +6,19 @@ help:
@echo 'Available targets:'
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install:
npm install
dev:
npm install
npm run dev
build:
npm run build
package:
npm run package
publish:
npm publish
preview:
npm run preview
@@ -28,5 +32,13 @@ format:
npm run format
clean:
rm -rf .svelte-kit build node_modules/.vite
rm -rf .svelte-kit build node_modules/.vite dist package
docker-build:
docker build -t linking-tool .
docker-run:
docker run --rm -p 3000:3000 linking-tool
docker: docker-build docker-run