create-nexa-app 1.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 ADDED
@@ -0,0 +1,273 @@
1
+ # Nexa CLI
2
+
3
+ **React Power. Angular Simplicity. Vite Speed. Cleaner UI. Prebuilt structure.**
4
+
5
+ 🚀 **Nexa CLI** - Powered by **Conscious Neurons LLC**
6
+ 🌐 https://consciousneurons.com
7
+ Built by Salman Saeed: https://salmansaeed.us
8
+
9
+ ---
10
+
11
+ ## ✨ About Nexa CLI
12
+
13
+ **Nexa CLI** is a next-generation scaffolding tool designed to give developers a **production-ready UI foundation instantly**.
14
+
15
+ It combines:
16
+
17
+ - ⚛️ **React Power**
18
+ - 🧱 **Angular-style structure**
19
+ - ⚡ **Vite Speed**
20
+ - 🎯 **Cleaner UI with prebuilt layout system**
21
+
22
+ Unlike traditional CLIs, Nexa does not just create files —
23
+ it gives you a **fully structured application shell** with:
24
+
25
+ - Dynamic header system
26
+ - Responsive sidebar + mobile navigation
27
+ - Centralized route configuration
28
+ - Styled component scaffolding
29
+ - Modern design system (Nexa theme)
30
+
31
+ ---
32
+
33
+ ## 📦 Installation
34
+
35
+ ### 🔹 Option 1 — Run directly (recommended)
36
+
37
+ ```bash
38
+ npx --verbose @salmansaeed/nexa@latest new app <app-name>
39
+ ```
40
+
41
+ ---
42
+
43
+ ### 🔹 Option 2 — Install globally
44
+
45
+ ```bash
46
+ npm install -g @salmansaeed/nexa
47
+ ```
48
+
49
+ Then use:
50
+
51
+ ```bash
52
+ nexa new app <app-name>
53
+ ```
54
+
55
+ ---
56
+
57
+ ## 🚀 Creating a New App
58
+
59
+ ```bash
60
+ nexa new app my-app
61
+ ```
62
+
63
+ or shorthand:
64
+
65
+ ```bash
66
+ nexa new my-app
67
+ ```
68
+
69
+ This will:
70
+
71
+ - Scaffold full React + Vite app
72
+ - Install dependencies
73
+ - Setup layout system
74
+ - Configure routing + UI shell
75
+ - Optionally start dev server
76
+
77
+ ---
78
+
79
+ ## 🧩 Core Commands
80
+
81
+ | Command | Description |
82
+ | ------------------------- | -------------------------- |
83
+ | `nexa new app <app-name>` | Create a new Nexa app |
84
+ | `nexa new <app-name>` | Shortcut for creating app |
85
+ | `nexa new gc <name>` | Generate component |
86
+ | `nexa new cc <name>` | Generate component (alias) |
87
+ | `nexa new svc <name>` | Generate service |
88
+ | `nexa new ctx <name>` | Generate React context |
89
+
90
+ ---
91
+
92
+ ## ⚙️ Running the App
93
+
94
+ Inside your project:
95
+
96
+ ```bash
97
+ npm run nexa
98
+ ```
99
+
100
+ or:
101
+
102
+ ```bash
103
+ npm run dev
104
+ ```
105
+
106
+ or:
107
+
108
+ ```bash
109
+ npm start
110
+ ```
111
+
112
+ ---
113
+
114
+ ## 🧠 Nexa Architecture (What makes it different)
115
+
116
+ ### 🔹 1. Route-driven system
117
+
118
+ All navigation is controlled from one place:
119
+
120
+ ```js
121
+ src / config / routeMeta.js;
122
+ ```
123
+
124
+ This powers:
125
+
126
+ - Navbar
127
+ - Dynamic header
128
+ - Routing consistency
129
+
130
+ ---
131
+
132
+ ### 🔹 2. Prebuilt Layout System
133
+
134
+ Every Nexa app includes:
135
+
136
+ - Left sidebar (desktop)
137
+ - Mobile header + modal navigation
138
+ - Sticky dynamic header
139
+ - Centered content container
140
+
141
+ ---
142
+
143
+ ### 🔹 3. Dynamic Header
144
+
145
+ Headers are not hardcoded.
146
+
147
+ They update automatically based on route:
148
+
149
+ ```js
150
+ routeMeta["/nexa"] = {
151
+ title: "Nexa Page",
152
+ subtitle: "Generated instantly",
153
+ };
154
+ ```
155
+
156
+ ---
157
+
158
+ ### 🔹 4. Styled Component Generation
159
+
160
+ When you run:
161
+
162
+ ```bash
163
+ nexa new gc MyComponent
164
+ ```
165
+
166
+ You get:
167
+
168
+ - Pre-styled component
169
+ - Nexa design system applied
170
+ - Hero section + card layout
171
+ - Clean structure (no boilerplate mess)
172
+
173
+ ---
174
+
175
+ ### 🔹 5. Nexa Design System
176
+
177
+ Every app comes with:
178
+
179
+ - Dark premium theme
180
+ - Cyan primary system color
181
+ - Gold accent highlights
182
+ - Glass + depth UI
183
+
184
+ ---
185
+
186
+ ## 🎯 Example Workflow
187
+
188
+ ```bash
189
+ nexa new app my-platform
190
+ cd my-platform
191
+ npm run dev
192
+ ```
193
+
194
+ Then:
195
+
196
+ ```bash
197
+ nexa new gc dashboard
198
+ nexa new svc api-service
199
+ nexa new ctx user-session
200
+ ```
201
+
202
+ ---
203
+
204
+ ## 💡 Tips
205
+
206
+ - Always run generators from project root (not inside `src`)
207
+ - Use `routeMeta.js` to control navigation
208
+ - Keep components minimal — Nexa already handles layout
209
+ - Focus on logic, not setup
210
+
211
+ ---
212
+
213
+ ## 🔥 Why Nexa?
214
+
215
+ Nexa is designed to eliminate:
216
+
217
+ ❌ repetitive setup
218
+ ❌ inconsistent UI
219
+ ❌ messy component structure
220
+
221
+ And give you:
222
+
223
+ ✅ instant working UI
224
+ ✅ consistent architecture
225
+ ✅ scalable structure
226
+ ✅ modern design system
227
+
228
+ ---
229
+
230
+ ## 👤 Author
231
+
232
+ Built and maintained by **Salman Saeed**
233
+ 🌐 [https://salmansaeed.us](https://salmansaeed.us)
234
+
235
+ ---
236
+
237
+ ## 🧠 Company
238
+
239
+ **Conscious Neurons LLC**
240
+ 🌐 [https://consciousneurons.com](https://consciousneurons.com)
241
+
242
+ ---
243
+
244
+ ## 🤝 Sponsored By
245
+
246
+ **Alba Gold Systems**
247
+ 🌐 [https://alba.gold](https://alba.gold)
248
+
249
+ ---
250
+
251
+ ## 🚀 Philosophy
252
+
253
+ > Build fast. Stay structured. Ship clean.
254
+
255
+ **Nexa = Cleaner UI + Prebuilt Structure**
256
+
257
+ ```
258
+
259
+ ---
260
+
261
+ # 🔥 What changed vs SG
262
+
263
+ - `sg` → `nexa`
264
+ - added global install instructions
265
+ - removed unused commands (`deploy`, `update`, etc.)
266
+ - aligned with your real CLI behavior
267
+ - added your **UI philosophy (key differentiator)**
268
+ - explained **routeMeta system (very important for adoption)**
269
+
270
+ ---
271
+
272
+ # 🚀 Next step (highly recommended)
273
+ ```