Skip to content

Commit f5353e4

Browse files
dsactiviclaude
andcommitted
Add React/Vite build configuration
- tailwind.config.js with shadcn/ui setup - postcss.config.js for Tailwind processing - tsconfig.json for React JSX support - tsconfig.node.json for Vite config - Added missing devDependencies (@types/react, tailwindcss, etc.) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b55deac commit f5353e4

5 files changed

Lines changed: 61 additions & 13 deletions

File tree

‎package.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@
6767
"@types/better-sqlite3": "^7.6.11",
6868
"@types/express": "^4.17.21",
6969
"@types/node": "^20.12.12",
70+
"@types/react": "^18.3.0",
71+
"@types/react-dom": "^18.3.0",
7072
"@vitejs/plugin-react-swc": "^3.10.2",
73+
"autoprefixer": "^10.4.20",
74+
"postcss": "^8.4.47",
75+
"tailwindcss": "^3.4.14",
76+
"tailwindcss-animate": "^1.0.7",
7177
"tsx": "^4.16.2",
7278
"typescript": "^5.5.4",
7379
"vite": "6.3.5"

‎postcss.config.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

‎tailwind.config.js‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
darkMode: ["class"],
4+
content: [
5+
"./index.html",
6+
"./src/**/*.{js,ts,jsx,tsx}",
7+
],
8+
theme: {
9+
extend: {
10+
borderRadius: {
11+
lg: "var(--radius)",
12+
md: "calc(var(--radius) - 2px)",
13+
sm: "calc(var(--radius) - 4px)",
14+
},
15+
colors: {},
16+
},
17+
},
18+
plugins: [require("tailwindcss-animate")],
19+
}

‎tsconfig.json‎

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2022",
4-
"module": "ES2022",
5-
"moduleResolution": "Bundler",
6-
"outDir": "dist",
7-
"rootDir": "src",
8-
"strict": true,
9-
"esModuleInterop": true,
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"module": "ESNext",
107
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true,
8+
"moduleResolution": "bundler",
9+
"allowImportingTsExtensions": true,
1210
"resolveJsonModule": true,
13-
"declaration": true,
14-
"declarationMap": true,
15-
"sourceMap": true
11+
"isolatedModules": true,
12+
"noEmit": true,
13+
"jsx": "react-jsx",
14+
"strict": true,
15+
"noUnusedLocals": true,
16+
"noUnusedParameters": true,
17+
"noFallthroughCasesInSwitch": true,
18+
"baseUrl": ".",
19+
"paths": {
20+
"@/*": ["./src/*"]
21+
}
1622
},
17-
"include": ["src/**/*.ts"],
18-
"exclude": ["node_modules", "dist", "tests"]
23+
"include": ["src"],
24+
"references": [{ "path": "./tsconfig.node.json" }]
1925
}

‎tsconfig.node.json‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"composite": true,
4+
"skipLibCheck": true,
5+
"module": "ESNext",
6+
"moduleResolution": "bundler",
7+
"allowSyntheticDefaultImports": true,
8+
"strict": true
9+
},
10+
"include": ["vite.config.ts"]
11+
}

0 commit comments

Comments
 (0)