@totaland/create-starter-kit 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +130 -18
- package/bin/index.js +109 -21
- package/package.json +2 -2
- package/templates/backend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
- package/templates/backend/.github/agents/api-architect.agent.md +41 -0
- package/templates/backend/.github/agents/code-reviewer.agent.md +26 -0
- package/templates/backend/.github/agents/code-simplifier.agent.md +41 -0
- package/templates/backend/.github/agents/code-skeptic.agent.md +74 -0
- package/templates/backend/.github/agents/docs-specialist.agent.md +25 -0
- package/templates/backend/.github/agents/implementation-plan.agent.md +160 -0
- package/templates/backend/.github/agents/janitor.agent.md +90 -0
- package/templates/backend/.github/agents/ms-sql-dba.agent.md +25 -0
- package/templates/backend/.github/agents/plan.agent.md +115 -0
- package/templates/backend/.github/agents/planner.agent.md +15 -0
- package/templates/backend/.github/agents/playwright-tester.agent.md +13 -0
- package/templates/backend/.github/agents/postgresql-dba.agent.md +18 -0
- package/templates/backend/.github/agents/prd.agent.md +202 -0
- package/templates/backend/.github/agents/research-technical-spike.agent.md +170 -0
- package/templates/backend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
- package/templates/backend/.github/agents/task-planner.agent.md +375 -0
- package/templates/backend/.github/agents/task-researcher.agent.md +255 -0
- package/templates/backend/.github/agents/tdd-green.agent.md +60 -0
- package/templates/backend/.github/agents/tdd-red.agent.md +60 -0
- package/templates/backend/.github/agents/tdd-refactor.agent.md +85 -0
- package/templates/backend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
- package/templates/backend/.github/agents/typescript-mcp-expert.agent.md +91 -0
- package/templates/backend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
- package/templates/backend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
- package/templates/backend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
- package/templates/backend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
- package/templates/backend/.github/instructions/a11y.instructions.md +369 -0
- package/templates/backend/.github/instructions/ms-sql-dba.instructions.md +25 -0
- package/templates/backend/.github/instructions/object-calisthenics.instructions.md +302 -0
- package/templates/backend/.github/instructions/performance-optimization.instructions.md +420 -0
- package/templates/backend/.github/instructions/playwright-python.instructions.md +62 -0
- package/templates/backend/.github/instructions/playwright-typescript.instructions.md +86 -0
- package/templates/backend/.github/instructions/security-and-owasp.instructions.md +51 -0
- package/templates/backend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
- package/templates/backend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
- package/templates/backend/.github/instructions/sql-sp-generation.instructions.md +74 -0
- package/templates/backend/.github/instructions/task-implementation.instructions.md +190 -0
- package/templates/backend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
- package/templates/backend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
- package/templates/backend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
- package/templates/backend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
- package/templates/backend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
- package/templates/backend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
- package/templates/backend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
- package/templates/backend/.github/prompts/breakdown-plan.prompt.md +508 -0
- package/templates/backend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
- package/templates/backend/.github/prompts/create-agentsmd.prompt.md +248 -0
- package/templates/backend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
- package/templates/backend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
- package/templates/backend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
- package/templates/backend/.github/prompts/create-implementation-plan.prompt.md +156 -0
- package/templates/backend/.github/prompts/create-llms.prompt.md +209 -0
- package/templates/backend/.github/prompts/create-specification.prompt.md +126 -0
- package/templates/backend/.github/prompts/create-technical-spike.prompt.md +230 -0
- package/templates/backend/.github/prompts/csharp-nunit.prompt.md +71 -0
- package/templates/backend/.github/prompts/ef-core.prompt.md +76 -0
- package/templates/backend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
- package/templates/backend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
- package/templates/backend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
- package/templates/backend/.github/prompts/java-junit.prompt.md +64 -0
- package/templates/backend/.github/prompts/memory-merger.prompt.md +107 -0
- package/templates/backend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
- package/templates/backend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
- package/templates/backend/.github/prompts/playwright-explore-website.prompt.md +19 -0
- package/templates/backend/.github/prompts/playwright-generate-test.prompt.md +19 -0
- package/templates/backend/.github/prompts/postgresql-code-review.prompt.md +214 -0
- package/templates/backend/.github/prompts/postgresql-optimization.prompt.md +406 -0
- package/templates/backend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
- package/templates/backend/.github/prompts/prompt-builder.prompt.md +142 -0
- package/templates/backend/.github/prompts/remember.prompt.md +125 -0
- package/templates/backend/.github/prompts/review-and-refactor.prompt.md +15 -0
- package/templates/backend/.github/prompts/sql-code-review.prompt.md +303 -0
- package/templates/backend/.github/prompts/sql-optimization.prompt.md +298 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
- package/templates/backend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
- package/templates/backend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
- package/templates/backend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
- package/templates/backend/.github/prompts/update-implementation-plan.prompt.md +157 -0
- package/templates/backend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
- package/templates/backend/Project_Folders_Structure_Blueprint.md +529 -0
- package/templates/backend/README.md +99 -0
- package/templates/backend/biome.json +45 -0
- package/{template → templates/backend}/drizzle.config.ts +1 -1
- package/{template → templates/backend}/package.json +9 -4
- package/templates/backend/pnpm-lock.yaml +4240 -0
- package/templates/backend/src/features/health/health.test.ts +23 -0
- package/{template → templates/backend}/src/features/health/index.ts +1 -0
- package/templates/backend/src/features/health/schemas.ts +29 -0
- package/templates/backend/src/features/orders/controller.ts +18 -0
- package/templates/backend/src/features/orders/index.ts +10 -0
- package/templates/backend/src/features/orders/schemas.ts +62 -0
- package/{template → templates/backend}/src/index.ts +3 -36
- package/templates/backend/src/lib/openapi.ts +25 -0
- package/templates/backend/src/lib/validateRequest.test.ts +84 -0
- package/templates/backend/src/lib/validateRequest.ts +72 -0
- package/{template → templates/backend}/tsconfig.json +2 -2
- package/{template → templates/backend}/vitest.config.ts +8 -1
- package/templates/frontend/.env.example +7 -0
- package/templates/frontend/.github/agents/ /360/237/216/255 planner.agent.md" +92 -0
- package/templates/frontend/.github/agents/api-architect.agent.md +41 -0
- package/templates/frontend/.github/agents/code-reviewer.agent.md +26 -0
- package/templates/frontend/.github/agents/code-simplifier.agent.md +41 -0
- package/templates/frontend/.github/agents/code-skeptic.agent.md +74 -0
- package/templates/frontend/.github/agents/docs-specialist.agent.md +25 -0
- package/templates/frontend/.github/agents/implementation-plan.agent.md +160 -0
- package/templates/frontend/.github/agents/janitor.agent.md +90 -0
- package/templates/frontend/.github/agents/ms-sql-dba.agent.md +25 -0
- package/templates/frontend/.github/agents/plan.agent.md +115 -0
- package/templates/frontend/.github/agents/planner.agent.md +15 -0
- package/templates/frontend/.github/agents/playwright-tester.agent.md +13 -0
- package/templates/frontend/.github/agents/postgresql-dba.agent.md +18 -0
- package/templates/frontend/.github/agents/prd.agent.md +202 -0
- package/templates/frontend/.github/agents/research-technical-spike.agent.md +170 -0
- package/templates/frontend/.github/agents/software-engineer-agent-v1.agent.md +165 -0
- package/templates/frontend/.github/agents/task-planner.agent.md +375 -0
- package/templates/frontend/.github/agents/task-researcher.agent.md +255 -0
- package/templates/frontend/.github/agents/tdd-green.agent.md +60 -0
- package/templates/frontend/.github/agents/tdd-red.agent.md +60 -0
- package/templates/frontend/.github/agents/tdd-refactor.agent.md +85 -0
- package/templates/frontend/.github/agents/tech-debt-remediation-plan.agent.md +50 -0
- package/templates/frontend/.github/agents/typescript-mcp-expert.agent.md +91 -0
- package/templates/frontend/.github/agents/ultimate-thinking-beastmode.agent.md +644 -0
- package/templates/frontend/.github/agents//360/237/216/255 generator.agent.md" +264 -0
- package/templates/frontend/.github/agents//360/237/216/255 healer.agent.md" +44 -0
- package/templates/frontend/.github/agents//360/237/216/255 pom.agent.md" +308 -0
- package/templates/frontend/.github/instructions/a11y.instructions.md +369 -0
- package/templates/frontend/.github/instructions/ms-sql-dba.instructions.md +25 -0
- package/templates/frontend/.github/instructions/object-calisthenics.instructions.md +302 -0
- package/templates/frontend/.github/instructions/performance-optimization.instructions.md +420 -0
- package/templates/frontend/.github/instructions/playwright-python.instructions.md +62 -0
- package/templates/frontend/.github/instructions/playwright-typescript.instructions.md +86 -0
- package/templates/frontend/.github/instructions/security-and-owasp.instructions.md +51 -0
- package/templates/frontend/.github/instructions/self-explanatory-code-commenting.instructions.md +162 -0
- package/templates/frontend/.github/instructions/spec-driven-workflow-v1.instructions.md +323 -0
- package/templates/frontend/.github/instructions/sql-sp-generation.instructions.md +74 -0
- package/templates/frontend/.github/instructions/task-implementation.instructions.md +190 -0
- package/templates/frontend/.github/instructions/typescript-mcp-server.instructions.md +228 -0
- package/templates/frontend/.github/prompts/ai-prompt-engineering-safety-review.prompt.md +229 -0
- package/templates/frontend/.github/prompts/architecture-blueprint-generator.prompt.md +321 -0
- package/templates/frontend/.github/prompts/breakdown-epic-arch.prompt.md +65 -0
- package/templates/frontend/.github/prompts/breakdown-epic-pm.prompt.md +57 -0
- package/templates/frontend/.github/prompts/breakdown-feature-implementation.prompt.md +127 -0
- package/templates/frontend/.github/prompts/breakdown-feature-prd.prompt.md +60 -0
- package/templates/frontend/.github/prompts/breakdown-plan.prompt.md +508 -0
- package/templates/frontend/.github/prompts/copilot-instructions-blueprint-generator.prompt.md +293 -0
- package/templates/frontend/.github/prompts/create-agentsmd.prompt.md +248 -0
- package/templates/frontend/.github/prompts/create-github-issue-feature-from-specification.prompt.md +27 -0
- package/templates/frontend/.github/prompts/create-github-issues-feature-from-implementation-plan.prompt.md +27 -0
- package/templates/frontend/.github/prompts/create-github-issues-for-unmet-specification-requirements.prompt.md +35 -0
- package/templates/frontend/.github/prompts/create-implementation-plan.prompt.md +156 -0
- package/templates/frontend/.github/prompts/create-llms.prompt.md +209 -0
- package/templates/frontend/.github/prompts/create-specification.prompt.md +126 -0
- package/templates/frontend/.github/prompts/create-technical-spike.prompt.md +230 -0
- package/templates/frontend/.github/prompts/csharp-nunit.prompt.md +71 -0
- package/templates/frontend/.github/prompts/ef-core.prompt.md +76 -0
- package/templates/frontend/.github/prompts/folder-structure-blueprint-generator.prompt.md +404 -0
- package/templates/frontend/.github/prompts/gen-specs-as-issues.prompt.md +165 -0
- package/templates/frontend/.github/prompts/generate-custom-instructions-from-codebase.prompt.md +239 -0
- package/templates/frontend/.github/prompts/java-junit.prompt.md +64 -0
- package/templates/frontend/.github/prompts/memory-merger.prompt.md +107 -0
- package/templates/frontend/.github/prompts/multi-stage-dockerfile.prompt.md +46 -0
- package/templates/frontend/.github/prompts/playwright-automation-fill-in-form.prompt.md +29 -0
- package/templates/frontend/.github/prompts/playwright-explore-website.prompt.md +19 -0
- package/templates/frontend/.github/prompts/playwright-generate-test.prompt.md +19 -0
- package/templates/frontend/.github/prompts/postgresql-code-review.prompt.md +214 -0
- package/templates/frontend/.github/prompts/postgresql-optimization.prompt.md +406 -0
- package/templates/frontend/.github/prompts/project-workflow-analysis-blueprint-generator.prompt.md +294 -0
- package/templates/frontend/.github/prompts/prompt-builder.prompt.md +142 -0
- package/templates/frontend/.github/prompts/remember.prompt.md +125 -0
- package/templates/frontend/.github/prompts/review-and-refactor.prompt.md +15 -0
- package/templates/frontend/.github/prompts/sql-code-review.prompt.md +303 -0
- package/templates/frontend/.github/prompts/sql-optimization.prompt.md +298 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-agents.prompt.md +72 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-chatmodes.prompt.md +71 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-collections.prompt.md +149 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-instructions.prompt.md +88 -0
- package/templates/frontend/.github/prompts/suggest-awesome-github-copilot-prompts.prompt.md +71 -0
- package/templates/frontend/.github/prompts/technology-stack-blueprint-generator.prompt.md +242 -0
- package/templates/frontend/.github/prompts/typescript-mcp-server-generator.prompt.md +90 -0
- package/templates/frontend/.github/prompts/update-implementation-plan.prompt.md +157 -0
- package/templates/frontend/.github/prompts/update-markdown-file-index.prompt.md +76 -0
- package/templates/frontend/README.md +199 -0
- package/templates/frontend/biome.json +45 -0
- package/templates/frontend/components.json +22 -0
- package/templates/frontend/index.html +13 -0
- package/templates/frontend/package.json +44 -0
- package/templates/frontend/pnpm-lock.yaml +2011 -0
- package/templates/frontend/postcss.config.js +6 -0
- package/templates/frontend/public/vite.svg +1 -0
- package/templates/frontend/src/App.css +42 -0
- package/templates/frontend/src/App.tsx +17 -0
- package/templates/frontend/src/assets/react.svg +1 -0
- package/templates/frontend/src/components/layout/layout.component.tsx +31 -0
- package/templates/frontend/src/components/menu-toggle-icon.tsx +53 -0
- package/templates/frontend/src/components/ui/button.tsx +57 -0
- package/templates/frontend/src/docs/RECOMMENDED_LIBRARIES.md +226 -0
- package/templates/frontend/src/docs/SETUP_SUMMARY.md +162 -0
- package/templates/frontend/src/hooks/use-scroll.ts +21 -0
- package/templates/frontend/src/index.css +121 -0
- package/templates/frontend/src/lib/api-client.ts +46 -0
- package/templates/frontend/src/lib/utils.ts +6 -0
- package/templates/frontend/src/main.tsx +30 -0
- package/templates/frontend/src/pages/about/about.page.tsx +50 -0
- package/templates/frontend/src/pages/home/home.page.tsx +43 -0
- package/templates/frontend/tailwind.config.js +59 -0
- package/templates/frontend/tsconfig.app.json +41 -0
- package/templates/frontend/tsconfig.json +13 -0
- package/templates/frontend/tsconfig.node.json +26 -0
- package/templates/frontend/vite.config.ts +14 -0
- package/template/.env.example +0 -8
- package/template/AGENTS.md +0 -23
- package/template/ARCHITECTURE.md +0 -53
- package/template/ORDER_SYSTEM.md +0 -93
- package/template/biome.json +0 -3
- package/template/src/features/orders/controller.ts +0 -13
- package/template/src/features/orders/index.ts +0 -7
- /package/{template → templates/backend}/knip.json +0 -0
- /package/{template → templates/backend}/playwright.config.ts +0 -0
- /package/{template → templates/backend}/pnpm-workspace.yaml +0 -0
- /package/{template → templates/backend}/src/features/health/controller.ts +0 -0
- /package/{template → templates/backend}/tsconfig.build.json +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#root {
|
|
2
|
+
max-width: 1280px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
padding: 2rem;
|
|
5
|
+
text-align: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.logo {
|
|
9
|
+
height: 6em;
|
|
10
|
+
padding: 1.5em;
|
|
11
|
+
will-change: filter;
|
|
12
|
+
transition: filter 300ms;
|
|
13
|
+
}
|
|
14
|
+
.logo:hover {
|
|
15
|
+
filter: drop-shadow(0 0 2em #646cffaa);
|
|
16
|
+
}
|
|
17
|
+
.logo.react:hover {
|
|
18
|
+
filter: drop-shadow(0 0 2em #61dafbaa);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes logo-spin {
|
|
22
|
+
from {
|
|
23
|
+
transform: rotate(0deg);
|
|
24
|
+
}
|
|
25
|
+
to {
|
|
26
|
+
transform: rotate(360deg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
31
|
+
a:nth-of-type(2) .logo {
|
|
32
|
+
animation: logo-spin infinite 20s linear;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.card {
|
|
37
|
+
padding: 2em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.read-the-docs {
|
|
41
|
+
color: #888;
|
|
42
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Route, Routes } from 'react-router-dom';
|
|
2
|
+
import { Layout } from './components/layout/layout.component';
|
|
3
|
+
import { AboutPage } from './pages/about/about.page';
|
|
4
|
+
import { HomePage } from './pages/home/home.page';
|
|
5
|
+
|
|
6
|
+
function App() {
|
|
7
|
+
return (
|
|
8
|
+
<Layout>
|
|
9
|
+
<Routes>
|
|
10
|
+
<Route path="/" element={<HomePage />} />
|
|
11
|
+
<Route path="/about" element={<AboutPage />} />
|
|
12
|
+
</Routes>
|
|
13
|
+
</Layout>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default App;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { Link } from 'react-router-dom';
|
|
3
|
+
|
|
4
|
+
interface LayoutProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function Layout({ children }: LayoutProps) {
|
|
9
|
+
return (
|
|
10
|
+
<div className="min-h-screen bg-background">
|
|
11
|
+
<header className="border-b">
|
|
12
|
+
<nav className="container mx-auto px-4 py-4">
|
|
13
|
+
<div className="flex items-center justify-between">
|
|
14
|
+
<Link to="/" className="text-xl font-bold">
|
|
15
|
+
Starter Kit
|
|
16
|
+
</Link>
|
|
17
|
+
<div className="flex gap-4">
|
|
18
|
+
<Link to="/" className="hover:text-primary">
|
|
19
|
+
Home
|
|
20
|
+
</Link>
|
|
21
|
+
<Link to="/about" className="hover:text-primary">
|
|
22
|
+
About
|
|
23
|
+
</Link>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</nav>
|
|
27
|
+
</header>
|
|
28
|
+
<main className="container mx-auto px-4 py-8">{children}</main>
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { cn } from "@/lib/utils";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
|
|
4
|
+
type MenuToggleProps = React.ComponentProps<"svg"> & {
|
|
5
|
+
open: boolean;
|
|
6
|
+
duration?: number;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export function MenuToggleIcon({
|
|
10
|
+
open,
|
|
11
|
+
className,
|
|
12
|
+
fill = "none",
|
|
13
|
+
stroke = "currentColor",
|
|
14
|
+
strokeWidth = 2.5,
|
|
15
|
+
strokeLinecap = "round",
|
|
16
|
+
strokeLinejoin = "round",
|
|
17
|
+
duration = 500,
|
|
18
|
+
...props
|
|
19
|
+
}: MenuToggleProps) {
|
|
20
|
+
return (
|
|
21
|
+
<svg
|
|
22
|
+
className={cn(
|
|
23
|
+
"transition-transform ease-in-out",
|
|
24
|
+
open && "-rotate-45",
|
|
25
|
+
className
|
|
26
|
+
)}
|
|
27
|
+
fill={fill}
|
|
28
|
+
stroke={stroke}
|
|
29
|
+
strokeLinecap={strokeLinecap}
|
|
30
|
+
strokeLinejoin={strokeLinejoin}
|
|
31
|
+
strokeWidth={strokeWidth}
|
|
32
|
+
style={{
|
|
33
|
+
transitionDuration: `${duration}ms`,
|
|
34
|
+
}}
|
|
35
|
+
viewBox="0 0 32 32"
|
|
36
|
+
{...props}
|
|
37
|
+
>
|
|
38
|
+
<path
|
|
39
|
+
className={cn(
|
|
40
|
+
"transition-all ease-in-out",
|
|
41
|
+
open
|
|
42
|
+
? "[stroke-dasharray:20_300] [stroke-dashoffset:-32.42px]"
|
|
43
|
+
: "[stroke-dasharray:12_63]"
|
|
44
|
+
)}
|
|
45
|
+
d="M27 10 13 10C10.8 10 9 8.2 9 6 9 3.5 10.8 2 13 2 15.2 2 17 3.8 17 6L17 26C17 28.2 18.8 30 21 30 23.2 30 25 28.2 25 26 25 23.8 23.2 22 21 22L7 22"
|
|
46
|
+
style={{
|
|
47
|
+
transitionDuration: `${duration}ms`,
|
|
48
|
+
}}
|
|
49
|
+
/>
|
|
50
|
+
<path d="M7 16 27 16" />
|
|
51
|
+
</svg>
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot"
|
|
3
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
|
+
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
|
|
7
|
+
const buttonVariants = cva(
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default:
|
|
13
|
+
"bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
14
|
+
destructive:
|
|
15
|
+
"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
16
|
+
outline:
|
|
17
|
+
"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
18
|
+
secondary:
|
|
19
|
+
"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
20
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
21
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
22
|
+
},
|
|
23
|
+
size: {
|
|
24
|
+
default: "h-9 px-4 py-2",
|
|
25
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
26
|
+
lg: "h-10 rounded-md px-8",
|
|
27
|
+
icon: "h-9 w-9",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
defaultVariants: {
|
|
31
|
+
variant: "default",
|
|
32
|
+
size: "default",
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
export interface ButtonProps
|
|
38
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
39
|
+
VariantProps<typeof buttonVariants> {
|
|
40
|
+
asChild?: boolean
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
44
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
45
|
+
const Comp = asChild ? Slot : "button"
|
|
46
|
+
return (
|
|
47
|
+
<Comp
|
|
48
|
+
className={cn(buttonVariants({ variant, size, className }))}
|
|
49
|
+
ref={ref}
|
|
50
|
+
{...props}
|
|
51
|
+
/>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
Button.displayName = "Button"
|
|
56
|
+
|
|
57
|
+
export { Button, buttonVariants }
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Additional UI Libraries & Tools to Consider
|
|
2
|
+
|
|
3
|
+
This document lists recommended libraries and tools to enhance your frontend starter kit, organized by category.
|
|
4
|
+
|
|
5
|
+
## UI Components & Styling
|
|
6
|
+
|
|
7
|
+
### Already Included ✅
|
|
8
|
+
- **shadcn/ui** - Copy-paste React components built with Radix UI and Tailwind
|
|
9
|
+
- **Tailwind CSS** - Utility-first CSS framework
|
|
10
|
+
- **Lucide React** - Beautiful, consistent icon library
|
|
11
|
+
|
|
12
|
+
### Consider Adding
|
|
13
|
+
|
|
14
|
+
#### Animation Libraries
|
|
15
|
+
- **Framer Motion** - Production-ready motion library for React
|
|
16
|
+
```bash
|
|
17
|
+
pnpm add framer-motion
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
#### Form Libraries
|
|
21
|
+
- **React Hook Form** - Performant, flexible forms with easy validation
|
|
22
|
+
```bash
|
|
23
|
+
pnpm add react-hook-form @hookform/resolvers
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
#### Date & Time
|
|
27
|
+
- **date-fns** - Modern JavaScript date utility library
|
|
28
|
+
```bash
|
|
29
|
+
pnpm add date-fns
|
|
30
|
+
```
|
|
31
|
+
- **react-day-picker** - Flexible date picker component
|
|
32
|
+
```bash
|
|
33
|
+
pnpm add react-day-picker
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
#### Charts & Data Visualization
|
|
37
|
+
- **Recharts** - Composable charting library built with React
|
|
38
|
+
```bash
|
|
39
|
+
pnpm add recharts
|
|
40
|
+
```
|
|
41
|
+
- **Victory** - React charting library
|
|
42
|
+
```bash
|
|
43
|
+
pnpm add victory
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## State Management
|
|
47
|
+
|
|
48
|
+
- **Zustand** - Small, fast state management (simpler alternative to Redux)
|
|
49
|
+
```bash
|
|
50
|
+
pnpm add zustand
|
|
51
|
+
```
|
|
52
|
+
- **Jotai** - Primitive and flexible state management
|
|
53
|
+
```bash
|
|
54
|
+
pnpm add jotai
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Utilities
|
|
58
|
+
|
|
59
|
+
#### Validation (Already Included ✅)
|
|
60
|
+
- **Zod** - TypeScript-first schema validation
|
|
61
|
+
|
|
62
|
+
#### HTTP Client
|
|
63
|
+
- **Axios** - Promise-based HTTP client (alternative to fetch)
|
|
64
|
+
```bash
|
|
65
|
+
pnpm add axios
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
#### Formatting
|
|
69
|
+
- **clsx** (Already included ✅) - Tiny utility for constructing className strings
|
|
70
|
+
- **tailwind-merge** (Already included ✅) - Merge Tailwind CSS classes
|
|
71
|
+
|
|
72
|
+
## Developer Experience
|
|
73
|
+
|
|
74
|
+
### Already Included ✅
|
|
75
|
+
- **Biome** - Fast linter and formatter
|
|
76
|
+
- **TypeScript** - Static type checking
|
|
77
|
+
- **Vite** - Lightning-fast build tool
|
|
78
|
+
|
|
79
|
+
### Consider Adding
|
|
80
|
+
|
|
81
|
+
#### Testing
|
|
82
|
+
- **Vitest** - Vite-native unit testing framework
|
|
83
|
+
```bash
|
|
84
|
+
pnpm add -D vitest @vitest/ui
|
|
85
|
+
```
|
|
86
|
+
- **Testing Library** - Simple testing utilities
|
|
87
|
+
```bash
|
|
88
|
+
pnpm add -D @testing-library/react @testing-library/jest-dom @testing-library/user-event
|
|
89
|
+
```
|
|
90
|
+
- **Playwright** - End-to-end testing
|
|
91
|
+
```bash
|
|
92
|
+
pnpm add -D @playwright/test
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
#### Documentation
|
|
96
|
+
- **Storybook** - Component documentation and development
|
|
97
|
+
```bash
|
|
98
|
+
pnpm dlx storybook@latest init
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## Authentication & Security
|
|
102
|
+
|
|
103
|
+
- **Auth.js (NextAuth.js)** - Authentication for React
|
|
104
|
+
```bash
|
|
105
|
+
pnpm add next-auth
|
|
106
|
+
```
|
|
107
|
+
- **Clerk** - Complete authentication and user management
|
|
108
|
+
```bash
|
|
109
|
+
pnpm add @clerk/clerk-react
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## File Handling
|
|
113
|
+
|
|
114
|
+
- **React Dropzone** - File upload with drag and drop
|
|
115
|
+
```bash
|
|
116
|
+
pnpm add react-dropzone
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Tables & Data Grid
|
|
120
|
+
|
|
121
|
+
- **TanStack Table** - Headless UI for building powerful tables
|
|
122
|
+
```bash
|
|
123
|
+
pnpm add @tanstack/react-table
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## Internationalization (i18n)
|
|
127
|
+
|
|
128
|
+
- **react-i18next** - Internationalization framework
|
|
129
|
+
```bash
|
|
130
|
+
pnpm add react-i18next i18next
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Accessibility
|
|
134
|
+
|
|
135
|
+
- **@radix-ui/react-*** (Already included via shadcn/ui ✅) - Accessible component primitives
|
|
136
|
+
- **react-aria** - Adobe's accessible UI primitives
|
|
137
|
+
```bash
|
|
138
|
+
pnpm add react-aria
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## Performance Monitoring
|
|
142
|
+
|
|
143
|
+
- **@vercel/analytics** - Analytics for your app
|
|
144
|
+
```bash
|
|
145
|
+
pnpm add @vercel/analytics
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## Recommendations
|
|
149
|
+
|
|
150
|
+
### Minimal Setup (Current)
|
|
151
|
+
You currently have:
|
|
152
|
+
- ✅ React Router (routing)
|
|
153
|
+
- ✅ TanStack Query (data fetching)
|
|
154
|
+
- ✅ shadcn/ui (components)
|
|
155
|
+
- ✅ Tailwind CSS (styling)
|
|
156
|
+
- ✅ Drizzle ORM (database)
|
|
157
|
+
- ✅ Biome (linting/formatting)
|
|
158
|
+
|
|
159
|
+
### Essential Additions
|
|
160
|
+
Consider adding these for most projects:
|
|
161
|
+
1. **React Hook Form** - For complex forms
|
|
162
|
+
2. **Framer Motion** - For animations
|
|
163
|
+
3. **date-fns** - For date manipulation
|
|
164
|
+
4. **Zustand** - For global state (if needed)
|
|
165
|
+
|
|
166
|
+
### Full-Featured Setup
|
|
167
|
+
For a production-ready application:
|
|
168
|
+
1. All essential additions above
|
|
169
|
+
2. **Vitest + Testing Library** - For testing
|
|
170
|
+
3. **TanStack Table** - For data tables
|
|
171
|
+
4. **Auth.js or Clerk** - For authentication
|
|
172
|
+
5. **Recharts** - For data visualization
|
|
173
|
+
6. **React Dropzone** - For file uploads
|
|
174
|
+
|
|
175
|
+
## Usage Examples
|
|
176
|
+
|
|
177
|
+
### Adding shadcn/ui Components
|
|
178
|
+
|
|
179
|
+
The starter is configured for shadcn/ui. Add components via CLI:
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Add specific components
|
|
183
|
+
pnpm dlx shadcn@latest add button
|
|
184
|
+
pnpm dlx shadcn@latest add card dialog form input
|
|
185
|
+
|
|
186
|
+
# View all available components
|
|
187
|
+
pnpm dlx shadcn@latest add
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Using TanStack Query
|
|
191
|
+
|
|
192
|
+
Example of data fetching with TanStack Query:
|
|
193
|
+
|
|
194
|
+
```typescript
|
|
195
|
+
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
196
|
+
|
|
197
|
+
// Fetch data
|
|
198
|
+
function MyComponent() {
|
|
199
|
+
const { data, isLoading, error } = useQuery({
|
|
200
|
+
queryKey: ['todos'],
|
|
201
|
+
queryFn: () => fetch('/api/todos').then(r => r.json()),
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// Mutations
|
|
205
|
+
const queryClient = useQueryClient();
|
|
206
|
+
const mutation = useMutation({
|
|
207
|
+
mutationFn: (newTodo) => fetch('/api/todos', {
|
|
208
|
+
method: 'POST',
|
|
209
|
+
body: JSON.stringify(newTodo),
|
|
210
|
+
}),
|
|
211
|
+
onSuccess: () => {
|
|
212
|
+
queryClient.invalidateQueries({ queryKey: ['todos'] });
|
|
213
|
+
},
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Path Aliases
|
|
219
|
+
|
|
220
|
+
The project already has `@` configured as an alias:
|
|
221
|
+
|
|
222
|
+
```typescript
|
|
223
|
+
import { cn } from '@/lib/utils';
|
|
224
|
+
import { Button } from '@/components/ui/button';
|
|
225
|
+
import { HomePage } from '@/pages/home/HomePage';
|
|
226
|
+
```
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
# Frontend Starter Kit - Setup Summary
|
|
2
|
+
|
|
3
|
+
## What Was Done
|
|
4
|
+
|
|
5
|
+
### ✅ Replaced ESLint with Biome
|
|
6
|
+
- Removed all ESLint dependencies and configuration
|
|
7
|
+
- Added Biome 2.3.7 with proper configuration
|
|
8
|
+
- Updated scripts: `lint`, `lint:fix`, `format`
|
|
9
|
+
|
|
10
|
+
### ✅ Updated All Packages to Latest
|
|
11
|
+
Used `npm-check-updates` to update all dependencies:
|
|
12
|
+
- React 19.2.0
|
|
13
|
+
- Tailwind CSS 4.1.17 (major upgrade from v3)
|
|
14
|
+
- TanStack Query 5.90.10
|
|
15
|
+
- React Router 7.9.6
|
|
16
|
+
- Radix UI components (latest)
|
|
17
|
+
- And many more...
|
|
18
|
+
|
|
19
|
+
### ✅ Added Essential UI Libraries
|
|
20
|
+
|
|
21
|
+
#### Dependencies
|
|
22
|
+
- `@radix-ui/*` - Accessible component primitives (for shadcn/ui)
|
|
23
|
+
- `@tanstack/react-query` + devtools - Data fetching and caching
|
|
24
|
+
- `class-variance-authority` - For component variants
|
|
25
|
+
- `clsx` - Classname utility
|
|
26
|
+
- `drizzle-orm` - Type-safe database ORM
|
|
27
|
+
- `lucide-react` - Icon library
|
|
28
|
+
- `react-router-dom` - Client-side routing
|
|
29
|
+
- `tailwind-merge` - Merge Tailwind classes
|
|
30
|
+
- `tailwindcss-animate` - Animation utilities
|
|
31
|
+
- `zod` - Schema validation
|
|
32
|
+
|
|
33
|
+
#### Dev Dependencies
|
|
34
|
+
- `@biomejs/biome` - Linter and formatter
|
|
35
|
+
- `@tailwindcss/postcss` - Tailwind v4 PostCSS plugin
|
|
36
|
+
- `autoprefixer` - CSS autoprefixer
|
|
37
|
+
- `drizzle-kit` - Drizzle ORM CLI
|
|
38
|
+
- `tailwindcss` - Utility-first CSS framework
|
|
39
|
+
|
|
40
|
+
### ✅ Configured for shadcn/ui
|
|
41
|
+
- Created `components.json` for shadcn CLI
|
|
42
|
+
- Set up path aliases (`@/` → `src/`)
|
|
43
|
+
- Configured Tailwind with shadcn-compatible theme variables
|
|
44
|
+
- Components can be added via: `pnpm dlx shadcn@latest add button`
|
|
45
|
+
|
|
46
|
+
### ✅ Set Up Modern Build Stack
|
|
47
|
+
- Tailwind CSS v4 with new `@theme` directive
|
|
48
|
+
- PostCSS with proper autoprefixer
|
|
49
|
+
- Path aliases in both TypeScript and Vite
|
|
50
|
+
- Proper ES module syntax throughout
|
|
51
|
+
|
|
52
|
+
### ✅ Added Folder Structure
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
src/
|
|
56
|
+
├── components/
|
|
57
|
+
│ ├── layout/
|
|
58
|
+
│ │ └── Layout.tsx # Main layout with navigation
|
|
59
|
+
│ └── ui/ # (empty - add shadcn components here)
|
|
60
|
+
├── hooks/ # (empty - for custom hooks)
|
|
61
|
+
├── lib/
|
|
62
|
+
│ ├── api-client.ts # HTTP client helper
|
|
63
|
+
│ └── utils.ts # cn() helper for classnames
|
|
64
|
+
├── pages/
|
|
65
|
+
│ ├── home/
|
|
66
|
+
│ │ └── HomePage.tsx # Home page with TanStack Query example
|
|
67
|
+
│ └── about/
|
|
68
|
+
│ └── AboutPage.tsx # About page
|
|
69
|
+
├── App.tsx # Main app with React Router
|
|
70
|
+
├── main.tsx # Entry point with providers
|
|
71
|
+
└── index.css # Global styles + Tailwind v4 theme
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### ✅ Added Configuration Files
|
|
75
|
+
- `biome.json` - Biome linter/formatter config
|
|
76
|
+
- `tailwind.config.js` - Tailwind v4 config
|
|
77
|
+
- `postcss.config.js` - PostCSS with Tailwind plugin
|
|
78
|
+
- `components.json` - shadcn/ui CLI config
|
|
79
|
+
- `.env.example` - Environment variables template
|
|
80
|
+
|
|
81
|
+
### ✅ Created Documentation
|
|
82
|
+
- `README.md` - Complete setup and usage guide
|
|
83
|
+
- `RECOMMENDED_LIBRARIES.md` - Additional libraries to consider
|
|
84
|
+
|
|
85
|
+
## Quick Start
|
|
86
|
+
|
|
87
|
+
1. **Install dependencies:**
|
|
88
|
+
```bash
|
|
89
|
+
cd frontend
|
|
90
|
+
pnpm install
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
2. **Start development server:**
|
|
94
|
+
```bash
|
|
95
|
+
pnpm dev
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
3. **Add shadcn/ui components:**
|
|
99
|
+
```bash
|
|
100
|
+
pnpm dlx shadcn@latest add button card dialog
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Scripts Available
|
|
104
|
+
|
|
105
|
+
- `pnpm dev` - Start development server
|
|
106
|
+
- `pnpm build` - Build for production
|
|
107
|
+
- `pnpm preview` - Preview production build
|
|
108
|
+
- `pnpm lint` - Check code with Biome
|
|
109
|
+
- `pnpm lint:fix` - Fix linting issues
|
|
110
|
+
- `pnpm format` - Format code
|
|
111
|
+
|
|
112
|
+
## Important Notes
|
|
113
|
+
|
|
114
|
+
### Tailwind CSS v4
|
|
115
|
+
This project uses Tailwind CSS v4, which has some changes from v3:
|
|
116
|
+
- Uses `@import 'tailwindcss'` instead of `@tailwind` directives
|
|
117
|
+
- Theme configuration uses `@theme` directive in CSS
|
|
118
|
+
- Requires `@tailwindcss/postcss` plugin
|
|
119
|
+
- Colors are prefixed with `--color-*` in the theme
|
|
120
|
+
|
|
121
|
+
### shadcn/ui
|
|
122
|
+
Components are NOT pre-installed. Add them as needed:
|
|
123
|
+
```bash
|
|
124
|
+
pnpm dlx shadcn@latest add <component-name>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
Components will be added to `src/components/ui/` and can be customized.
|
|
128
|
+
|
|
129
|
+
### Path Aliases
|
|
130
|
+
Use `@/` to import from src directory:
|
|
131
|
+
```typescript
|
|
132
|
+
import { cn } from '@/lib/utils';
|
|
133
|
+
import { Button } from '@/components/ui/button';
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Testing the Setup
|
|
137
|
+
|
|
138
|
+
Build completed successfully! ✅
|
|
139
|
+
- TypeScript compilation: ✅
|
|
140
|
+
- Vite build: ✅
|
|
141
|
+
- Total build size: ~262KB (gzipped: ~83KB)
|
|
142
|
+
|
|
143
|
+
## Next Steps
|
|
144
|
+
|
|
145
|
+
1. Review the folder structure and example pages
|
|
146
|
+
2. Add shadcn/ui components as needed
|
|
147
|
+
3. Check `RECOMMENDED_LIBRARIES.md` for additional tools
|
|
148
|
+
4. Customize the theme in `src/index.css`
|
|
149
|
+
5. Add your API endpoints and data fetching logic
|
|
150
|
+
|
|
151
|
+
## Tech Stack Summary
|
|
152
|
+
|
|
153
|
+
- ⚛️ React 19 + TypeScript
|
|
154
|
+
- 🎨 Tailwind CSS v4
|
|
155
|
+
- 🎯 shadcn/ui (Radix UI + Tailwind)
|
|
156
|
+
- 🔄 TanStack Query v5
|
|
157
|
+
- 🗺️ React Router v7
|
|
158
|
+
- 🗄️ Drizzle ORM
|
|
159
|
+
- 🧹 Biome (linting + formatting)
|
|
160
|
+
- ⚡ Vite 7
|
|
161
|
+
- 🔤 Lucide React (icons)
|
|
162
|
+
- ✅ Zod (validation)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useCallback, useEffect, useState } from "react";
|
|
2
|
+
|
|
3
|
+
export function useScroll(threshold: number) {
|
|
4
|
+
const [scrolled, setScrolled] = useState(false);
|
|
5
|
+
|
|
6
|
+
const onScroll = useCallback(() => {
|
|
7
|
+
setScrolled(window.scrollY > threshold);
|
|
8
|
+
}, [threshold]);
|
|
9
|
+
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
window.addEventListener("scroll", onScroll);
|
|
12
|
+
return () => window.removeEventListener("scroll", onScroll);
|
|
13
|
+
}, [onScroll]);
|
|
14
|
+
|
|
15
|
+
// also check on first load
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
onScroll();
|
|
18
|
+
}, [onScroll]);
|
|
19
|
+
|
|
20
|
+
return scrolled;
|
|
21
|
+
}
|