Skip to content

Commit

Permalink
feat: use preact!
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishqmanuja committed Sep 21, 2023
1 parent 841971e commit cf0b21d
Show file tree
Hide file tree
Showing 5 changed files with 183 additions and 136 deletions.
4 changes: 2 additions & 2 deletions astro.config.mjs
@@ -1,6 +1,6 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import preact from "@astrojs/preact";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import remarkCallouts from "remark-callouts";
Expand All @@ -14,7 +14,7 @@ export default defineConfig({
tailwind({
applyBaseStyles: false,
}),
react(),
preact(),
sitemap(),
tqblogExpressiveCode(),
],
Expand Down
16 changes: 3 additions & 13 deletions package.json
Expand Up @@ -2,6 +2,7 @@
"name": "tqblog",
"version": "3.0.0",
"private": false,
"packageManager": "pnpm@8.6.12",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand All @@ -18,7 +19,7 @@
},
"dependencies": {
"@astrojs/check": "^0.2.0",
"@astrojs/react": "^3.0.2",
"@astrojs/preact": "^3.0.0",
"@astrojs/rss": "^3.0.0",
"@astrojs/sitemap": "^3.0.0",
"@astrojs/tailwind": "^5.0.0",
Expand All @@ -28,8 +29,7 @@
"astro-expressive-code": "^0.22.2",
"fuse.js": "^6.6.2",
"github-slugger": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"preact": "^10.6.5",
"remark-callouts": "^2.0.0",
"remark-collapse": "^0.1.2",
"remark-toc": "^8.0.1",
Expand All @@ -39,7 +39,6 @@
},
"devDependencies": {
"@divriots/jampack": "^0.20.2",
"@types/react": "^18.2.21",
"@typescript-eslint/parser": "^6.7.0",
"astro-eslint-parser": "^0.15.0",
"commitizen": "^4.3.0",
Expand All @@ -51,14 +50,5 @@
"prettier": "^3.0.3",
"prettier-plugin-astro": "^0.12.0",
"prettier-plugin-tailwindcss": "^0.5.4"
},
"packageManager": "pnpm@8.6.12",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"react",
"react-dom"
]
}
}
}

0 comments on commit cf0b21d

Please sign in to comment.