Add file check in dockerfile
Some checks failed
Portfolio/pipeline/head There was a failure building this commit

This commit is contained in:
2026-01-09 14:15:11 +01:00
parent 75bf6d21b5
commit 545ecb8fa8
6 changed files with 1060 additions and 4 deletions

21
.eslintrc.cjs Normal file
View File

@@ -0,0 +1,21 @@
module.exports = {
extends: [
"plugin:astro/recommended",
"plugin:@typescript-eslint/recommended"
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
overrides: [
{
files: ["*.astro"],
parser: "astro-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
rules: {
// Tu peux ajouter des règles spécifiques ici
},
},
],
};

View File

@@ -11,10 +11,19 @@ WORKDIR /app
# Copy depedencies # Copy depedencies
COPY package.json pnpm-lock.yaml ./ COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
# Copy all and build # Install pnpm with cache
RUN --mount=type=cache,id=pnpm,target=/pnpm/store \
PNPM_HOME="/pnpm" pnpm install --frozen-lockfile
# Copy all
COPY . . COPY . .
# Check files
RUN pnpm run lint
RUN pnpm run check
# Build
RUN pnpm build RUN pnpm build
# --- DEPLOY --- # --- DEPLOY ---

View File

@@ -6,7 +6,9 @@
"dev": "astro dev", "dev": "astro dev",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro",
"lint": "eslint src/**/*.{js,ts,astro}",
"check": "astro check"
}, },
"dependencies": { "dependencies": {
"@astrojs/mdx": "^4.3.13", "@astrojs/mdx": "^4.3.13",
@@ -14,5 +16,19 @@
"@astrojs/sitemap": "^3.6.0", "@astrojs/sitemap": "^3.6.0",
"astro": "^5.16.6", "astro": "^5.16.6",
"sharp": "^0.34.3" "sharp": "^0.34.3"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.52.0",
"@typescript-eslint/parser": "^8.52.0",
"astro-eslint-parser": "^1.2.2",
"eslint": "^9.39.2",
"eslint-plugin-astro": "^1.5.0",
"typescript": "^5.9.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild",
"sharp"
]
} }
} }

1008
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

3
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,3 @@
ignoredBuiltDependencies:
- esbuild
- sharp

View File

@@ -1,6 +1,5 @@
{ {
"extends": "astro/tsconfigs/strict", "extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"], "exclude": ["dist"],
"compilerOptions": { "compilerOptions": {
"strictNullChecks": true "strictNullChecks": true