@hef2024/llmasaservice-ui 0.16.8 → 0.16.9

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/DEPLOYMENT.md ADDED
@@ -0,0 +1,193 @@
1
+ # 📦 Deployment Guide
2
+
3
+ ## Current Status
4
+ - ✅ Build successful (version 0.16.8)
5
+ - ✅ Tests passing (17 tests passed)
6
+ - ✅ Ready to publish
7
+
8
+ ---
9
+
10
+ ## Step 1: Login to npm
11
+
12
+ **Important:** You need to be logged in as the owner of the `@hef2024` scope.
13
+
14
+ ```bash
15
+ npm login
16
+ ```
17
+
18
+ You'll be prompted for:
19
+ - Username (must be the owner of @hef2024 scope)
20
+ - Password
21
+ - Email
22
+ - OTP (if 2FA is enabled)
23
+
24
+ Verify you're logged in:
25
+ ```bash
26
+ npm whoami
27
+ ```
28
+
29
+ **Note:** If this is the first time publishing this package, make sure you have access to the `@hef2024` scope on npm. If you don't own this scope, you'll need to either:
30
+ 1. Create the scope on npm (if available)
31
+ 2. Change the package name in `package.json` to a scope you own
32
+ 3. Publish without a scope (remove `@hef2024/` prefix)
33
+
34
+ ---
35
+
36
+ ## Step 2: Publish the Package
37
+
38
+ ```bash
39
+ # Make sure you're in the llmasaservice-ui-1 directory
40
+ cd /Users/indomitablehef/llmasaservice-ui-1
41
+
42
+ # Build the package (already done, but good to verify)
43
+ npm run build
44
+
45
+ # Run tests (already done, but good to verify)
46
+ npm test
47
+
48
+ # Publish to npm
49
+ npm publish --access public
50
+ ```
51
+
52
+ **Note:** The package name is `@hef2024/llmasaservice-ui` and it's scoped, so `--access public` is required.
53
+
54
+ **If you get a 404 error:**
55
+ - This might be the first publish of this package
56
+ - Make sure you're logged in as the owner of the `@hef2024` scope
57
+ - If the scope doesn't exist or you don't have access, you'll need to either create it on npm or change the package name
58
+
59
+ ---
60
+
61
+ ## Step 3: Unlink in FocusedFit
62
+
63
+ Navigate to your FocusedFit project directory and run:
64
+
65
+ ```bash
66
+ # Unlink the local development version
67
+ npm unlink @hef2024/llmasaservice-ui
68
+
69
+ # Or if it was linked as 'llmasaservice-ui':
70
+ npm unlink llmasaservice-ui
71
+
72
+ # Restore to published version
73
+ npm install
74
+ ```
75
+
76
+ **Alternative:** If the unlink doesn't work, you can manually remove the link:
77
+
78
+ ```bash
79
+ # Check if it's linked
80
+ npm ls @hef2024/llmasaservice-ui
81
+
82
+ # Remove node_modules and package-lock.json
83
+ rm -rf node_modules package-lock.json
84
+
85
+ # Reinstall
86
+ npm install
87
+ ```
88
+
89
+ ---
90
+
91
+ ## Step 4: Install Published Version in FocusedFit
92
+
93
+ In your FocusedFit project:
94
+
95
+ ```bash
96
+ # Install the published version
97
+ npm install @hef2024/llmasaservice-ui@latest
98
+
99
+ # Or install a specific version
100
+ npm install @hef2024/llmasaservice-ui@0.16.8
101
+ ```
102
+
103
+ ---
104
+
105
+ ## Step 5: Verify Installation
106
+
107
+ In your FocusedFit project:
108
+
109
+ ```bash
110
+ # Check installed version
111
+ npm ls @hef2024/llmasaservice-ui
112
+
113
+ # Should show something like:
114
+ # @hef2024/llmasaservice-ui@0.16.8
115
+ ```
116
+
117
+ ---
118
+
119
+ ## Troubleshooting
120
+
121
+ ### If unlink fails:
122
+ ```bash
123
+ # Remove the symlink manually
124
+ rm -rf node_modules/@hef2024/llmasaservice-ui
125
+ rm -rf node_modules/llmasaservice-ui
126
+
127
+ # Clear npm cache
128
+ npm cache clean --force
129
+
130
+ # Reinstall
131
+ npm install
132
+ ```
133
+
134
+ ### If you see "local" or "file:" in npm ls:
135
+ The package is still linked. Make sure you:
136
+ 1. Ran `npm unlink` in FocusedFit
137
+ 2. Removed `node_modules` and `package-lock.json`
138
+ 3. Ran `npm install` again
139
+
140
+ ### To verify the link is removed:
141
+ ```bash
142
+ # In FocusedFit directory
143
+ cat node_modules/@hef2024/llmasaservice-ui/package.json
144
+ # Should NOT show a "link" field or point to a local path
145
+ ```
146
+
147
+ ---
148
+
149
+ ## Quick Reference
150
+
151
+ ### In llmasaservice-ui-1 (this package):
152
+ ```bash
153
+ npm run build # Build the package
154
+ npm test # Run tests
155
+ npm publish --access public # Publish to npm
156
+ ```
157
+
158
+ ### In FocusedFit (consuming app):
159
+ ```bash
160
+ npm unlink @hef2024/llmasaservice-ui # Unlink local version
161
+ npm install # Restore dependencies
162
+ npm install @hef2024/llmasaservice-ui@latest # Install published version
163
+ ```
164
+
165
+ ---
166
+
167
+ ## Version Bumping (for future releases)
168
+
169
+ When you need to publish a new version:
170
+
171
+ 1. Update version in `package.json`:
172
+ ```json
173
+ "version": "0.16.9"
174
+ ```
175
+
176
+ 2. Build and test:
177
+ ```bash
178
+ npm run build
179
+ npm test
180
+ ```
181
+
182
+ 3. Commit and tag:
183
+ ```bash
184
+ git add package.json
185
+ git commit -m "Bump version to 0.16.9"
186
+ git tag v0.16.9
187
+ git push origin main --tags
188
+ ```
189
+
190
+ 4. Publish:
191
+ ```bash
192
+ npm publish --access public
193
+ ```