@ututrust/web-components 2.2.22-alpha.9 → 2.3.0-alpha.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 +90 -1
- package/dist/{manifest.json → .vite/manifest.json} +4 -3
- package/dist/index.cjs +272 -234
- package/dist/index.css +1 -0
- package/dist/index.js +31677 -69139
- package/package.json +9 -8
- package/dist/style.css +0 -1
package/README.md
CHANGED
|
@@ -250,7 +250,7 @@ $ npm install
|
|
|
250
250
|
Start watch mode with preview in a browser
|
|
251
251
|
|
|
252
252
|
```bash
|
|
253
|
-
$ npm
|
|
253
|
+
$ npm run dev
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
Production build
|
|
@@ -282,3 +282,92 @@ This will generate a ```.tgz``` file at the directory’s root with a structure
|
|
|
282
282
|
```bash
|
|
283
283
|
$ npm install <path to the package>/utu-web-components-1.0.0.tgz
|
|
284
284
|
```
|
|
285
|
+
|
|
286
|
+
## 🚀Release Workflow
|
|
287
|
+
|
|
288
|
+
We maintain **two types of releases** for the SDK:
|
|
289
|
+
|
|
290
|
+
- **Production release** → `UnlockGateway` **enabled**
|
|
291
|
+
- **Staging release** → `UnlockGateway` **commented out**
|
|
292
|
+
|
|
293
|
+
---
|
|
294
|
+
|
|
295
|
+
### 🔹Production Release
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
# make sure main is up to date
|
|
299
|
+
git checkout main
|
|
300
|
+
git pull
|
|
301
|
+
|
|
302
|
+
# create + switch to a release branch
|
|
303
|
+
git checkout -b release-[version]
|
|
304
|
+
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
➡️ In `FeedbackDetails.tsx`
|
|
308
|
+
|
|
309
|
+
Ensure the `UnlockGateway` tags are **active**:
|
|
310
|
+
|
|
311
|
+
```tsx
|
|
312
|
+
<UnlockGateway address={sourceUuid}>
|
|
313
|
+
...feedback details...
|
|
314
|
+
</UnlockGateway>
|
|
315
|
+
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
➡️ In `package.json`
|
|
319
|
+
|
|
320
|
+
Update the release version number (e.g. `1.2.3`)
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
git add .
|
|
324
|
+
git commit -m "Production release: enabled UnlockGateway + version bump"
|
|
325
|
+
git push origin release-[version]
|
|
326
|
+
|
|
327
|
+
# build + publish production
|
|
328
|
+
npm run build
|
|
329
|
+
npm login
|
|
330
|
+
npm publish
|
|
331
|
+
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
---
|
|
335
|
+
|
|
336
|
+
### 🔹Staging Release
|
|
337
|
+
|
|
338
|
+
```bash
|
|
339
|
+
# back to main
|
|
340
|
+
git checkout main
|
|
341
|
+
git pull
|
|
342
|
+
|
|
343
|
+
# create + switch to a staging branch
|
|
344
|
+
git checkout -b release-[version]-alpha
|
|
345
|
+
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
➡️ In `FeedbackDetails.tsx`
|
|
349
|
+
|
|
350
|
+
Comment out the `UnlockGateway` tags before building:
|
|
351
|
+
|
|
352
|
+
```tsx
|
|
353
|
+
{/* <UnlockGateway address={sourceUuid}> */}
|
|
354
|
+
...feedback details...
|
|
355
|
+
{/* </UnlockGateway> */}
|
|
356
|
+
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
➡️ In `package.json`
|
|
360
|
+
|
|
361
|
+
Update the version number with an alpha tag (e.g. `1.2.3-alpha`)
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
git add .
|
|
365
|
+
git commit -m "Staging release: commented UnlockGateway + version bump"
|
|
366
|
+
git push origin release-[version]-alpha
|
|
367
|
+
|
|
368
|
+
# build + publish staging
|
|
369
|
+
npm run build
|
|
370
|
+
npm login
|
|
371
|
+
npm publish
|
|
372
|
+
|
|
373
|
+
```
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"src/index.ts": {
|
|
3
3
|
"file": "index.cjs",
|
|
4
|
-
"
|
|
5
|
-
"src": "src/index.ts"
|
|
4
|
+
"name": "index",
|
|
5
|
+
"src": "src/index.ts",
|
|
6
|
+
"isEntry": true
|
|
6
7
|
},
|
|
7
8
|
"style.css": {
|
|
8
|
-
"file": "
|
|
9
|
+
"file": "index.css",
|
|
9
10
|
"src": "style.css"
|
|
10
11
|
}
|
|
11
12
|
}
|