Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
96 lines (67 loc) · 3.01 KB
/
Copy pathMakefile
File metadata and controls
96 lines (67 loc) · 3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#!make
ifneq (,$(wildcard ./.env))
include .env
export
endif
# --- Release -----------------------------------------------------------------
# `make release` déclenche l'unique workflow Release : validation, bump, tag,
# publication des deux tarballs npm et création de la Release GitHub.
VERSION ?=
CHANNEL ?= latest
WATCH ?=
YES ?=
.PHONY: help install dev docs docs-build docs-preview mcp-build stop build package lint typecheck format test test-watch test-coverage test-regression test-perf test-browser test-scripts changelog-build changelog-check release release-status ncu ncu-upgrade
.DEFAULT_GOAL := help
help:
@printf "\033[33mUsage:\033[0m\n make [target] [arg=\"val\"...]\n\n\033[33mTargets:\033[0m\n"
@awk 'BEGIN { FS = ":.*##"; } /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-16s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
install: ## Install dependencies (yarn)
@yarn install
dev: ## Start the playground alone + mock API (http://localhost:5174)
@yarn start:dev
docs: ## Start VitePress + embedded playground (http://localhost:5173)
@yarn docs:dev
docs-build: ## Build the documentation site (GitHub Pages)
@yarn docs:build
docs-preview: ## Preview the built documentation site
@yarn docs:preview
mcp-build: ## Build the @ficsysfr/jsonforms_builder-mcp package
@yarn mcp:install && yarn mcp:build
stop: ## Stop Vite, VitePress and mock API (ports 5174/5173/4173/4000)
@node scripts/stop-dev.mjs
build: ## Build the library (es + cjs + declarations)
@yarn build
package: ## Build and audit both npm tarballs -> .artifacts/npm
@yarn package
lint: ## Lint and check formatting (Biome)
@yarn lint
typecheck: ## Type-check the library without emitting build artifacts
@yarn typecheck
format: ## Apply safe fixes and reformat (Biome)
@yarn lint:fix
test: ## Run the Vitest suite
@yarn test
test-watch: ## Run the Vitest suite in watch mode
@yarn test:watch
test-coverage: ## Run tests with v8 coverage -> ./coverage/lcov.info
@yarn test:coverage
test-regression: ## Run the regression suite only
@yarn test:regression
test-perf: ## Run the performance suite only
@yarn test:perf
test-browser: ## Strict CSP and read-only recipe in Chromium (needs `yarn playwright install chromium`)
@yarn test:browser
test-scripts: ## Test release, changelog and package tooling
@yarn test:scripts
changelog-build: ## Generate CHANGELOG.md from changelog/X.Y.Z.md sources
@yarn changelog:build
changelog-check: ## Verify generated changelog is synchronized
@yarn changelog:check
release: ## Dispatch the single release workflow (VERSION=X.Y.Z [CHANNEL=latest|next] [WATCH=1] [YES=1])
@node scripts/release.mjs --version "$(VERSION)" --channel "$(CHANNEL)" $(if $(strip $(WATCH)),--watch,) $(if $(strip $(YES)),--yes,)
release-status: ## Show the latest Release workflow runs
@gh run list --workflow release.yml --limit 5
ncu: ## Check latest versions of all project dependencies
@npx --yes npm-check-updates
ncu-upgrade: ## Upgrade all project dependencies to the latest versions
@npx --yes npm-check-updates -u && yarn install