Skip to content
Closed
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
5 changes: 5 additions & 0 deletions .changeset/purple-moose-kiss.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

feat: add make help command
44 changes: 26 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,67 +1,75 @@
.PHONY: prepare build typecheck lint lint-fix lint-pkg sherif test test-watch test-coverage clean changeset version publish release dev vis
.PHONY: prepare build typecheck lint lint-fix lint-pkg sherif test test-watch test-coverage clean changeset version publish release dev vis help

## Setup

prepare:
prepare: ## Install project dependencies
pnpm install

## Build

build:
build: ## Build all workspace packages
pnpm run build

## Quality

typecheck:
typecheck: ## Type-check all workspace packages
pnpm run typecheck

lint:
lint: ## Run lint checks
pnpm run lint

lint-fix:
lint-fix: ## Fix lint issues
pnpm run lint:fix

sherif:
sherif: ## Check monorepo package configuration
pnpm run sherif

lint-pkg:
lint-pkg: ## Lint package metadata
pnpm run lint:pkg

## Test

test:
test: ## Run the test suite
pnpm run test

test-watch:
test-watch: ## Run tests in watch mode
pnpm run test:watch

test-coverage:
test-coverage: ## Run tests with coverage
pnpm run test:coverage

## Clean

clean:
clean: ## Remove build artifacts
pnpm run clean

## Release

changeset:
changeset: ## Create a changeset
pnpm run changeset

version:
version: ## Apply changesets and update versions
pnpm run version

publish:
publish: ## Publish packages
pnpm run publish

release: version publish
release: version publish ## Version and publish packages

## Development

dev:
dev: ## Start the CLI in development mode
pnpm run dev:cli

## vis

vis:
vis: ## Start the session visualization tools
pnpm run vis

## Help

help: ## Show this help message
@awk 'BEGIN { printf "Usage: make <target>\n" } \
/^## / { printf "\n%s:\n", substr($$0, 4); next } \
/^[a-zA-Z0-9_-]+:.*## / { split($$0, parts, ":.*## "); printf " %-16s %s\n", parts[1], parts[2] }' \
$(firstword $(MAKEFILE_LIST))