This commit is contained in:
gcch 2026-03-14 13:39:45 +01:00
commit 91d4573bff
14 changed files with 442 additions and 217 deletions

View file

@ -2,12 +2,18 @@ set shell := ["/usr/bin/fish", "-c"]
# Formate le code.
format:
bun prettier --cache --cache-location ".cache/prettiercache" --ignore-unknown --parallel-workers 8 --write .
bun prettier \
--cache --cache-location ".cache/prettiercache" \
--config "cfg/prettier.config.ts" \
--ignore-path "cfg/prettierignore" \
--ignore-unknown \
--parallel-workers 8 \
--write .
dprint fmt --config ~/.config/dprint/dprint.jsonc
# Met à jour les dépendances NPM.
update:
bun update
bun update --interactive
# Analyse le code TypeScript avec ESLint.
lint-js:
@ -15,12 +21,14 @@ lint-js:
# Analyse le code mort et les dépendances inutilisées du projet.
find-dead-code:
bun knip
bun knip --production
-bun --bun knip --cache --cache-location ".cache/knipcache" --strict
-bun --bun knip --cache --cache-location ".cache/knipcache" --production --strict
# Compile le projet.
build:
bun tsdown --attw --publint
bun tsdown \
--config "cfg/tsdown.config.ts" \
--attw --publint
# Nettoie le projet.
clean: