Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ tmp/
# Environment
.env
.env.*

14 changes: 13 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help build run test test-integration lint docker-build docker-up setup-keys migrate clean
.PHONY: help build run test test-integration lint docker-build docker-up setup-keys migrate clean cli-install cli-build cli-dev cli-test

BINARY := zeroid
CMD := ./cmd/zeroid
Expand Down Expand Up @@ -41,6 +41,18 @@ setup-keys: ## Generate ECDSA P-256 + RSA 2048 signing keys
migrate: ## Run migrations (starts server, applies, exits)
go run $(CMD) -config zeroid.yaml

cli-install: ## Install CLI dependencies
cd cli && npm install

cli-build: cli-install ## Build the zid CLI
cd cli && npm run build

cli-dev: cli-install ## Run CLI from source (no build needed)
cd cli && npx tsx src/index.ts $(ARGS)

cli-test: cli-install ## Run CLI tests
cd cli && npm test

clean: ## Remove binary, keys, and docker volumes
rm -f $(BINARY)
rm -rf $(KEYS_DIR)
Expand Down
3 changes: 3 additions & 0 deletions cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
*.js.map
Loading