feat: initial monorepo setup with Turborepo, Next.js 16, and .ts-only components
- Set up Turborepo monorepo with pnpm workspaces - Configure shared configs (Biome, ESLint, Tailwind, TypeScript) - Create @tpmjs/ui package with .ts-only React components (Button, Card) - Create @tpmjs/utils package with utility functions - Create @tpmjs/types package with Zod schemas - Create @tpmjs/env package for environment validation - Set up Next.js 16 App Router application - Configure Storybook in separate package - Add GitHub Actions CI/CD workflows - Configure Changesets for versioning and publishing - Set up Lefthook pre-commit hooks - Add comprehensive documentation Key architecture decisions: - All React components use .ts extension with createElement (no JSX) - No barrel exports (index.ts) - direct imports required - Module boundaries enforced via ESLint - tsup for package builds with ESM + types - Tailwind CSS with shared design tokens 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
bc2f4a01cf
9 changed files with 218 additions and 0 deletions
33
packages/storybook/package.json
Normal file
33
packages/storybook/package.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"name": "@tpmjs/storybook",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "storybook dev -p 6006",
|
||||
"build": "storybook build",
|
||||
"clean": "rm -rf storybook-static .turbo"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tpmjs/ui": "workspace:*",
|
||||
"react": "^19.0.0",
|
||||
"react-dom": "^19.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^8.5.0",
|
||||
"@storybook/addon-interactions": "^8.5.0",
|
||||
"@storybook/addon-links": "^8.5.0",
|
||||
"@storybook/blocks": "^8.5.0",
|
||||
"@storybook/react": "^8.5.0",
|
||||
"@storybook/react-vite": "^8.5.0",
|
||||
"@storybook/test": "^8.5.0",
|
||||
"@tpmjs/tailwind-config": "workspace:*",
|
||||
"@types/react": "^19.0.2",
|
||||
"@types/react-dom": "^19.0.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"postcss": "^8.5.1",
|
||||
"storybook": "^8.5.0",
|
||||
"tailwindcss": "^3.4.17",
|
||||
"vite": "^6.0.7"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue