@tamer4lynx/cli 0.0.2 → 0.0.4

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.
Files changed (3) hide show
  1. package/README.md +11 -10
  2. package/dist/index.js +477 -1781
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -143,9 +143,9 @@ Run from an extension package root to generate code from `@lynxmodule` declarati
143
143
  |---------|-------|-------------|
144
144
  | `t4l android create` | `-t, --target <host\|dev-app>` | Create Android project. Default: `host`. |
145
145
  | `t4l android link` | — | Link native modules to Gradle. Build runs this automatically. |
146
- | `t4l android bundle` | `-t, --target`, `-d, --debug`, `-r, --release` | Build Lynx bundle and copy to assets. Runs autolink first. |
147
- | `t4l android build` | `-i, --install`, `-t, --target`, `-e, --embeddable`, `-d, --debug`, `-r, --release` | Build APK. `--install` deploys to device. `--embeddable` outputs AAR to `embeddable/` for existing apps. |
148
- | `t4l android sync` | — | Sync dev client files from tamer.config.json. |
146
+ | `t4l android bundle` | `-d, --debug`, `-r, --release` | Build Lynx bundle and copy to assets. `-d` (default) embeds dev client if present; `-r` omits it. Runs autolink first. |
147
+ | `t4l android build` | `-i, --install`, `-e, --embeddable`, `-d, --debug`, `-r, --release` | Build APK. `-d` (default) = debug with dev client; `-r` = release without. `--install` deploys to device. `--embeddable` outputs AAR to `embeddable/`. |
148
+ | `t4l android sync` | — | Sync dev client files (TemplateProvider, MainActivity, DevClientManager). |
149
149
  | `t4l android inject` | `-f, --force` | Inject tamer-host templates. `--force` overwrites existing files. |
150
150
 
151
151
  ### **iOS Commands**
@@ -154,19 +154,20 @@ Run from an extension package root to generate code from `@lynxmodule` declarati
154
154
  |---------|-------|-------------|
155
155
  | `t4l ios create` | — | Create iOS project. |
156
156
  | `t4l ios link` | — | Link native modules to Podfile. Build runs this automatically. |
157
- | `t4l ios bundle` | `-t, --target`, `-d, --debug`, `-r, --release` | Build Lynx bundle and copy to iOS project. |
158
- | `t4l ios build` | `-t, --target`, `-e, --embeddable`, `-i, --install`, `-d, --debug`, `-r, --release` | Build iOS app. `--install` deploys to simulator. |
157
+ | `t4l ios bundle` | `-d, --debug`, `-r, --release` | Build Lynx bundle and copy to iOS project. `-d` embeds dev client if present; `-r` omits it. |
158
+ | `t4l ios build` | `-e, --embeddable`, `-i, --install`, `-d, --debug`, `-r, --release` | Build iOS app. `-d` = debug with dev client; `-r` = release without. `--install` deploys to simulator. |
159
159
  | `t4l ios inject` | `-f, --force` | Inject tamer-host templates. `--force` overwrites existing files. |
160
160
 
161
161
  ### **Unified Build** (`t4l build`)
162
162
 
163
+ Builds your app. Dev client (QR scan, HMR) is included when you use **debug** (`-d`) and have `@tamer4lynx/tamer-dev-client` installed; **release** (`-r`) builds without it.
164
+
163
165
  | Flag | Short | Default | Description |
164
166
  |------|-------|---------|-------------|
165
167
  | `--platform` | `-p` | `all` | `android`, `ios`, or `all` |
166
- | `--target` | `-t` | `dev-app` | `host` (production) or `dev-app` (QR scan, HMR) |
167
168
  | `--embeddable` | `-e` | — | Output to `embeddable/`: **AAR** (Android) + **CocoaPod** (iOS). Use with `--release`. |
168
- | `--debug` | `-d` | default | Debug build |
169
- | `--release` | `-r` | — | Release build (optimized) |
169
+ | `--debug` | `-d` | default | Debug build with dev client embedded (if tamer-dev-client is installed) |
170
+ | `--release` | `-r` | — | Release build without dev client |
170
171
  | `--install` | `-i` | — | Install to device/simulator after build |
171
172
 
172
173
  ### **Other Commands**
@@ -272,8 +273,8 @@ Install from npm and run `t4l link` after adding to your app:
272
273
  | [@tamer4lynx/jiggle](https://www.npmjs.com/package/@tamer4lynx/jiggle) | `npm i @tamer4lynx/jiggle` | Vibration/haptic |
273
274
  | [@tamer4lynx/lynxwebsockets](https://www.npmjs.com/package/@tamer4lynx/lynxwebsockets) | `npm i @tamer4lynx/lynxwebsockets` | WebSocket native bridge |
274
275
  | [@tamer4lynx/tamer-host](https://www.npmjs.com/package/@tamer4lynx/tamer-host) | `npm i @tamer4lynx/tamer-host` | Production Lynx host templates |
275
- | [tamer-dev-app](https://github.com/tamer4lynx/tamer-dev-app) | workspace | Dev app (QR scan, HMR) |
276
- | [@tamer4lynx/tamer-dev-client](https://www.npmjs.com/package/@tamer4lynx/tamer-dev-client) | `npm i @tamer4lynx/tamer-dev-client` | Dev launcher UI, discovery |
276
+ | [@tamer4lynx/tamer-dev-client](https://www.npmjs.com/package/@tamer4lynx/tamer-dev-client) | `npm i @tamer4lynx/tamer-dev-client` | Dev launcher UI (QR scan, HMR). Add to your app and build with `-d` for a dev build; `-r` omits it. |
277
+ | [@tamer4lynx/tamer-dev-app](https://www.npmjs.com/package/@tamer4lynx/tamer-dev-app) | workspace / npm | Standalone dev app (store build). Your app can use tamer-dev-client for dev builds instead. |
277
278
  | [@tamer4lynx/tamer-plugin](https://www.npmjs.com/package/@tamer4lynx/tamer-plugin) | `npm i @tamer4lynx/tamer-plugin` | Rsbuild plugin middleman |
278
279
  | [@tamer4lynx/tamer-router](https://www.npmjs.com/package/@tamer4lynx/tamer-router) | `npm i @tamer4lynx/tamer-router` | File-based routing, Stack/Tabs |
279
280
  | [@tamer4lynx/tamer-icons](https://www.npmjs.com/package/@tamer4lynx/tamer-icons) | `npm i @tamer4lynx/tamer-icons` | Icon fonts (Material, Font Awesome) |