@teamvelix/velix 5.0.2 → 5.0.4

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 CHANGED
@@ -21,7 +21,11 @@ Velix is a lightweight but powerful React 19 framework featuring file-based rout
21
21
  - 📦 **Edge Ready** — Deploy to any edge platform
22
22
  - 🤖 **AI Assistant** — Built-in CLI AI for code generation
23
23
 
24
- ## 📦 Quick Start
24
+ ## 📦 Installation
25
+
26
+ ### Option 1: Create New App (Recommended)
27
+
28
+ The fastest way to get started:
25
29
 
26
30
  ```bash
27
31
  npx create-velix-app@latest my-app
@@ -30,11 +34,53 @@ npm install
30
34
  npm run dev
31
35
  ```
32
36
 
33
- Or install manually:
37
+ This will:
38
+ - ✅ Create a new Velix project with your chosen template
39
+ - ✅ Install all dependencies automatically
40
+ - ✅ Set up Tailwind CSS (optional)
41
+ - ✅ Configure TypeScript
42
+
43
+ ### Option 2: Install CLI Globally
44
+
45
+ For multiple projects or advanced usage:
46
+
47
+ ```bash
48
+ # Install Velix CLI globally
49
+ npm install -g @teamvelix/cli
50
+
51
+ # Create a new project
52
+ velix create my-app
53
+ cd my-app
54
+ npm install
55
+
56
+ # Start development
57
+ velix dev
58
+ ```
59
+
60
+ ### Option 3: Manual Installation
61
+
62
+ Add Velix to an existing project:
34
63
 
35
64
  ```bash
65
+ # Install core framework
36
66
  npm install @teamvelix/velix react react-dom
37
- npm install -D @teamvelix/cli typescript
67
+
68
+ # Install dev dependencies
69
+ npm install -D @teamvelix/cli typescript @types/react @types/react-dom
70
+
71
+ # Optional: Tailwind CSS
72
+ npm install -D tailwindcss postcss autoprefixer
73
+ ```
74
+
75
+ Then create a `velix.config.ts` file:
76
+
77
+ ```ts
78
+ import { defineConfig } from "@teamvelix/velix";
79
+
80
+ export default defineConfig({
81
+ app: { name: "My App" },
82
+ server: { port: 3000 },
83
+ });
38
84
  ```
39
85
 
40
86
  ## 📁 Project Structure
@@ -83,24 +129,51 @@ export default defineConfig({
83
129
 
84
130
  ## 🛠️ CLI Commands
85
131
 
132
+ ### Development
133
+
86
134
  ```bash
87
- velix dev # Start dev server
135
+ velix dev # Start development server with hot reload
88
136
  velix build # Build for production
89
137
  velix start # Start production server
90
- velix doctor # Health check
138
+ velix doctor # Health check & diagnostics
139
+ velix info # Framework & environment info
140
+ ```
91
141
 
92
- velix g page <name> # Generate a page
142
+ ### Generators
143
+
144
+ ```bash
145
+ velix g page <name> # Generate a new page
93
146
  velix g component <name> # Generate a component
94
147
  velix g api <name> # Generate an API route
95
148
  velix g layout <name> # Generate a layout
149
+ velix g action <name> # Generate a server action
96
150
  velix g middleware <name> # Generate middleware
151
+ velix g hook <name> # Generate a custom hook
152
+ velix g context <name> # Generate a React context
153
+ ```
154
+
155
+ ### Project Creation
97
156
 
98
- velix ai start # Launch AI assistant
99
- velix analyze # Bundle analysis
100
- velix info # Framework info
157
+ ```bash
158
+ velix create <name> # Create new project (interactive)
159
+ velix create <name> --template=minimal # Use minimal template
160
+ velix create <name> --no-tailwind # Skip Tailwind CSS
101
161
  ```
102
162
 
103
- ## Documentation
163
+ ### UI Components (Shadcn-style)
164
+
165
+ ```bash
166
+ velix ui add button # Add button component
167
+ # More components coming soon
168
+ ```
169
+
170
+ ### Other
171
+
172
+ ```bash
173
+ velix analyze # Bundle analysis (coming soon)
174
+ ```
175
+
176
+ ## 📚 Documentation
104
177
 
105
178
  Comprehensive guides and API references:
106
179
 
@@ -110,6 +183,52 @@ Comprehensive guides and API references:
110
183
  - **[Best Practices](./docs/best-practices.md)** - Development guidelines
111
184
  - **[Roadmap](./docs/roadmap.md)** - Upcoming features and plugins
112
185
 
186
+ ## 🔧 Troubleshooting
187
+
188
+ ### Common Issues
189
+
190
+ **Module not found errors:**
191
+ ```bash
192
+ # Clear node_modules and reinstall
193
+ rm -rf node_modules package-lock.json
194
+ npm install
195
+ ```
196
+
197
+ **Tailwind CSS not working:**
198
+ ```bash
199
+ # Ensure Tailwind is installed
200
+ npm install -D tailwindcss postcss autoprefixer
201
+
202
+ # Check that velix.config.ts includes tailwindPlugin
203
+ import { defineConfig, tailwindPlugin } from "@teamvelix/velix";
204
+
205
+ export default defineConfig({
206
+ plugins: [tailwindPlugin()]
207
+ });
208
+ ```
209
+
210
+ **Port already in use:**
211
+ ```bash
212
+ # Change port in velix.config.ts
213
+ export default defineConfig({
214
+ server: { port: 3001 }
215
+ });
216
+ ```
217
+
218
+ ### Getting Help
219
+
220
+ - 📖 Check the [documentation](./docs/README.md)
221
+ - 💬 Join our [Discord community](https://discord.gg/velix)
222
+ - 🐛 Report bugs on [GitHub Issues](https://github.com/Velixteam/velix/issues)
223
+
224
+ ## 📦 NPM Packages
225
+
226
+ | Package | Version | Description |
227
+ |---------|---------|-------------|
228
+ | [@teamvelix/velix](https://npmjs.com/package/@teamvelix/velix) | ![npm](https://img.shields.io/npm/v/@teamvelix/velix) | Core framework |
229
+ | [create-velix-app](https://npmjs.com/package/create-velix-app) | ![npm](https://img.shields.io/npm/v/create-velix-app) | Project scaffolding |
230
+ | [@teamvelix/cli](https://npmjs.com/package/@teamvelix/cli) | ![npm](https://img.shields.io/npm/v/@teamvelix/cli) | Command-line interface |
231
+
113
232
  ## 🤝 Contributing
114
233
 
115
234
  We welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md) for details.