create-revo 2.0.6 → 3.0.0
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 +188 -54
- package/cli.js +286 -160
- package/package.json +2 -2
- package/template-nextjs/bun.lock +901 -0
- package/template-nextjs/package.json +16 -16
- package/template-nextjs/src/app/layout.tsx +4 -2
- package/template-nextjs/src/app/not-found.tsx +28 -0
- package/template-nextjs/src/components/ui/Button.tsx +0 -0
- package/template-nextjs/tsconfig.json +20 -6
- package/template-reactjs/README.md +2 -2
- package/template-reactjs/bun.lock +578 -0
- package/template-reactjs/index.html +2 -0
- package/template-reactjs/package.json +20 -20
- package/template-reactjs/src/App.tsx +1 -3
- package/template-reactjs/src/NotFound.tsx +27 -0
- package/template-reactjs/src/assets/websiteCard.svg +1 -1
- package/template-reactjs/src/components/ui/Button.tsx +0 -0
- package/template-reactjs/src/main.tsx +3 -1
- package/template-nextjs/package-lock.json +0 -6220
- package/template-reactjs/package-lock.json +0 -4196
- /package/template-nextjs/src/components/{LenisWrapper.tsx → layout/LenisWrapper.tsx} +0 -0
- /package/template-reactjs/src/components/{LenisWrapper.tsx → layout/LenisWrapper.tsx} +0 -0
package/README.md
CHANGED
|
@@ -1,110 +1,244 @@
|
|
|
1
|
-
# revo
|
|
1
|
+
# create-revo
|
|
2
2
|
|
|
3
|
-
**revo** is a
|
|
3
|
+
**create-revo** is a fast, minimal project setup tool for **React** and **Next.js** projects. Get started with modern, production-ready templates in seconds.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## ✨ Features
|
|
8
8
|
|
|
9
|
-
- **Two Framework Options**:
|
|
10
|
-
- **TypeScript Ready**: Pre-configured TypeScript
|
|
11
|
-
- **Tailwind CSS**: Fully configured
|
|
12
|
-
- **Latest
|
|
13
|
-
- **
|
|
14
|
-
- **Clean
|
|
9
|
+
- **Two Framework Options**: React (Vite) or Next.js
|
|
10
|
+
- **TypeScript Ready**: Pre-configured TypeScript setup
|
|
11
|
+
- **Tailwind CSS**: Fully configured utility-first styling
|
|
12
|
+
- **Latest Versions**: React 19, Next.js 16, and latest dependencies
|
|
13
|
+
- **Fast Setup**: Project created in ~200ms
|
|
14
|
+
- **Clean Structure**: Organized, maintainable project structure
|
|
15
|
+
- **CLI Flags**: Skip prompts with command-line options
|
|
15
16
|
|
|
16
17
|
---
|
|
17
18
|
|
|
18
19
|
## 📦 What You Get
|
|
19
20
|
|
|
20
|
-
### React Template
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
### React Template
|
|
22
|
+
- **React 19** with TypeScript
|
|
23
|
+
- **Vite 6** for lightning-fast development
|
|
24
|
+
- **Tailwind CSS 3** for styling
|
|
25
|
+
- **ESLint 9** for code quality
|
|
26
|
+
- **Framer Motion** for animations
|
|
27
|
+
- **Lenis** for smooth scrolling
|
|
28
|
+
- **React Router 7** for routing
|
|
29
|
+
- **Revoicons** for icons
|
|
26
30
|
|
|
27
31
|
### Next.js Template
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
- **Next.js 16** with App Router
|
|
33
|
+
- **React 19** with TypeScript
|
|
34
|
+
- **Tailwind CSS 4** for styling
|
|
35
|
+
- **ESLint 9** for code quality
|
|
36
|
+
- **Framer Motion** for animations
|
|
37
|
+
- **Lenis** for smooth scrolling
|
|
38
|
+
- **Revoicons** for icons
|
|
33
39
|
|
|
34
40
|
---
|
|
35
41
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
### Prerequisites
|
|
39
|
-
Make sure you have Node.js (>=14.x) and npm/yarn installed.
|
|
42
|
+
## � Quick Start
|
|
40
43
|
|
|
41
44
|
### Create a New Project
|
|
42
45
|
|
|
43
|
-
**Option 1: With project name**
|
|
44
46
|
```bash
|
|
45
|
-
npx create-revo my-
|
|
47
|
+
npx create-revo my-app
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then follow the prompts to select your template.
|
|
51
|
+
|
|
52
|
+
### With Template Flag (Skip Prompt)
|
|
53
|
+
|
|
54
|
+
**React Template:**
|
|
55
|
+
```bash
|
|
56
|
+
npx create-revo my-app --template react
|
|
57
|
+
# or
|
|
58
|
+
npx create-revo my-app -t react
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Next.js Template:**
|
|
62
|
+
```bash
|
|
63
|
+
npx create-revo my-app --template next
|
|
64
|
+
# or
|
|
65
|
+
npx create-revo my-app -t next
|
|
46
66
|
```
|
|
47
67
|
|
|
48
|
-
|
|
68
|
+
### Interactive Mode
|
|
69
|
+
|
|
49
70
|
```bash
|
|
50
71
|
npx create-revo
|
|
51
72
|
```
|
|
52
73
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
74
|
+
You'll be prompted for:
|
|
75
|
+
1. Project name
|
|
76
|
+
2. Template choice (React or Next.js)
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## 🛠️ CLI Options
|
|
57
81
|
|
|
58
|
-
### Navigate to Your Project
|
|
59
82
|
```bash
|
|
60
|
-
|
|
83
|
+
create-revo <project-name> [options]
|
|
61
84
|
```
|
|
62
85
|
|
|
63
|
-
###
|
|
86
|
+
### Options
|
|
87
|
+
|
|
88
|
+
| Flag | Alias | Description |
|
|
89
|
+
|------|-------|-------------|
|
|
90
|
+
| `--template <type>` | `-t` | Template type: `react` or `next` |
|
|
91
|
+
| `--help` | `-h` | Show help message |
|
|
92
|
+
| `--version` | `-v` | Show version number |
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
64
96
|
```bash
|
|
65
|
-
|
|
97
|
+
# Interactive mode
|
|
98
|
+
npx create-revo
|
|
99
|
+
|
|
100
|
+
# With project name
|
|
101
|
+
npx create-revo my-app
|
|
102
|
+
|
|
103
|
+
# With template
|
|
104
|
+
npx create-revo my-app -t react
|
|
105
|
+
|
|
106
|
+
# Show help
|
|
107
|
+
npx create-revo --help
|
|
108
|
+
|
|
109
|
+
# Show version
|
|
110
|
+
npx create-revo --version
|
|
66
111
|
```
|
|
67
112
|
|
|
68
113
|
---
|
|
69
114
|
|
|
70
|
-
##
|
|
115
|
+
## 📁 Project Structure
|
|
71
116
|
|
|
117
|
+
### React Template
|
|
118
|
+
```
|
|
119
|
+
my-app/
|
|
120
|
+
├── public/
|
|
121
|
+
├── src/
|
|
122
|
+
│ ├── assets/
|
|
123
|
+
│ ├── components/
|
|
124
|
+
│ ├── pages/
|
|
125
|
+
│ ├── App.tsx
|
|
126
|
+
│ ├── main.tsx
|
|
127
|
+
│ └── index.css
|
|
128
|
+
├── .gitignore
|
|
129
|
+
├── package.json
|
|
130
|
+
├── tsconfig.json
|
|
131
|
+
├── vite.config.ts
|
|
132
|
+
└── tailwind.config.js
|
|
133
|
+
```
|
|
72
134
|
|
|
73
|
-
###
|
|
74
|
-
|
|
135
|
+
### Next.js Template
|
|
75
136
|
```
|
|
76
|
-
|
|
137
|
+
my-app/
|
|
138
|
+
├── public/
|
|
139
|
+
├── src/
|
|
140
|
+
│ ├── app/
|
|
141
|
+
│ │ ├── layout.tsx
|
|
142
|
+
│ │ └── page.tsx
|
|
143
|
+
│ └── components/
|
|
144
|
+
├── .gitignore
|
|
145
|
+
├── package.json
|
|
146
|
+
├── tsconfig.json
|
|
147
|
+
└── tailwind.config.ts
|
|
77
148
|
```
|
|
78
149
|
|
|
79
|
-
|
|
150
|
+
---
|
|
80
151
|
|
|
152
|
+
## 🏃 Development
|
|
153
|
+
|
|
154
|
+
After creating your project:
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
cd my-app
|
|
158
|
+
npm install
|
|
159
|
+
npm run dev
|
|
81
160
|
```
|
|
82
|
-
npm run build
|
|
83
|
-
```
|
|
84
161
|
|
|
85
|
-
|
|
162
|
+
Your app will be running at:
|
|
163
|
+
- **React (Vite)**: http://localhost:7350
|
|
164
|
+
- **Next.js**: http://localhost:7350
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 📜 Available Scripts
|
|
86
169
|
|
|
170
|
+
### React Template
|
|
171
|
+
```bash
|
|
172
|
+
npm run dev # Start development server
|
|
173
|
+
npm run build # Build for production
|
|
174
|
+
npm run preview # Preview production build
|
|
175
|
+
npm run lint # Run ESLint
|
|
87
176
|
```
|
|
88
|
-
|
|
177
|
+
|
|
178
|
+
### Next.js Template
|
|
179
|
+
```bash
|
|
180
|
+
npm run dev # Start development server
|
|
181
|
+
npm run build # Build for production
|
|
182
|
+
npm start # Start production server
|
|
183
|
+
npm run lint # Run ESLint
|
|
89
184
|
```
|
|
90
185
|
|
|
91
186
|
---
|
|
92
187
|
|
|
93
|
-
## 🌟
|
|
188
|
+
## 🌟 Why create-revo?
|
|
189
|
+
|
|
190
|
+
- **Fast**: Creates projects in ~200ms
|
|
191
|
+
- **Minimal**: No unnecessary bloat or features
|
|
192
|
+
- **Modern**: Latest versions of React, Next.js, and dependencies
|
|
193
|
+
- **Simple**: Clean, straightforward CLI
|
|
194
|
+
- **Flexible**: Choose your framework and package manager
|
|
94
195
|
|
|
95
|
-
|
|
96
|
-
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 🔧 Package Managers
|
|
97
199
|
|
|
98
|
-
|
|
200
|
+
create-revo works with all major package managers:
|
|
201
|
+
|
|
202
|
+
```bash
|
|
203
|
+
# npm
|
|
204
|
+
npx create-revo my-app
|
|
205
|
+
|
|
206
|
+
# yarn
|
|
207
|
+
yarn create revo my-app
|
|
208
|
+
|
|
209
|
+
# pnpm
|
|
210
|
+
pnpm create revo my-app
|
|
211
|
+
|
|
212
|
+
# bun
|
|
213
|
+
bunx create-revo my-app
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The CLI automatically detects your package manager and shows the appropriate commands.
|
|
99
217
|
|
|
100
218
|
---
|
|
101
219
|
|
|
102
220
|
## 🙏 Credits
|
|
103
221
|
|
|
104
|
-
|
|
222
|
+
Built with amazing open-source tools:
|
|
223
|
+
|
|
224
|
+
- [React](https://react.dev/) - UI library
|
|
225
|
+
- [Next.js](https://nextjs.org/) - React framework
|
|
226
|
+
- [Vite](https://vitejs.dev/) - Build tool
|
|
227
|
+
- [Tailwind CSS](https://tailwindcss.com/) - CSS framework
|
|
228
|
+
- [TypeScript](https://www.typescriptlang.org/) - Type safety
|
|
229
|
+
- [Framer Motion](https://www.framer.com/motion/) - Animations
|
|
230
|
+
- [Lenis](https://lenis.studiofreight.com/) - Smooth scrolling
|
|
231
|
+
|
|
232
|
+
---
|
|
233
|
+
|
|
234
|
+
## 📝 License
|
|
235
|
+
|
|
236
|
+
MIT
|
|
237
|
+
|
|
238
|
+
---
|
|
239
|
+
|
|
240
|
+
## 🌟 Feedback & Support
|
|
241
|
+
|
|
242
|
+
If you like create-revo or have suggestions, reach out on [Twitter](https://twitter.com/MaybeTarun).
|
|
105
243
|
|
|
106
|
-
|
|
107
|
-
- [Next.js](https://nextjs.org/) - The React framework for production
|
|
108
|
-
- [Vite](https://vitejs.dev/) - The lightning-fast frontend build tool
|
|
109
|
-
- [Tailwind CSS](https://tailwindcss.com/) - Utility-first CSS framework for rapid UI development
|
|
110
|
-
- [TypeScript](https://www.typescriptlang.org/) - Typed JavaScript at any scale
|
|
244
|
+
Happy coding! 🚀
|