Initial commit: Claude Session Manager with complete CLI toolset
- Add TypeScript project structure with Bun runtime - Implement CLI commands for session, project, stats, and optimization - Add SQLite database integration with prepared statements - Include AGENTS.md for development guidelines - Add Makefile for common development tasks - Configure ESLint and TypeScript with strict mode
This commit is contained in:
50
Makefile
Normal file
50
Makefile
Normal file
@@ -0,0 +1,50 @@
|
||||
.PHONY: help build dev test lint typecheck clean start install
|
||||
|
||||
# Default target
|
||||
help:
|
||||
@echo "Available commands:"
|
||||
@echo " install Install dependencies"
|
||||
@echo " build Build the project"
|
||||
@echo " dev Run in development mode with hot reload"
|
||||
@echo " start Run the built application"
|
||||
@echo " test Run all tests"
|
||||
@echo " lint Run ESLint"
|
||||
@echo " typecheck Run TypeScript type checking"
|
||||
@echo " clean Clean build artifacts"
|
||||
@echo " help Show this help message"
|
||||
|
||||
# Install dependencies
|
||||
install:
|
||||
bun install
|
||||
|
||||
# Build the project (includes typecheck)
|
||||
build:
|
||||
bun run build
|
||||
|
||||
# Development mode with hot reload
|
||||
dev:
|
||||
bun run dev
|
||||
|
||||
# Run the built application
|
||||
start:
|
||||
bun run start
|
||||
|
||||
# Run all tests
|
||||
test:
|
||||
bun run test
|
||||
|
||||
# Run ESLint
|
||||
lint:
|
||||
bun run lint
|
||||
|
||||
# Run TypeScript type checking
|
||||
typecheck:
|
||||
bun run typecheck
|
||||
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
bun run clean
|
||||
|
||||
# Development workflow: install, typecheck, lint, test
|
||||
check: install typecheck lint test
|
||||
@echo "All checks passed!"
|
||||
Reference in New Issue
Block a user