Skip to content

Commit ee6e4ba

Browse files
committed
perf: 优化
1 parent ddf76a3 commit ee6e4ba

35 files changed

Lines changed: 7237 additions & 11471 deletions

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: Install, build, and upload your site
2424
uses: withastro/action@v3
25-
# with:
26-
# path: . # The root location of your Astro project inside the repository. (optional)
27-
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
25+
with:
26+
package-manager: bun@latest
2927

3028
deploy:
3129
needs: build

astro.config.mjs

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sitemap from "@astrojs/sitemap";
22
import svelte from "@astrojs/svelte";
3-
import tailwind from "@astrojs/tailwind";
3+
import tailwindcss from "@tailwindcss/vite";
44
import swup from "@swup/astro";
55
import compressor from "astro-compressor";
66
import Compress from "astro-compress";
@@ -27,9 +27,6 @@ export default defineConfig({
2727
base: "personBlog",
2828
trailingSlash: "always",
2929
integrations: [
30-
tailwind({
31-
nesting: true,
32-
}),
3330
swup({
3431
theme: false,
3532
animationClass: "transition-swup-", // see https://swup.js.org/options/#animationselector
@@ -46,10 +43,25 @@ export default defineConfig({
4643
}),
4744
icon({
4845
include: {
49-
"preprocess: vitePreprocess(),": ["*"],
50-
"fa6-brands": ["*"],
51-
"fa6-regular": ["*"],
52-
"fa6-solid": ["*"],
46+
"material-symbols": [
47+
"calendar-today-outline-rounded",
48+
"edit-calendar-outline-rounded",
49+
"book-2-outline-rounded",
50+
"tag-rounded",
51+
"notes-rounded",
52+
"schedule-outline-rounded",
53+
"chevron-left-rounded",
54+
"chevron-right-rounded",
55+
"keyboard-arrow-up-rounded",
56+
"more-horiz",
57+
"home-outline-rounded",
58+
"palette-outline",
59+
"menu-rounded",
60+
"copyright-outline-rounded",
61+
],
62+
"fa6-brands": ["creative-commons", "github"],
63+
"fa6-regular": ["address-card"],
64+
"fa6-solid": ["arrow-up-right-from-square"],
5365
},
5466
}),
5567
svelte(),
@@ -115,6 +127,7 @@ export default defineConfig({
115127
],
116128
},
117129
vite: {
130+
plugins: [tailwindcss()],
118131
build: {
119132
rollupOptions: {
120133
onwarn(warning, warn) {

bun.lock

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

package.json

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -14,67 +14,60 @@
1414
"new-post": "node scripts/new-post.js",
1515
"format": "biome format --write ./src",
1616
"lint": "biome check --apply ./src",
17-
"analyze": "node scripts/analyze-build.js",
18-
"preinstall": "npx only-allow pnpm"
17+
"analyze": "node scripts/analyze-build.js"
1918
},
2019
"dependencies": {
21-
"@astrojs/check": "0.9.6",
22-
"@astrojs/rss": "4.0.15",
23-
"@astrojs/sitemap": "3.7.0",
24-
"@astrojs/svelte": "7.2.5",
25-
"@astrojs/tailwind": "6.0.2",
26-
"@expressive-code/core": "0.41.6",
27-
"@expressive-code/plugin-collapsible-sections": "0.41.6",
28-
"@expressive-code/plugin-line-numbers": "0.41.6",
20+
"@astrojs/check": "0.9.8",
21+
"@astrojs/rss": "4.0.18",
22+
"@astrojs/sitemap": "3.7.2",
23+
"@astrojs/svelte": "8.0.4",
24+
"@expressive-code/core": "0.41.7",
25+
"@expressive-code/plugin-collapsible-sections": "0.41.7",
26+
"@expressive-code/plugin-line-numbers": "0.41.7",
2927
"@fontsource-variable/jetbrains-mono": "5.2.8",
30-
"@fontsource/roboto": "5.2.9",
28+
"@fontsource/roboto": "5.2.10",
3129
"@iconify-json/fa6-brands": "1.2.6",
3230
"@iconify-json/fa6-regular": "1.2.4",
3331
"@iconify-json/fa6-solid": "1.2.4",
34-
"@iconify-json/material-symbols": "1.2.53",
32+
"@iconify-json/material-symbols": "1.2.65",
3533
"@iconify/svelte": "5.2.1",
36-
"@swup/astro": "1.7.0",
37-
"@tailwindcss/typography": "0.5.19",
38-
"astro": "5.17.1",
39-
"astro-compress": "2.3.9",
40-
"astro-expressive-code": "0.41.6",
34+
"@swup/astro": "1.8.0",
35+
"@tailwindcss/vite": "4.2.2",
36+
"astro": "6.1.3",
37+
"astro-compress": "2.4.0",
38+
"astro-expressive-code": "0.41.7",
4139
"astro-icon": "1.1.5",
4240
"hastscript": "9.0.1",
43-
"katex": "0.16.28",
44-
"markdown-it": "14.1.0",
41+
"katex": "0.16.45",
42+
"markdown-it": "14.1.1",
4543
"mdast-util-to-string": "4.0.0",
4644
"overlayscrollbars": "2.14.0",
47-
"pagefind": "1.4.0",
45+
"pagefind": "1.5.0",
4846
"photoswipe": "5.4.4",
4947
"reading-time": "1.5.0",
5048
"rehype-autolink-headings": "7.1.0",
5149
"rehype-components": "0.3.0",
5250
"rehype-katex": "7.0.1",
5351
"rehype-slug": "6.0.0",
5452
"remark-directive": "4.0.0",
55-
"remark-directive-rehype": "0.4.2",
5653
"remark-github-admonitions-to-directives": "2.1.0",
5754
"remark-math": "6.0.0",
5855
"remark-sectionize": "2.1.0",
59-
"sanitize-html": "2.17.0",
56+
"sanitize-html": "2.17.2",
6057
"sharp": "0.34.5",
6158
"stylus": "0.64.0",
62-
"svelte": "5.49.1",
63-
"tailwindcss": "^3.4.17",
64-
"typescript": "5.9.3",
59+
"svelte": "5.55.1",
60+
"tailwindcss": "^4.2.2",
61+
"typescript": "6.0.2",
6562
"unist-util-visit": "5.1.0"
6663
},
6764
"devDependencies": {
68-
"@astrojs/ts-plugin": "1.10.6",
69-
"@biomejs/biome": "2.3.13",
70-
"@rollup/plugin-yaml": "4.1.2",
65+
"@astrojs/ts-plugin": "1.10.7",
66+
"@biomejs/biome": "2.4.10",
7167
"@types/hast": "3.0.4",
7268
"@types/markdown-it": "14.1.2",
7369
"@types/mdast": "4.0.4",
74-
"@types/sanitize-html": "2.16.0",
75-
"astro-compressor": "1.2.0",
76-
"postcss-import": "16.1.1",
77-
"postcss-nesting": "14.0.0"
78-
},
79-
"packageManager": "pnpm@9.14.4"
70+
"@types/sanitize-html": "2.16.1",
71+
"astro-compressor": "1.3.0"
72+
}
8073
}

0 commit comments

Comments
 (0)