build: update tooling configs and ignore files

This commit is contained in:
2026-03-24 17:21:07 +01:00
parent 4151901413
commit 68bf950505
5 changed files with 20 additions and 4 deletions

3
.prettierignore Normal file
View File

@@ -0,0 +1,3 @@
/.astro/
/dist/
/pnpm-lock.yaml

View File

@@ -1,7 +1,12 @@
# vim: filetype=gitignore # vim: filetype=gitignore
/dist/
*.ico *.ico
*.json *.json
*.md *.md
*.mjs *.mjs
*.png
*.svg *.svg
*.webp
*.yaml *.yaml

View File

@@ -32,7 +32,7 @@ Any static assets, like images, can be placed in the `public/` directory.
All commands are run from the root of the project, from a terminal: All commands are run from the root of the project, from a terminal:
| Command | Action | | Command | Action |
| :------------------------ | :----------------------------------------------- | | :--------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies | | `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` | | `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` | | `pnpm build` | Build your production site to `./dist/` |

View File

@@ -5,17 +5,23 @@ import { defineConfig } from "eslint/config";
import jsxA11y from "eslint-plugin-jsx-a11y"; import jsxA11y from "eslint-plugin-jsx-a11y";
export default defineConfig([ export default defineConfig([
{
ignores: ["./dist/"],
},
{ {
files: ["**/*.{js,mjs}"], files: ["**/*.{js,mjs}"],
plugins: { js }, plugins: { js },
extends: ["js/recommended"], extends: ["js/recommended"],
}, },
{ {
files: ["**/*.{astro,html}"], files: ["**/*.{astro,html}"],
plugins: { plugins: {
"jsx-a11y": jsxA11y, "jsx-a11y": jsxA11y,
}, },
}, },
...eslintPluginAstro.configs.recommended, ...eslintPluginAstro.configs.recommended,
eslintPluginPrettierRecommended, eslintPluginPrettierRecommended,
]); ]);

View File

@@ -7,8 +7,10 @@
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint:eslint": "eslint", "lint:eslint": "eslint",
"lint:markuplint": "markuplint '**/*.{astro,html}'", "lint:markuplint": "markuplint './{public,src}/**/*.{astro,html}'",
"lint:stylelint": "stylelint .", "lint:stylelint": "stylelint .",
"deploy": "astro build && scp -r dist/* vds:~/dockervolumes/f1r3xyz_website/web/" "deploy": "astro build && scp -r dist/* vds:~/dockervolumes/f1r3xyz_website/web/"
}, },