create-reactivite 1.0.2 → 1.0.3
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 +177 -0
- package/package.json +40 -7
package/README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# create-reactivite
|
|
2
|
+
|
|
3
|
+
A modern React boilerplate generator that creates production-ready applications with React, Vite, TypeScript, Tailwind CSS, and shadcn/ui components.
|
|
4
|
+
|
|
5
|
+
## 🚀 Features
|
|
6
|
+
|
|
7
|
+
- **⚡ Vite** - Lightning fast build tool and dev server
|
|
8
|
+
- **⚛️ React 19** - Latest React with modern features
|
|
9
|
+
- **📘 TypeScript** - Full TypeScript support with strict configuration
|
|
10
|
+
- **🎨 Tailwind CSS v4** - Latest Tailwind with modern CSS features
|
|
11
|
+
- **🧩 shadcn/ui** - Beautiful, accessible UI components
|
|
12
|
+
- **📦 Radix UI** - Unstyled, accessible components
|
|
13
|
+
- **🌙 Dark Mode** - Built-in theme switching with next-themes
|
|
14
|
+
- **📅 Date Picker** - React Day Picker integration
|
|
15
|
+
- **🔔 Toast Notifications** - Sonner for elegant notifications
|
|
16
|
+
- **🎯 ESLint** - Code linting with modern configuration
|
|
17
|
+
- **📱 Responsive** - Mobile-first responsive design
|
|
18
|
+
- **🎭 Icons** - Lucide React icon library
|
|
19
|
+
|
|
20
|
+
## 📦 Installation
|
|
21
|
+
|
|
22
|
+
### Using npx (Recommended)
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npx create-reactivite my-app
|
|
26
|
+
cd my-app
|
|
27
|
+
pnpm dev
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Using npm
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm create reactivite my-app
|
|
34
|
+
cd my-app
|
|
35
|
+
npm run dev
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Install in current directory
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx create-reactivite .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 🛠️ What's Included
|
|
45
|
+
|
|
46
|
+
### Core Technologies
|
|
47
|
+
|
|
48
|
+
- **React 19.1.1** - Latest React with concurrent features
|
|
49
|
+
- **TypeScript 5.9.3** - Strict type checking
|
|
50
|
+
- **Vite 7.1.7** - Fast build tool and dev server
|
|
51
|
+
- **Tailwind CSS 4.1.14** - Utility-first CSS framework
|
|
52
|
+
|
|
53
|
+
### UI Components
|
|
54
|
+
|
|
55
|
+
The template includes a comprehensive set of pre-built shadcn/ui components:
|
|
56
|
+
|
|
57
|
+
- **Layout**: Card, Separator, Dialog
|
|
58
|
+
- **Forms**: Button, Checkbox, Select, Calendar
|
|
59
|
+
- **Navigation**: Accordion, Collapsible, Toggle
|
|
60
|
+
- **Feedback**: Alert, Badge, Spinner, Toast (Sonner)
|
|
61
|
+
- **Data Display**: Avatar, Table, Tooltip
|
|
62
|
+
|
|
63
|
+
### Development Tools
|
|
64
|
+
|
|
65
|
+
- **ESLint** - Code linting with React and TypeScript rules
|
|
66
|
+
- **TypeScript** - Strict configuration for better code quality
|
|
67
|
+
- **Path Aliases** - Clean imports with `@/` prefix
|
|
68
|
+
- **Hot Reload** - Instant updates during development
|
|
69
|
+
|
|
70
|
+
## 🏗️ Project Structure
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
my-app/
|
|
74
|
+
├── public/
|
|
75
|
+
│ └── vite.svg
|
|
76
|
+
├── src/
|
|
77
|
+
│ ├── assets/
|
|
78
|
+
│ ├── components/
|
|
79
|
+
│ │ ├── ui/ # shadcn/ui components
|
|
80
|
+
│ │ └── home-page-components/
|
|
81
|
+
│ ├── lib/
|
|
82
|
+
│ │ └── utils.ts # Utility functions
|
|
83
|
+
│ ├── pages/
|
|
84
|
+
│ │ └── Homepage/
|
|
85
|
+
│ ├── App.tsx
|
|
86
|
+
│ ├── main.tsx
|
|
87
|
+
│ └── global.css
|
|
88
|
+
├── components.json # shadcn/ui configuration
|
|
89
|
+
├── package.json
|
|
90
|
+
├── tsconfig.json
|
|
91
|
+
├── vite.config.ts
|
|
92
|
+
└── eslint.config.js
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 🚀 Getting Started
|
|
96
|
+
|
|
97
|
+
1. **Create your project**:
|
|
98
|
+
```bash
|
|
99
|
+
npx create-reactivite my-awesome-app
|
|
100
|
+
cd my-awesome-app
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
2. **Install dependencies** (automatically done):
|
|
104
|
+
```bash
|
|
105
|
+
pnpm install # or npm install
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
3. **Start development server**:
|
|
109
|
+
```bash
|
|
110
|
+
pnpm dev # or npm run dev
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
4. **Open your browser** and visit `http://localhost:5173`
|
|
114
|
+
|
|
115
|
+
## 📝 Available Scripts
|
|
116
|
+
|
|
117
|
+
- `pnpm dev` - Start development server
|
|
118
|
+
- `pnpm build` - Build for production
|
|
119
|
+
- `pnpm preview` - Preview production build
|
|
120
|
+
- `pnpm lint` - Run ESLint
|
|
121
|
+
|
|
122
|
+
## 🎨 Adding Components
|
|
123
|
+
|
|
124
|
+
This template uses shadcn/ui. To add new components:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
npx shadcn@latest add button
|
|
128
|
+
npx shadcn@latest add input
|
|
129
|
+
npx shadcn@latest add form
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## 🔧 Configuration
|
|
133
|
+
|
|
134
|
+
### Tailwind CSS
|
|
135
|
+
|
|
136
|
+
The project uses Tailwind CSS v4 with the new Vite plugin. Configuration is handled through CSS variables and the `components.json` file.
|
|
137
|
+
|
|
138
|
+
### TypeScript
|
|
139
|
+
|
|
140
|
+
Strict TypeScript configuration is included with path aliases:
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
import { Button } from "@/components/ui/button"
|
|
144
|
+
import { utils } from "@/lib/utils"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### ESLint
|
|
148
|
+
|
|
149
|
+
Modern ESLint configuration with React and TypeScript support.
|
|
150
|
+
|
|
151
|
+
## 🌙 Dark Mode
|
|
152
|
+
|
|
153
|
+
Dark mode is pre-configured using `next-themes`. Toggle between light and dark themes seamlessly.
|
|
154
|
+
|
|
155
|
+
## 📱 Responsive Design
|
|
156
|
+
|
|
157
|
+
All components are built with mobile-first responsive design principles using Tailwind CSS.
|
|
158
|
+
|
|
159
|
+
## 🤝 Contributing
|
|
160
|
+
|
|
161
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
162
|
+
|
|
163
|
+
## 📄 License
|
|
164
|
+
|
|
165
|
+
MIT License - feel free to use this template for your projects.
|
|
166
|
+
|
|
167
|
+
## 🔗 Links
|
|
168
|
+
|
|
169
|
+
- [React](https://react.dev/)
|
|
170
|
+
- [Vite](https://vite.dev/)
|
|
171
|
+
- [Tailwind CSS](https://tailwindcss.com/)
|
|
172
|
+
- [shadcn/ui](https://ui.shadcn.com/)
|
|
173
|
+
- [TypeScript](https://www.typescriptlang.org/)
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
**Happy coding! 🎉**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-reactivite",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "React + Vite + Tailwind
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "⚡ Effortlessly scaffold modern React + Vite + Tailwind CSS projects with a clean structure and ready-to-use configuration. Create Reactivite helps you instantly start new React apps with best practices, Shadcn/UI support, and zero setup hassle.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create-reactivite": "./index.js"
|
|
7
7
|
},
|
|
@@ -10,9 +10,42 @@
|
|
|
10
10
|
"index.js",
|
|
11
11
|
"template/"
|
|
12
12
|
],
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"prompts": "^2.4.2",
|
|
15
|
+
"fs-extra": "^11.2.0",
|
|
16
|
+
"execa": "^7.1.0"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "https://github.com/jsznpm/create-reactivite.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/jsznpm/create-reactivite/issues"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://github.com/jsznpm/create-reactivite#readme",
|
|
26
|
+
"keywords": [
|
|
27
|
+
"react",
|
|
28
|
+
"vite",
|
|
29
|
+
"tailwind",
|
|
30
|
+
"tailwindcss",
|
|
31
|
+
"shadcn",
|
|
32
|
+
"boilerplate",
|
|
33
|
+
"template",
|
|
34
|
+
"react-template",
|
|
35
|
+
"vite-react-template",
|
|
36
|
+
"create-react-app",
|
|
37
|
+
"react-cli",
|
|
38
|
+
"project-generator",
|
|
39
|
+
"starter-kit",
|
|
40
|
+
"frontend",
|
|
41
|
+
"typescript",
|
|
42
|
+
"reactivite",
|
|
43
|
+
"create-reactivite"
|
|
44
|
+
],
|
|
45
|
+
"author": {
|
|
46
|
+
"name": "Javid Salimov",
|
|
47
|
+
"email": "",
|
|
48
|
+
"url": "https://github.com/jsznpm"
|
|
49
|
+
},
|
|
50
|
+
"license": "MIT"
|
|
18
51
|
}
|