Skip to content

Commit 6be6740

Browse files
committed
Remove .assetsignore and GitHub Actions deployment workflow; add @types/node dependency and create .assetsignore during build
1 parent 61a1585 commit 6be6740

5 files changed

Lines changed: 71 additions & 84 deletions

File tree

.assetsignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

astro.config.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// https://astro.build/config
2+
import { writeFile } from "fs/promises";
3+
import { EOL } from "os";
4+
import { fileURLToPath } from "url";
25
import cloudflare from "@astrojs/cloudflare";
36
import vue from "@astrojs/vue";
47
import tailwindcss from "@tailwindcss/vite";
@@ -14,7 +17,19 @@ export default defineConfig({
1417
"/docs": "https://github.com/IgorKowalczyk/github-views?tab=readme-ov-file#-basic-usage",
1518
},
1619

17-
integrations: [vue(), compress()],
20+
integrations: [
21+
vue(),
22+
compress(),
23+
{
24+
hooks: {
25+
"astro:build:done": async ({ dir }) => {
26+
const outFile = fileURLToPath(new URL(".assetsignore", dir));
27+
await writeFile(outFile, ["_worker.js", "_routes.json", "_headers", "_redirects"].join(EOL) + EOL);
28+
},
29+
},
30+
name: "Create .assetsignore",
31+
},
32+
],
1833

1934
vite: {
2035
plugins: [tailwindcss()],

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"@igorkowalczyk/prettier-config": "3.0.7",
5555
"@tailwindcss/forms": "0.5.10",
5656
"@types/canvas-confetti": "1.9.0",
57+
"@types/node": "22.13.11",
5758
"eslint": "9.22.0",
5859
"eslint-plugin-astro": "^1.3.1",
5960
"eslint-plugin-vue": "10.0.0",

pnpm-lock.yaml

Lines changed: 54 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)