/
er77
/
code-graph-rag-mcp
Обзор
Документация
Войти
/
er77
/
code-graph-rag-mcp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Makefile
32 строки
995 B
Vivek Kalyan
build: Add make command to package using tsup
20 фев 2025, 06:54
20 фев 2025, 06:54
db97bc8
Код
Авторство
О чём код?
SHELL := bash .ONESHELL: .SHELLFLAGS := -eu -o pipefail -c .DELETE_ON_ERROR: .DEFAULT_GOAL := help MAKEFLAGS += --warn-undefined-variables MAKEFLAGS += --no-builtin-rules .PHONY: help help: ## Prints help for targets with comments @echo "Targets:" @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' .PHONY: check-requirements check-requirements: ## Ensure that all requirements are installed @command -v pre-commit > /dev/null 2>&1 || (echo "pre-commit not installed") .PHONY: hooks hooks: install-hooks ## Run pre-commit hooks on all files pre-commit run --color=always --all-files --hook-stage commit .PHONY: install-hooks install-hooks: .git/hooks/pre-commit ## Install pre-commit hooks .git/hooks/pre-commit: .pre-commit-config.yaml pre-commit install .PHONY: package package: dist/index.js ## Package using tsup dist/index.js: src/*.ts package.json tsconfig.json tsup.config.ts bun run tsup