build: update tooling configs and ignore files
This commit is contained in:
3
.prettierignore
Normal file
3
.prettierignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/.astro/
|
||||||
|
/dist/
|
||||||
|
/pnpm-lock.yaml
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
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/` |
|
||||||
| `pnpm preview` | Preview your build locally, before deploying |
|
| `pnpm preview` | Preview your build locally, before deploying |
|
||||||
|
|||||||
@@ -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,
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -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/kmoschcau_website/web/"
|
"deploy": "astro build && scp -r dist/* vds:~/dockervolumes/kmoschcau_website/web/"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user