@nikkory/vibe-engine 4.0.3 → 4.0.5
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/package.json +11 -1
- package/PUBLISH-GUIDE.md +0 -250
- package/PUBLISH-SUCCESS.md +0 -370
- package/tests/16-factor-integration.test.d.ts +0 -14
- package/tests/16-factor-visual.test.d.ts +0 -14
- package/tests/5-level-integration.test.d.ts +0 -14
- package/tests/CodeUtils.test.d.ts +0 -7
- package/tests/DesignSystems.test.d.ts +0 -7
- package/tests/GenerateComponentValidator.test.d.ts +0 -7
- package/tests/Logger.test.d.ts +0 -7
- package/tests/StringUtils.test.d.ts +0 -7
- package/tests/StyleGenerator.test.d.ts +0 -13
- package/tests/Tiers.test.d.ts +0 -7
- package/tests/TokenRegistry.test.d.ts +0 -14
- package/tests/TokenStyleResolver.test.d.ts +0 -13
- package/tests/ValidationUtils.test.d.ts +0 -7
- package/tests/_pending_fix/Accordion.test.d.ts +0 -13
- package/tests/_pending_fix/Alert.test.d.ts +0 -13
- package/tests/_pending_fix/AlertDialog.test.d.ts +0 -13
- package/tests/_pending_fix/AspectRatio.test.d.ts +0 -13
- package/tests/_pending_fix/Autocomplete.test.d.ts +0 -13
- package/tests/_pending_fix/Avatar.test.d.ts +0 -13
- package/tests/_pending_fix/Badge.test.d.ts +0 -13
- package/tests/_pending_fix/Banner.test.d.ts +0 -13
- package/tests/_pending_fix/Box.test.d.ts +0 -13
- package/tests/_pending_fix/Breadcrumb.test.d.ts +0 -13
- package/tests/_pending_fix/Callout.test.d.ts +0 -13
- package/tests/_pending_fix/Card.test.d.ts +0 -13
- package/tests/_pending_fix/Center.test.d.ts +0 -13
- package/tests/_pending_fix/Checkbox.test.d.ts +0 -13
- package/tests/_pending_fix/Chip.test.d.ts +0 -13
- package/tests/_pending_fix/ColorPicker.test.d.ts +0 -13
- package/tests/_pending_fix/Combobox.test.d.ts +0 -13
- package/tests/_pending_fix/CommandPalette.test.d.ts +0 -13
- package/tests/_pending_fix/ConfirmationModal.test.d.ts +0 -13
- package/tests/_pending_fix/Container.test.d.ts +0 -13
- package/tests/_pending_fix/DataTable.test.d.ts +0 -13
- package/tests/_pending_fix/DatePicker.test.d.ts +0 -13
- package/tests/_pending_fix/DateRangePicker.test.d.ts +0 -13
- package/tests/_pending_fix/DateTimePicker.test.d.ts +0 -13
- package/tests/_pending_fix/Divider.test.d.ts +0 -13
- package/tests/_pending_fix/Drawer.test.d.ts +0 -13
- package/tests/_pending_fix/Dropdown.test.d.ts +0 -13
- package/tests/_pending_fix/EmptyState.test.d.ts +0 -13
- package/tests/_pending_fix/ErrorState.test.d.ts +0 -13
- package/tests/_pending_fix/FileDropzone.test.d.ts +0 -13
- package/tests/_pending_fix/FileUpload.test.d.ts +0 -13
- package/tests/_pending_fix/Flex.test.d.ts +0 -13
- package/tests/_pending_fix/Grid.test.d.ts +0 -13
- package/tests/_pending_fix/GridItem.test.d.ts +0 -13
- package/tests/_pending_fix/HStack.test.d.ts +0 -13
- package/tests/_pending_fix/Input.test.d.ts +0 -13
- package/tests/_pending_fix/InputCurrency.test.d.ts +0 -13
- package/tests/_pending_fix/InputGroup.test.d.ts +0 -13
- package/tests/_pending_fix/InputOTP.test.d.ts +0 -13
- package/tests/_pending_fix/InputPassword.test.d.ts +0 -13
- package/tests/_pending_fix/InputPhone.test.d.ts +0 -13
- package/tests/_pending_fix/InputSearch.test.d.ts +0 -13
- package/tests/_pending_fix/Link.test.d.ts +0 -13
- package/tests/_pending_fix/List.test.d.ts +0 -13
- package/tests/_pending_fix/LoadingOverlay.test.d.ts +0 -13
- package/tests/_pending_fix/Menu.test.d.ts +0 -13
- package/tests/_pending_fix/Modal.test.d.ts +0 -13
- package/tests/_pending_fix/MultiSelect.test.d.ts +0 -13
- package/tests/_pending_fix/NavGroup.test.d.ts +0 -13
- package/tests/_pending_fix/NavItem.test.d.ts +0 -13
- package/tests/_pending_fix/NavLink.test.d.ts +0 -13
- package/tests/_pending_fix/Navbar.test.d.ts +0 -13
- package/tests/_pending_fix/Notification.test.d.ts +0 -13
- package/tests/_pending_fix/NotificationBadge.test.d.ts +0 -13
- package/tests/_pending_fix/NumberInput.test.d.ts +0 -13
- package/tests/_pending_fix/Pagination.test.d.ts +0 -13
- package/tests/_pending_fix/Popover.test.d.ts +0 -13
- package/tests/_pending_fix/Progress.test.d.ts +0 -13
- package/tests/_pending_fix/ProgressCircle.test.d.ts +0 -13
- package/tests/_pending_fix/ProgressSteps.test.d.ts +0 -13
- package/tests/_pending_fix/Radio.test.d.ts +0 -13
- package/tests/_pending_fix/RangeSlider.test.d.ts +0 -13
- package/tests/_pending_fix/ResizablePanel.test.d.ts +0 -13
- package/tests/_pending_fix/ResultState.test.d.ts +0 -13
- package/tests/_pending_fix/ScrollArea.test.d.ts +0 -13
- package/tests/_pending_fix/Select.test.d.ts +0 -14
- package/tests/_pending_fix/Sheet.test.d.ts +0 -13
- package/tests/_pending_fix/Sidebar.test.d.ts +0 -13
- package/tests/_pending_fix/SimpleGrid.test.d.ts +0 -13
- package/tests/_pending_fix/Skeleton.test.d.ts +0 -13
- package/tests/_pending_fix/Slider.test.d.ts +0 -13
- package/tests/_pending_fix/Spacer.test.d.ts +0 -13
- package/tests/_pending_fix/Spinner.test.d.ts +0 -13
- package/tests/_pending_fix/Stack.test.d.ts +0 -13
- package/tests/_pending_fix/Stat.test.d.ts +0 -13
- package/tests/_pending_fix/Stepper.test.d.ts +0 -14
- package/tests/_pending_fix/Switch.test.d.ts +0 -13
- package/tests/_pending_fix/Table.test.d.ts +0 -13
- package/tests/_pending_fix/Tabs.test.d.ts +0 -13
- package/tests/_pending_fix/Textarea.test.d.ts +0 -13
- package/tests/_pending_fix/Timeline.test.d.ts +0 -13
- package/tests/_pending_fix/Toast.test.d.ts +0 -14
- package/tests/_pending_fix/Tooltip.test.d.ts +0 -14
- package/tests/_pending_fix/VStack.test.d.ts +0 -13
- package/tests/alert.test.d.ts +0 -13
- package/tests/badge.test.d.ts +0 -13
- package/tests/benchmarks/factor-resolution.bench.d.ts +0 -41
- package/tests/button.test.d.ts +0 -16
- package/tests/card.test.d.ts +0 -19
- package/tests/checkbox.test.d.ts +0 -13
- package/tests/component-16-factor-types.test.d.ts +0 -13
- package/tests/component-5level-integration.test.d.ts +0 -14
- package/tests/component-registry-ui.test.d.ts +0 -13
- package/tests/e2e/16-factor-visual.test.d.ts +0 -14
- package/tests/edge-cases.test.d.ts +0 -14
- package/tests/factor-17-24-integration.test.d.ts +0 -14
- package/tests/factor-17-24-performance.test.d.ts +0 -14
- package/tests/factor-validators.test.d.ts +0 -13
- package/tests/factors-1-6.test.d.ts +0 -13
- package/tests/factors-12-16.test.d.ts +0 -13
- package/tests/factors-17-24.test.d.ts +0 -21
- package/tests/factors-all.test.d.ts +0 -13
- package/tests/factors-registry.test.d.ts +0 -11
- package/tests/factors.test.d.ts +0 -13
- package/tests/granularity-types.test.d.ts +0 -18
- package/tests/groups.test.d.ts +0 -14
- package/tests/input.test.d.ts +0 -16
- package/tests/intents.test.d.ts +0 -14
- package/tests/memory-leak.test.d.ts +0 -14
- package/tests/modal.test.d.ts +0 -19
- package/tests/presets.test.d.ts +0 -14
- package/tests/radio.test.d.ts +0 -13
- package/tests/resolution-intents.test.d.ts +0 -13
- package/tests/resolution-presets.test.d.ts +0 -13
- package/tests/resolveProps.test.d.ts +0 -14
- package/tests/section-integration.test.d.ts +0 -16
- package/tests/section-types.test.d.ts +0 -11
- package/tests/setup.d.ts +0 -13
- package/tests/shorthands.test.d.ts +0 -14
- package/tests/switch.test.d.ts +0 -13
- package/tests/tabs.test.d.ts +0 -13
- package/tests/tiers-registry.test.d.ts +0 -11
- package/tests/useComponentStyles.test.d.ts +0 -11
- package/tests/useFactors.test.d.ts +0 -13
- package/tests/validators-invalid-input.test.d.ts +0 -13
- package/tsup.config.d.ts +0 -11
- package/vitest.config.d.ts +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nikkory/vibe-engine",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Framework-agnostic code generation engine for Nikkory Vibe - Zero-token UI/UX code generation",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -61,6 +61,16 @@
|
|
|
61
61
|
"typescript-eslint": "^8.49.0",
|
|
62
62
|
"vitest": "^4.0.15"
|
|
63
63
|
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist/**/*.js",
|
|
66
|
+
"dist/**/*.mjs",
|
|
67
|
+
"dist/**/*.d.ts",
|
|
68
|
+
"!dist/**/*.map",
|
|
69
|
+
"bin",
|
|
70
|
+
"README.md",
|
|
71
|
+
"LICENSE",
|
|
72
|
+
"LOGO.txt"
|
|
73
|
+
],
|
|
64
74
|
"publishConfig": {
|
|
65
75
|
"access": "public"
|
|
66
76
|
}
|
package/PUBLISH-GUIDE.md
DELETED
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
# 📦 NPM Publish Guide - @nikkory/vibe-engine v4.0.0
|
|
2
|
-
|
|
3
|
-
## ✅ Pre-Publish Checklist
|
|
4
|
-
|
|
5
|
-
- [x] **Build completed**: `pnpm build` ✅
|
|
6
|
-
- [x] **Hybrid logic implemented**: MatrixResolver ✅
|
|
7
|
-
- [x] **Tests passing**: All 12 plan tasks complete ✅
|
|
8
|
-
- [x] **Package.json valid**: Fixed with `npm pkg fix` ✅
|
|
9
|
-
- [x] **.npmignore created**: Excludes test files ✅
|
|
10
|
-
- [x] **Dry-run tested**: Package size ~1.5MB ✅
|
|
11
|
-
|
|
12
|
-
## 📋 Package Info
|
|
13
|
-
|
|
14
|
-
```json
|
|
15
|
-
{
|
|
16
|
-
"name": "@nikkory/vibe-engine",
|
|
17
|
-
"version": "4.0.0",
|
|
18
|
-
"description": "Zero-token UI/UX code generation with Matrix Algorithm",
|
|
19
|
-
"bin": {
|
|
20
|
-
"vibe": "./bin/vibe.js"
|
|
21
|
-
},
|
|
22
|
-
"access": "public"
|
|
23
|
-
}
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## 🚀 Publish Steps
|
|
27
|
-
|
|
28
|
-
### Step 1: Login to npm
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
cd packages/engine
|
|
32
|
-
npm login
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**Enter your credentials:**
|
|
36
|
-
- Username: `kemonra` (or your npm username)
|
|
37
|
-
- Password: [your npm password]
|
|
38
|
-
- Email: [your npm email]
|
|
39
|
-
- One-time password (OTP): [from authenticator app if 2FA enabled]
|
|
40
|
-
|
|
41
|
-
### Step 2: Verify Login
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
npm whoami
|
|
45
|
-
# Should output: kemonra
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Step 3: Final Dry Run
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
npm publish --dry-run
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
**Verify:**
|
|
55
|
-
- Package name: `@nikkory/vibe-engine@4.0.0`
|
|
56
|
-
- Tarball size: ~1.5MB
|
|
57
|
-
- Files included: dist/, bin/, README.md, package.json
|
|
58
|
-
- Files excluded: src/, test files, coverage/, *.map
|
|
59
|
-
|
|
60
|
-
### Step 4: Publish to npm
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
npm publish --access public
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
**Expected output:**
|
|
67
|
-
```
|
|
68
|
-
+ @nikkory/vibe-engine@4.0.0
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Step 5: Verify Published Package
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
npm view @nikkory/vibe-engine
|
|
75
|
-
npm view @nikkory/vibe-engine version
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## 🧪 Test Installation (As End User)
|
|
79
|
-
|
|
80
|
-
### Global Install
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npm install -g @nikkory/vibe-engine
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Verify CLI
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
vibe --help
|
|
90
|
-
vibe generate button material-design enterprise --factor-4=full
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Test Generation
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
# Create test directory
|
|
97
|
-
mkdir ~/test-nikkory
|
|
98
|
-
cd ~/test-nikkory
|
|
99
|
-
|
|
100
|
-
# Generate enterprise button with override
|
|
101
|
-
vibe generate button material-design enterprise --factor-4=full -o ./components
|
|
102
|
-
|
|
103
|
-
# Verify generated files
|
|
104
|
-
ls -la components/material-design/button/
|
|
105
|
-
cat components/material-design/button/enterprise.tsx
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**Expected output:**
|
|
109
|
-
- ✅ Component file with `rounded-full` (override applied)
|
|
110
|
-
- ✅ Types file with full TypeScript definitions
|
|
111
|
-
- ✅ Test file with Vitest tests
|
|
112
|
-
- ✅ All enterprise features (memo, forwardRef, analytics)
|
|
113
|
-
|
|
114
|
-
## 📊 What Users Will Get
|
|
115
|
-
|
|
116
|
-
### CLI Commands
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
# Generate single component
|
|
120
|
-
vibe generate <component> <design-system> <tier> [options]
|
|
121
|
-
|
|
122
|
-
# With factor overrides
|
|
123
|
-
vibe generate button material-design enterprise --factor-4=full --factor-5=xl
|
|
124
|
-
|
|
125
|
-
# Batch generation
|
|
126
|
-
vibe batch -o ./output --ds material-design -t enterprise
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### Generated Files Per Component
|
|
130
|
-
|
|
131
|
-
1. **Component file** (`.tsx`):
|
|
132
|
-
- Enterprise tier: 150-300 LOC
|
|
133
|
-
- React.memo, forwardRef, useCallback
|
|
134
|
-
- Analytics tracking
|
|
135
|
-
- Full ARIA support
|
|
136
|
-
|
|
137
|
-
2. **Types file** (`.types.ts`):
|
|
138
|
-
- Complete TypeScript definitions
|
|
139
|
-
- Variant and size types
|
|
140
|
-
- Event handler types
|
|
141
|
-
|
|
142
|
-
3. **Test file** (`.test.tsx`):
|
|
143
|
-
- Vitest test suite
|
|
144
|
-
- Component rendering tests
|
|
145
|
-
- Props validation tests
|
|
146
|
-
|
|
147
|
-
### Supported Features
|
|
148
|
-
|
|
149
|
-
- **12 Design Systems**: Material, iOS, Glassmorphism, Neumorphism, Brutalism, Minimalism, etc.
|
|
150
|
-
- **3 Quality Tiers**: Basic (30-50 LOC), Standard (50-150 LOC), Enterprise (150-300 LOC)
|
|
151
|
-
- **40+ Component Types**: Button, Card, Input, Modal, Table, etc.
|
|
152
|
-
- **24 Factors**: Color, Size, Variant, Shape, Shadow, Animation, etc.
|
|
153
|
-
- **Hybrid Override System**: User values → ClassMapper, Defaults → Registry
|
|
154
|
-
|
|
155
|
-
## 🔍 Package Stats
|
|
156
|
-
|
|
157
|
-
**After .npmignore:**
|
|
158
|
-
- **Total files**: ~150 files
|
|
159
|
-
- **Size**: ~1.5MB (unpacked: ~4MB)
|
|
160
|
-
- **Main exports**:
|
|
161
|
-
- `dist/index.js` (CJS): 577KB
|
|
162
|
-
- `dist/index.mjs` (ESM): 569KB
|
|
163
|
-
- `dist/browser.js`: 372KB (browser bundle)
|
|
164
|
-
- **TypeScript definitions**: Full `.d.ts` files included
|
|
165
|
-
|
|
166
|
-
## 📝 Post-Publish
|
|
167
|
-
|
|
168
|
-
### Update README
|
|
169
|
-
|
|
170
|
-
Add installation badge:
|
|
171
|
-
|
|
172
|
-
```markdown
|
|
173
|
-
[](https://www.npmjs.com/package/@nikkory/vibe-engine)
|
|
174
|
-
[](https://www.npmjs.com/package/@nikkory/vibe-engine)
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Create Release Notes
|
|
178
|
-
|
|
179
|
-
GitHub release with:
|
|
180
|
-
- Version: v4.0.0
|
|
181
|
-
- Title: "Matrix Algorithm v4 - Hybrid Override System"
|
|
182
|
-
- Changelog:
|
|
183
|
-
- ✅ Hybrid logic: ClassMapper + design-systems-registry
|
|
184
|
-
- ✅ CLI with factor overrides support
|
|
185
|
-
- ✅ 12 design systems × 3 tiers × 40+ components
|
|
186
|
-
- ✅ Enterprise-grade code generation
|
|
187
|
-
|
|
188
|
-
### Social Media
|
|
189
|
-
|
|
190
|
-
Twitter/LinkedIn post:
|
|
191
|
-
```
|
|
192
|
-
🚀 Just published @nikkory/vibe-engine v4.0.0!
|
|
193
|
-
|
|
194
|
-
Zero-token UI component generation with Matrix Algorithm (M1×M2×M3×M4)
|
|
195
|
-
|
|
196
|
-
✨ Features:
|
|
197
|
-
- 12 design systems (Material, iOS, Glassmorphism, etc.)
|
|
198
|
-
- 3 quality tiers (Basic → Enterprise)
|
|
199
|
-
- 40+ component types
|
|
200
|
-
- CLI with factor overrides
|
|
201
|
-
- Enterprise-grade code
|
|
202
|
-
|
|
203
|
-
npm i -g @nikkory/vibe-engine
|
|
204
|
-
vibe generate button material-design enterprise
|
|
205
|
-
|
|
206
|
-
Powered by Nikkory
|
|
207
|
-
https://nikkory.com
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
## 🛟 Troubleshooting
|
|
211
|
-
|
|
212
|
-
### Error: 401 Unauthorized
|
|
213
|
-
|
|
214
|
-
```bash
|
|
215
|
-
npm logout
|
|
216
|
-
npm login
|
|
217
|
-
npm publish --access public
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Error: Package already exists
|
|
221
|
-
|
|
222
|
-
Version 4.0.0 already published? Update version:
|
|
223
|
-
|
|
224
|
-
```bash
|
|
225
|
-
npm version patch # 4.0.1
|
|
226
|
-
# or
|
|
227
|
-
npm version minor # 4.1.0
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
### Error: Missing bin file
|
|
231
|
-
|
|
232
|
-
```bash
|
|
233
|
-
chmod +x bin/vibe.js
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## ✅ Success Criteria
|
|
237
|
-
|
|
238
|
-
After publish, verify:
|
|
239
|
-
|
|
240
|
-
- [ ] Package visible on npmjs.com: https://www.npmjs.com/package/@nikkory/vibe-engine
|
|
241
|
-
- [ ] CLI installs globally: `npm i -g @nikkory/vibe-engine`
|
|
242
|
-
- [ ] CLI works: `vibe --help`
|
|
243
|
-
- [ ] Component generation works: `vibe generate button material-design enterprise`
|
|
244
|
-
- [ ] Override works: `--factor-4=full` produces `rounded-full`
|
|
245
|
-
- [ ] All files included: component + types + tests
|
|
246
|
-
|
|
247
|
-
---
|
|
248
|
-
|
|
249
|
-
**Powered by Nikkory**
|
|
250
|
-
https://nikkory.com
|
package/PUBLISH-SUCCESS.md
DELETED
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
# ✅ NPM Publish Success - @nikkory/vibe-engine v4.0.0
|
|
2
|
-
|
|
3
|
-
## 🎉 PUBLISHED SUCCESSFULLY!
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
+ @nikkory/vibe-engine@4.0.0
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
**Published at**: 2026-01-11 04:36 UTC
|
|
10
|
-
**Registry**: https://registry.npmjs.org/
|
|
11
|
-
**Access**: public
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 📦 Package Details
|
|
16
|
-
|
|
17
|
-
| Property | Value |
|
|
18
|
-
|----------|-------|
|
|
19
|
-
| **Name** | `@nikkory/vibe-engine` |
|
|
20
|
-
| **Version** | `4.0.0` |
|
|
21
|
-
| **Tarball Size** | 532.5 KB |
|
|
22
|
-
| **Unpacked Size** | 3.0 MB |
|
|
23
|
-
| **Total Files** | 333 |
|
|
24
|
-
| **License** | MIT |
|
|
25
|
-
| **Author** | Nikkory <dev@nikkory.com> |
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 🔗 Package Links
|
|
30
|
-
|
|
31
|
-
- **npm Page**: https://www.npmjs.com/package/@nikkory/vibe-engine
|
|
32
|
-
- **GitHub**: https://github.com/kemonra/nikkory-vibe/tree/main/packages/engine
|
|
33
|
-
- **Documentation**: README.md
|
|
34
|
-
|
|
35
|
-
---
|
|
36
|
-
|
|
37
|
-
## 📥 Installation (For End Users)
|
|
38
|
-
|
|
39
|
-
### Global Install (Recommended for CLI)
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
npm install -g @nikkory/vibe-engine
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### Local Install (For programmatic use)
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npm install @nikkory/vibe-engine
|
|
49
|
-
# or
|
|
50
|
-
pnpm add @nikkory/vibe-engine
|
|
51
|
-
# or
|
|
52
|
-
yarn add @nikkory/vibe-engine
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 🧪 Test Installation
|
|
58
|
-
|
|
59
|
-
### 1. Install Globally
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
npm install -g @nikkory/vibe-engine
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### 2. Verify CLI
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
vibe --help
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**Expected output:**
|
|
72
|
-
```
|
|
73
|
-
Nikkory Vibe CLI - Algorithm Engine
|
|
74
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
75
|
-
|
|
76
|
-
USAGE:
|
|
77
|
-
vibe <command> [options]
|
|
78
|
-
|
|
79
|
-
COMMANDS:
|
|
80
|
-
generate Generate a single component
|
|
81
|
-
batch Generate multiple components
|
|
82
|
-
...
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### 3. Test Generation with Override
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
# Create test directory
|
|
89
|
-
mkdir ~/test-nikkory-cli
|
|
90
|
-
cd ~/test-nikkory-cli
|
|
91
|
-
|
|
92
|
-
# Generate enterprise button with factor override
|
|
93
|
-
vibe generate button material-design enterprise --factor-4=full -o ./output
|
|
94
|
-
|
|
95
|
-
# Check generated files
|
|
96
|
-
ls -la output/material-design/button/
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### 4. Verify Override Works
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
# Check for rounded-full (override) instead of rounded-lg (default)
|
|
103
|
-
cat output/material-design/button/enterprise.tsx | grep "rounded"
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Expected**: Should see `rounded-full` (from ClassMapper override)
|
|
107
|
-
|
|
108
|
-
### 5. Test Glassmorphism Card
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
vibe generate card glassmorphism enterprise -o ./output
|
|
112
|
-
cat output/glassmorphism/card/enterprise.tsx
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
**Expected**:
|
|
116
|
-
- Glassmorphism styles: `backdrop-blur-lg`, `bg-white/20`
|
|
117
|
-
- Enterprise features: `memo`, `forwardRef`, `analytics`
|
|
118
|
-
|
|
119
|
-
---
|
|
120
|
-
|
|
121
|
-
## ✅ What Users Get
|
|
122
|
-
|
|
123
|
-
### CLI Commands
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
# Generate single component
|
|
127
|
-
vibe generate <component> <design-system> <tier> [options]
|
|
128
|
-
|
|
129
|
-
# With factor overrides
|
|
130
|
-
vibe generate button material-design enterprise \
|
|
131
|
-
--factor-4=full \
|
|
132
|
-
--factor-5=xl \
|
|
133
|
-
-o ./components
|
|
134
|
-
|
|
135
|
-
# Batch generation
|
|
136
|
-
vibe batch \
|
|
137
|
-
-o ./output \
|
|
138
|
-
--ds material-design \
|
|
139
|
-
-t enterprise \
|
|
140
|
-
-c button,card,input
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Generated Files (Per Component)
|
|
144
|
-
|
|
145
|
-
1. **Component File** (`.tsx`):
|
|
146
|
-
- Enterprise: 150-300 LOC
|
|
147
|
-
- React.memo, forwardRef, useCallback
|
|
148
|
-
- Analytics tracking
|
|
149
|
-
- Full ARIA support
|
|
150
|
-
- Tailwind CSS styling
|
|
151
|
-
|
|
152
|
-
2. **Types File** (`.types.ts`):
|
|
153
|
-
- Complete TypeScript definitions
|
|
154
|
-
- Variant and size types
|
|
155
|
-
- Event handler types
|
|
156
|
-
- Loading/error state types
|
|
157
|
-
|
|
158
|
-
3. **Test File** (`.test.tsx`):
|
|
159
|
-
- Vitest test suite
|
|
160
|
-
- Component rendering tests
|
|
161
|
-
- Props validation tests
|
|
162
|
-
- Accessibility tests
|
|
163
|
-
|
|
164
|
-
### Features
|
|
165
|
-
|
|
166
|
-
- **12 Design Systems**: Material Design, iOS HIG, Glassmorphism, Neumorphism, Brutalism, Minimalism, Cyberpunk, Flat Design, Retro Vintage, Fluent Design, Carbon Design, Ant Design
|
|
167
|
-
- **3 Quality Tiers**: Basic (30-50 LOC), Standard (50-150 LOC), Enterprise (150-300 LOC)
|
|
168
|
-
- **40+ Component Types**: Button, Card, Input, Modal, Table, Alert, Badge, etc.
|
|
169
|
-
- **24 Factors**: Color, Size, Variant, Shape, Shadow, Animation, etc.
|
|
170
|
-
- **Hybrid Override System**: User overrides → ClassMapper, Defaults → Registry
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## 🎯 Key Achievements
|
|
175
|
-
|
|
176
|
-
### ✅ Matrix Algorithm Implementation
|
|
177
|
-
|
|
178
|
-
- **M1 × M2 × M3 × M4**: Full matrix multiplication
|
|
179
|
-
- **Hybrid Approach**: ClassMapper (overrides) + design-systems-registry (defaults)
|
|
180
|
-
- **24-Factor System**: Complete factor configuration
|
|
181
|
-
- **Zero duplicate code**: Each system handles its domain
|
|
182
|
-
|
|
183
|
-
### ✅ CLI Features
|
|
184
|
-
|
|
185
|
-
- **Factor overrides**: `--factor-N=value` syntax
|
|
186
|
-
- **Multiple output formats**: Component + Types + Tests
|
|
187
|
-
- **Batch generation**: Multiple components at once
|
|
188
|
-
- **Design system support**: 12 systems × 3 tiers
|
|
189
|
-
|
|
190
|
-
### ✅ Code Quality
|
|
191
|
-
|
|
192
|
-
- **Enterprise tier**: All 7 features verified
|
|
193
|
-
- React.memo
|
|
194
|
-
- forwardRef
|
|
195
|
-
- useCallback
|
|
196
|
-
- displayName
|
|
197
|
-
- Analytics tracking
|
|
198
|
-
- ARIA attributes
|
|
199
|
-
- Type safety
|
|
200
|
-
|
|
201
|
-
- **Build quality**:
|
|
202
|
-
- Zero TypeScript errors
|
|
203
|
-
- Zero ESLint errors
|
|
204
|
-
- Full type definitions included
|
|
205
|
-
- Source maps available
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## 📊 Package Stats
|
|
210
|
-
|
|
211
|
-
### Files Published (333 total)
|
|
212
|
-
|
|
213
|
-
- `dist/index.js`: 577.7 KB (CJS)
|
|
214
|
-
- `dist/index.mjs`: 569.7 KB (ESM)
|
|
215
|
-
- `dist/browser.js`: 372.3 KB (Browser bundle)
|
|
216
|
-
- `dist/*.d.ts`: Full TypeScript definitions (~150 files)
|
|
217
|
-
- `bin/vibe.js`: CLI executable
|
|
218
|
-
- `README.md`: 35.1 KB documentation
|
|
219
|
-
- `PUBLISH-GUIDE.md`: 6.0 KB publish guide
|
|
220
|
-
|
|
221
|
-
### Bundle Size
|
|
222
|
-
|
|
223
|
-
| Format | Size | Use Case |
|
|
224
|
-
|--------|------|----------|
|
|
225
|
-
| CJS | 577.7 KB | Node.js require() |
|
|
226
|
-
| ESM | 569.7 KB | Modern import |
|
|
227
|
-
| Browser | 372.3 KB | Browser bundle |
|
|
228
|
-
|
|
229
|
-
---
|
|
230
|
-
|
|
231
|
-
## 🔄 What Happens Next
|
|
232
|
-
|
|
233
|
-
### Immediate (Within minutes)
|
|
234
|
-
|
|
235
|
-
- ✅ Package appears on npmjs.com
|
|
236
|
-
- ✅ Available for `npm install`
|
|
237
|
-
- ✅ CLI available globally
|
|
238
|
-
|
|
239
|
-
### Soon (Within hours)
|
|
240
|
-
|
|
241
|
-
- Package indexed by npm search
|
|
242
|
-
- Download stats begin tracking
|
|
243
|
-
- Package appears in dependency graphs
|
|
244
|
-
|
|
245
|
-
### You Can Do Now
|
|
246
|
-
|
|
247
|
-
1. **Verify on npmjs.com**:
|
|
248
|
-
- Visit: https://www.npmjs.com/package/@nikkory/vibe-engine
|
|
249
|
-
- Check version, readme, files
|
|
250
|
-
|
|
251
|
-
2. **Test install on another machine**:
|
|
252
|
-
```bash
|
|
253
|
-
npm install -g @nikkory/vibe-engine
|
|
254
|
-
vibe --help
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
3. **Share the news**:
|
|
258
|
-
- Twitter/LinkedIn announcement
|
|
259
|
-
- Update project README with npm badge
|
|
260
|
-
- Create GitHub release v4.0.0
|
|
261
|
-
|
|
262
|
-
4. **Create documentation**:
|
|
263
|
-
- Usage examples
|
|
264
|
-
- Video demo
|
|
265
|
-
- Tutorial blog post
|
|
266
|
-
|
|
267
|
-
---
|
|
268
|
-
|
|
269
|
-
## 🎨 Example Outputs
|
|
270
|
-
|
|
271
|
-
### Generated Enterprise Button (Material Design)
|
|
272
|
-
|
|
273
|
-
```tsx
|
|
274
|
-
export const MaterialButtonEnterprise = memo(
|
|
275
|
-
forwardRef<HTMLButtonElement, MaterialButtonEnterpriseProps>(
|
|
276
|
-
({ analyticsEvent, onClick, children, ...props }, ref) => {
|
|
277
|
-
const handleClick = useCallback(
|
|
278
|
-
(e: React.MouseEvent<HTMLButtonElement>): void => {
|
|
279
|
-
if (analyticsEvent && typeof window !== "undefined") {
|
|
280
|
-
(window as unknown as { dataLayer?: unknown[] }).dataLayer?.push({
|
|
281
|
-
event: analyticsEvent,
|
|
282
|
-
});
|
|
283
|
-
}
|
|
284
|
-
onClick?.(e);
|
|
285
|
-
},
|
|
286
|
-
[analyticsEvent, onClick]
|
|
287
|
-
);
|
|
288
|
-
|
|
289
|
-
return (
|
|
290
|
-
<button
|
|
291
|
-
ref={ref}
|
|
292
|
-
onClick={handleClick}
|
|
293
|
-
className="bg-blue-500 hover:bg-blue-600 rounded-full ..."
|
|
294
|
-
{...props}
|
|
295
|
-
>
|
|
296
|
-
{children}
|
|
297
|
-
</button>
|
|
298
|
-
);
|
|
299
|
-
}
|
|
300
|
-
)
|
|
301
|
-
);
|
|
302
|
-
|
|
303
|
-
MaterialButtonEnterprise.displayName = 'MaterialButtonEnterprise';
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
### Generated Glassmorphism Card
|
|
307
|
-
|
|
308
|
-
```tsx
|
|
309
|
-
export const GlassCardEnterprise = memo(
|
|
310
|
-
forwardRef<HTMLArticleElement, GlassCardEnterpriseProps>(
|
|
311
|
-
({ children, ...props }, ref) => {
|
|
312
|
-
return (
|
|
313
|
-
<article
|
|
314
|
-
ref={ref}
|
|
315
|
-
className="bg-white/20 backdrop-blur-lg border-white/20 rounded-2xl ..."
|
|
316
|
-
{...props}
|
|
317
|
-
>
|
|
318
|
-
{children}
|
|
319
|
-
</article>
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
)
|
|
323
|
-
);
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
---
|
|
327
|
-
|
|
328
|
-
## 🚀 Future Updates
|
|
329
|
-
|
|
330
|
-
### Planned Features
|
|
331
|
-
|
|
332
|
-
- [ ] More design systems (15+ total)
|
|
333
|
-
- [ ] More component types (60+ total)
|
|
334
|
-
- [ ] Complete 24-factor ClassMapper (currently 3/24)
|
|
335
|
-
- [ ] Visual builder integration
|
|
336
|
-
- [ ] Theme customization
|
|
337
|
-
- [ ] Plugin system
|
|
338
|
-
|
|
339
|
-
### Version Roadmap
|
|
340
|
-
|
|
341
|
-
- **v4.0.x**: Patches and bug fixes
|
|
342
|
-
- **v4.1.0**: Additional factors in ClassMapper
|
|
343
|
-
- **v4.2.0**: New design systems
|
|
344
|
-
- **v5.0.0**: Visual builder integration
|
|
345
|
-
|
|
346
|
-
---
|
|
347
|
-
|
|
348
|
-
## 📞 Support
|
|
349
|
-
|
|
350
|
-
- **Issues**: https://github.com/kemonra/nikkory-vibe/issues
|
|
351
|
-
- **Email**: dev@nikkory.com
|
|
352
|
-
- **Website**: https://nikkory.com
|
|
353
|
-
|
|
354
|
-
---
|
|
355
|
-
|
|
356
|
-
## 🎉 Celebration!
|
|
357
|
-
|
|
358
|
-
**We did it!** 🎊
|
|
359
|
-
|
|
360
|
-
The hybrid approach implementation is complete and published:
|
|
361
|
-
|
|
362
|
-
- ✅ 12/12 plan tasks completed
|
|
363
|
-
- ✅ Hybrid logic implemented and verified
|
|
364
|
-
- ✅ CLI tested with overrides
|
|
365
|
-
- ✅ Enterprise quality verified
|
|
366
|
-
- ✅ Package published to npm
|
|
367
|
-
- ✅ Ready for users
|
|
368
|
-
|
|
369
|
-
**Powered by Nikkory** 🚀
|
|
370
|
-
https://nikkory.com
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 16-Factor Integration Tests
|
|
3
|
-
*
|
|
4
|
-
* Integration tests for the complete 16-factor system in StyleGenerator.
|
|
5
|
-
* Tests factor combinations and ensures all factors work together correctly.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
* @module tests/generator/16-factor-integration
|
|
9
|
-
* @since 2.0.0
|
|
10
|
-
*
|
|
11
|
-
* Powered by Nikkory
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=16-factor-integration.test.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 16-Factor Visual E2E Tests
|
|
3
|
-
*
|
|
4
|
-
* End-to-end tests for visual verification of 16-Factor system.
|
|
5
|
-
* These tests verify that factor props correctly apply visual styles.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
* @module __tests__/e2e/16-factor-visual
|
|
9
|
-
* @since 2.1.0
|
|
10
|
-
*
|
|
11
|
-
* Powered by Nikkory
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=16-factor-visual.test.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 5-Level Abstraction Integration Tests
|
|
3
|
-
*
|
|
4
|
-
* Integration tests for the 5-Level Abstraction API with component props.
|
|
5
|
-
* Tests that MultiLevelProps works correctly across all levels.
|
|
6
|
-
*
|
|
7
|
-
* @packageDocumentation
|
|
8
|
-
* @module tests/resolution/5-level-integration
|
|
9
|
-
* @since 2.1.0
|
|
10
|
-
*
|
|
11
|
-
* Powered by Nikkory
|
|
12
|
-
*/
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=5-level-integration.test.d.ts.map
|