@glassly/miniapp-cli 0.1.16 → 0.1.17-dev.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 +1 -1
- package/package.json +1 -1
- package/src/dev.ts +7 -5
- package/src/release.ts +7 -5
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ What it does:
|
|
|
54
54
|
|
|
55
55
|
Default `port` is `3000`; override the starting point with a `"port": <n>` field in `miniapp.json`. If that port or its sidecar neighbor is busy, `dev` scans upward until it finds a free adjacent pair.
|
|
56
56
|
|
|
57
|
-
On the phone, open the Glassly App → **Settings → Miniapp Developer Settings → Scan Miniapp QR Code**. That
|
|
57
|
+
On the phone, open the Glassly App → **Settings → Miniapp Developer Settings → Scan Miniapp QR Code**. That row only appears with debug mode on: tap the version number at the bottom of Settings 10 times to turn it on. With the iroh ticket the phone can be on any network; older Glassly App builds need the same Wi-Fi.
|
|
58
58
|
|
|
59
59
|
Both `dev` and `release` take the same QR flags. `--qr` / `-q` sizes the terminal QR (`small|medium|large`, or `sm|md|lg`; default `medium`). `--qr-output <path>` also writes a PNG. Without it the CLI still writes a PNG to a temp path and deletes it on exit; pass `--qr-output` when you want to keep the file.
|
|
60
60
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassly/miniapp-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17-dev.0",
|
|
4
4
|
"description": "Build tooling for Glassly miniapps: dev server, packer, manifest validation, and JSON Schema. The `glassly` command that drives it ships in @glassly/cli.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
package/src/dev.ts
CHANGED
|
@@ -260,10 +260,12 @@ export async function dev(options: DevOptions = {}): Promise<void> {
|
|
|
260
260
|
console.log('\n╔══════════════════════════════════════════════════════════════╗');
|
|
261
261
|
console.log('║ To test your miniapp on glasses: ║');
|
|
262
262
|
console.log('║ ║');
|
|
263
|
-
console.log('║ 1. Open the Glassly App on your phone
|
|
264
|
-
console.log('║ 2. Settings → Developer
|
|
265
|
-
console.log('║
|
|
266
|
-
console.log('║
|
|
263
|
+
console.log('║ 1. Open the Glassly App on your phone ║');
|
|
264
|
+
console.log('║ 2. Settings → Miniapp Developer Settings ║');
|
|
265
|
+
console.log('║ → Scan Miniapp QR Code, and scan the QR below ║');
|
|
266
|
+
console.log('║ ║');
|
|
267
|
+
console.log('║ No Miniapp Developer Settings row? Tap the version number ║');
|
|
268
|
+
console.log('║ at the bottom of Settings 10 times to turn on debug mode. ║');
|
|
267
269
|
console.log('║ ║');
|
|
268
270
|
if (tunnel) {
|
|
269
271
|
console.log('║ Your phone can be on any network (connects over iroh). ║');
|
|
@@ -276,7 +278,7 @@ export async function dev(options: DevOptions = {}): Promise<void> {
|
|
|
276
278
|
console.log('║ • Keep this process and computer running. ║');
|
|
277
279
|
console.log('║ • Each package gets its own dev entry, so you can scan ║');
|
|
278
280
|
console.log('║ and test multiple dev miniapps side by side. ║');
|
|
279
|
-
console.log('║ • The Glassly App caches each miniapp name and icon.
|
|
281
|
+
console.log('║ • The Glassly App caches each miniapp name and icon. ║');
|
|
280
282
|
console.log('║ ║');
|
|
281
283
|
console.log('║ For a persistent install, run: bun run release ║');
|
|
282
284
|
console.log('╚══════════════════════════════════════════════════════════════╝\n');
|
package/src/release.ts
CHANGED
|
@@ -150,12 +150,14 @@ export async function release(opts: ReleaseOptions = {}): Promise<void> {
|
|
|
150
150
|
const qrUrl = `miniapp://release?url=${encodeURIComponent(baseUrl)}&package=${encodeURIComponent(packageName)}&version=${encodeURIComponent(version)}&name=${encodeURIComponent(name)}`
|
|
151
151
|
|
|
152
152
|
console.log('\n╔══════════════════════════════════════════════════════════════╗')
|
|
153
|
-
console.log('║ Install your
|
|
153
|
+
console.log('║ Install your miniapp on a phone: ║')
|
|
154
154
|
console.log('║ ║')
|
|
155
|
-
console.log('║ 1. Open the Glassly
|
|
156
|
-
console.log('║ 2. Settings → Developer
|
|
157
|
-
console.log('║
|
|
158
|
-
console.log('║
|
|
155
|
+
console.log('║ 1. Open the Glassly App ║')
|
|
156
|
+
console.log('║ 2. Settings → Miniapp Developer Settings ║')
|
|
157
|
+
console.log('║ → Scan Miniapp QR Code, and scan the QR below ║')
|
|
158
|
+
console.log('║ ║')
|
|
159
|
+
console.log('║ No Miniapp Developer Settings row? Tap the version number ║')
|
|
160
|
+
console.log('║ at the bottom of Settings 10 times to turn on debug mode. ║')
|
|
159
161
|
console.log('║ ║')
|
|
160
162
|
console.log('║ Phone must be on the same Wi-Fi as this computer. ║')
|
|
161
163
|
console.log('║ This server stays up — install on multiple phones, then ║')
|