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
|
||||
|
||||
/dist/
|
||||
|
||||
*.ico
|
||||
*.json
|
||||
*.md
|
||||
*.mjs
|
||||
*.png
|
||||
*.svg
|
||||
*.webp
|
||||
*.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:
|
||||
|
||||
| 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 |
|
||||
|
||||
@@ -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,
|
||||
]);
|
||||
|
||||
@@ -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/"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user