mirror of
https://github.com/sajenim/javascript-template.git
synced 2025-12-17 03:50:40 +08:00
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:
parent
82b429b221
commit
1f1a1f347d
14 changed files with 136 additions and 104 deletions
27
README.md
27
README.md
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue