- 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
50 lines
1.0 KiB
Makefile
50 lines
1.0 KiB
Makefile
.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!"
|