Skip to content

Commit 3401be1

Browse files
committed
chore: add react to site for shadcn
1 parent 21902eb commit 3401be1

File tree

4 files changed

+202
-11
lines changed

4 files changed

+202
-11
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ import robotsTxt from "astro-robots-txt";
99

1010
import icon from "astro-icon";
1111

12+
import react from "@astrojs/react";
13+
1214
// https://astro.build/config
1315
export default defineConfig({
1416
site: "https://jhilker.com",
1517
outDir: "public",
1618
publicDir: "static",
17-
integrations: [mdx(), tailwind(), alpinejs(), sitemap(), robotsTxt(), icon()],
19+
integrations: [mdx(), tailwind(), alpinejs(), sitemap(), robotsTxt(), icon(), react()],
1820
markdown: {
1921
rehypePlugins: [rehypeHeadingIds, remarkToc],
2022
shikiConfig: {

package-lock.json

Lines changed: 166 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,21 @@
1515
"dependencies": {
1616
"@astrojs/alpinejs": "^0.4.0",
1717
"@astrojs/mdx": "^3.1.9",
18+
"@astrojs/react": "^3.6.3",
1819
"@astrojs/rss": "^4.0.9",
1920
"@astrojs/sitemap": "^3.2.1",
2021
"@astrojs/tailwind": "^5.1.2",
2122
"@types/alpinejs": "^3.13.5",
23+
"@types/react": "^18.3.12",
24+
"@types/react-dom": "^18.3.1",
2225
"alpinejs": "^3.13.2",
2326
"astro": "^4.16.14",
2427
"astro-icon": "^1.1.0",
2528
"astro-robots-txt": "^1.0.0",
2629
"dompurify": "^3.0.6",
2730
"fuse.js": "^7.0.0",
31+
"react": "^18.3.1",
32+
"react-dom": "^18.3.1",
2833
"tailwindcss": "^3.3.5"
2934
},
3035
"devDependencies": {

tsconfig.json

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,33 @@
22
"extends": "astro/tsconfigs/strict",
33
"compilerOptions": {
44
"baseUrl": ".",
5-
"types": ["unplugin-icons/types/astro"],
5+
"types": [
6+
"unplugin-icons/types/astro"
7+
],
68
"paths": {
7-
"@components/*": ["src/components/*"],
8-
"@assets/*": ["src/assets/*"],
9-
"@layouts/*": ["src/layouts/*"],
10-
"@lib/*": ["src/lib/*"],
11-
"@consts": ["src/consts.ts"],
12-
"@types": ["src/types.ts"],
13-
"@content": ["src/content/*"]
14-
}
9+
"@components/*": [
10+
"src/components/*"
11+
],
12+
"@assets/*": [
13+
"src/assets/*"
14+
],
15+
"@layouts/*": [
16+
"src/layouts/*"
17+
],
18+
"@lib/*": [
19+
"src/lib/*"
20+
],
21+
"@consts": [
22+
"src/consts.ts"
23+
],
24+
"@types": [
25+
"src/types.ts"
26+
],
27+
"@content": [
28+
"src/content/*"
29+
]
30+
},
31+
"jsx": "react-jsx",
32+
"jsxImportSource": "react"
1533
}
16-
}
34+
}

0 commit comments

Comments
 (0)