.PHONY: install format lint typecheck test build check start

install:
	npm install

# Перед PR: eslint --fix → biome --write → prettier --write
format:
	npm run format

lint:
	npx biome check src
	npm run lint

typecheck:
	npx tsc --noEmit

test:
	npm test

build:
	npm run build

# Перед PR: всё вместе, вывод — в описание PR
check: install lint typecheck test build

# REACT_APP_ROOT_PATH=/ — иначе приложение ждёт префикс /aurora/apps/fastapi-dkb-armka и показывает белый экран
start:
	REACT_APP_ROOT_PATH=/ npm run start
