Compare commits

..

1 Commits

Author SHA1 Message Date
68bf950505 build: update tooling configs and ignore files 2026-03-24 17:21:07 +01:00
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
/dist/
*.ico
*.json
*.md
*.mjs
*.png
*.svg
*.webp
*.yaml

View File

@@ -31,9 +31,9 @@ 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:
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `pnpm install` | Installs dependencies |
| `pnpm dev` | Starts local dev server at `localhost:4321` |
| `pnpm build` | Build your production site to `./dist/` |
| `pnpm preview` | Preview your build locally, before deploying |

View File

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

View File

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