Modernize templates with Tailwind v4 and ESLint flat config

- Add Tailwind CSS v4 to Next.js template with zero-config setup
- Migrate both templates to ESLint flat config (eslint.config.mjs)
- Add proper .gitignore files to vanilla and nextjs templates
- Simplify root .gitignore to only Nix artifacts
- Update styling for consistent visual identity across templates
- Update README to reflect Tailwind inclusion and flat config
This commit is contained in:
♥ Minnie ♥ 2025-11-15 22:34:05 +08:00
parent 82b429b221
commit 1f1a1f347d
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
14 changed files with 136 additions and 104 deletions

View file

@ -39,6 +39,7 @@ TypeScript template with App Router for modern web applications.
- Next.js 15 with App Router
- React 19
- TypeScript
- Tailwind CSS (utility-first styling)
- Optimized for Vercel deployment
## Shared Foundation
@ -153,9 +154,8 @@ All templates provide minimal, sensible defaults. Customize as needed:
**Next.js:**
- Configure Next.js in `next.config.js`
- Customize ESLint rules in `.eslintrc.json`
- Customize ESLint rules in `eslint.config.mjs`
- Adjust TypeScript settings in `tsconfig.json`
- Extend ESLint config for stricter rules
**Both templates:**
@ -165,17 +165,18 @@ All templates provide minimal, sensible defaults. Customize as needed:
## Template Comparison
| Feature | Vanilla | Next.js |
| ------------------ | ------- | ------- |
| Framework | None | Next.js |
| Language | JS | TS |
| Bundler | Vite | Next.js |
| Client-side only | ✓ | ✗ |
| Server-side API | ✗ | ✓ |
| Static generation | ✓ | ✓ |
| Type checking | ✗ | ✓ |
| React components | ✗ | ✓ |
| File-based routing | ✗ | ✓ |
| Feature | Vanilla | Next.js |
| ------------------ | ----------- | ----------- |
| Framework | None | Next.js |
| Language | JS | TS |
| Bundler | Vite | Next.js |
| Styling | Vanilla CSS | Tailwind v4 |
| Client-side only | ✓ | ✗ |
| Server-side API | ✗ | ✓ |
| Static generation | ✓ | ✓ |
| Type checking | ✗ | ✓ |
| React components | ✗ | ✓ |
| File-based routing | ✗ | ✓ |
## Acknowledgments