2025-02-23
2025-02-24
This commit is contained in:
parent
2212f4fc14
commit
0f52ff0cef
40 changed files with 846 additions and 75 deletions
17
justfile
17
justfile
|
|
@ -3,10 +3,12 @@ set shell := ["fish", "-c"]
|
|||
# Variables de chemins de configuration.
|
||||
|
||||
drizzleConfigFile := "src/db/drizzle.config.ts"
|
||||
esLintConfigFile := "cfg/eslint.config.mts"
|
||||
esLintCssConfigFile := "cfg/eslint-css.config.mts"
|
||||
knipConfigFile := "cfg/knip.config.ts"
|
||||
prettierConfigFile := "cfg/prettier.config.mjs"
|
||||
prettierIgnoreFile := "cfg/.prettierignore"
|
||||
esLintConfigFile := "cfg/eslint.config.mts"
|
||||
knipConfigFile := "cfg/knip.config.ts"
|
||||
stylelintConfigFile := "cfg/stylelint.config.mjs"
|
||||
|
||||
# Variables de cache.
|
||||
|
||||
|
|
@ -33,6 +35,10 @@ build:
|
|||
-bun --bun vue-tsc --build .
|
||||
bun --bun vite build
|
||||
|
||||
# Génère l'image Docker.
|
||||
build-docker:
|
||||
docker build -t journal-media-vue --progress=plain
|
||||
|
||||
# Lance la prévisualisation du mode de production.
|
||||
preview:
|
||||
just build
|
||||
|
|
@ -68,13 +74,18 @@ watch-format:
|
|||
lint-css:
|
||||
bun --bun stylelint \
|
||||
--cache --cache-location "{{ cacheFolder }}/{{ stylelintCacheFile }}" \
|
||||
--config "{{ stylelintConfigFile }}" \
|
||||
--fix \
|
||||
{{ stylesFolder }}
|
||||
|
||||
# Analyse le code TypeScript et Astro.
|
||||
# Analyse le code TypeScript et Vue.
|
||||
lint-js fix="":
|
||||
bun --bun eslint --config "{{ esLintConfigFile }}" {{ fix }}
|
||||
|
||||
# Analyse le code CSS avec ESLint.
|
||||
lint-css-eslint fix="":
|
||||
bun --bun eslint --config "{{ esLintCssConfigFile }}" {{ fix }}
|
||||
|
||||
# Analyse l'orthographe et la grammaire.
|
||||
lint-spelling:
|
||||
bun --bun cspell lint *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue