Skip to content

Commit

Permalink
Upgrade To Astro v5 (#183)
Browse files Browse the repository at this point in the history
* chore: format & update node version

* chore: update astro to v5

* chore: bump dependencies version

* chore: update TypeScript configuration and dependencies

* feat: Adoption of Loader for Content Layer API

* feat: 添加 spec 集合以支持新的内容加载器

* feat: 使用 dayjs 库优化日期获取和添加 slug 生成函数
  • Loading branch information
moeyua authored Dec 6, 2024
1 parent 2b3342a commit 711bcbc
Show file tree
Hide file tree
Showing 25 changed files with 1,040 additions and 1,328 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@
"scss",
"pcss",
"postcss"
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import swup from '@swup/astro'
import { defineConfig } from 'astro/config'
import robotsTxt from 'astro-robots-txt'
import { defineConfig } from 'astro/config'
import rehypeKatex from 'rehype-katex'
import remarkMath from 'remark-math'
import UnoCSS from 'unocss/astro'
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "astro-theme-typography",
"type": "module",
"version": "0.1.0",
"packageManager": "pnpm@9.10.0",
"packageManager": "pnpm@9.14.4",
"repository": "https://github.com/moeyua/astro-theme-typography",
"scripts": {
"astro": "astro",
Expand All @@ -21,39 +21,39 @@
"@astrojs/rss": "^4.0.9",
"@astrojs/sitemap": "^3.2.1",
"@github/clipboard-copy-element": "^1.3.0",
"@swup/astro": "^1.4.1",
"@swup/astro": "^1.5.0",
"astro": "^5.0.2",
"astro-robots-txt": "^1.0.0",
"astro-seo": "^0.8.4",
"giscus": "^1.5.0",
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0",
"typescript": "~5.5.4",
"vite": "^5.4.10"
"typescript": "~5.7.2",
"vite": "^6.0.2"
},
"devDependencies": {
"@antfu/eslint-config": "^3.6.2",
"@iconify-json/mdi": "^1.2.0",
"@antfu/eslint-config": "^3.11.2",
"@iconify-json/mdi": "^1.2.1",
"@types/markdown-it": "^14.1.2",
"@types/node": "^22.5.5",
"@types/node": "^22.10.1",
"@types/sanitize-html": "^2.13.0",
"@unocss/eslint-plugin": "^0.62.3",
"@unocss/eslint-plugin": "^0.65.1",
"@unocss/preset-attributify": "^0.62.4",
"@unocss/reset": "^0.62.4",
"@unocss/transformer-directives": "^0.62.4",
"astro-eslint-parser": "^1.0.3",
"bumpp": "^9.5.2",
"astro-eslint-parser": "^1.1.0",
"bumpp": "^9.8.1",
"changelogen": "^0.5.7",
"consola": "^3.2.3",
"dayjs": "^1.11.13",
"eslint": "^9.16.0",
"eslint-plugin-astro": "^1.2.4",
"eslint-plugin-format": "^0.1.2",
"esno": "^4.7.0",
"eslint-plugin-astro": "^1.3.1",
"eslint-plugin-format": "^0.1.3",
"esno": "^4.8.0",
"lint-staged": "^15.2.10",
"markdown-it": "^14.1.0",
"prettier-plugin-astro": "^0.13.0",
"sanitize-html": "^2.13.0",
"sanitize-html": "^2.13.1",
"simple-git-hooks": "^2.11.1",
"unocss": "^0.62.4",
"unocss-preset-theme": "^0.13.0"
Expand Down
Loading

0 comments on commit 711bcbc

Please sign in to comment.