prep for 1.2.0 release updates

This commit is contained in:
2026-06-21 11:45:58 -07:00
parent 73191c958f
commit 032b7c39d3
286 changed files with 21116 additions and 121 deletions
+14 -2
View File
@@ -85,12 +85,16 @@ lyrebird new 1stPiece # error: not a valid Swift module name
**Templates** — `--template <name>`:
- SPM-only (open `Package.swift` in Xcode): `basic` (default), `demo`, `ui-demo`, `nrt`, `score`
- Xcode-project (ships `.xcodeproj` + `.xcworkspace`): `macos-ui-xcode`, `ios-ui`, `auv3`
- Xcode-project (ships `.xcodeproj` + `.xcworkspace`, builds to `.app` or `.appex`): `shoegaze`, `shoegaze-ios`, `macos-ui-xcode`, `ios-ui`, `auv3`
```sh
lyrebird new MyApp --template macos-ui-xcode # macOS .app
lyrebird new MyApp --template ios-ui # iOS .app
lyrebird new MyPlugin --template auv3 # AUv3 host + .appex
lyrebird new MyRig --template shoegaze \
--shoegaze-path /path/to/ShoeGaze # macOS guitar pedalboard (.xcodeproj, .app)
lyrebird new MyRig --template shoegaze-ios \
--shoegaze-path /path/to/ShoeGaze # iOS guitar pedalboard (.xcodeproj, .app)
```
**Local Lyrebird checkout** — `--lyrebird-path <abs-path>` makes the generated project depend on a local Lyrebird checkout (via `.package(name: "Lyrebird", path: ...)` in `Package.swift`, `XCLocalSwiftPackageReference` in `<name>.xcodeproj`). Use while the published repo URL isn't yet accessible:
@@ -100,7 +104,15 @@ lyrebird new MyApp --template macos-ui-xcode \
--lyrebird-path /Users/me/Documents/LyrebirdII
```
See `docs/tooling/project-system.md` for the layout each template emits.
**Local ShoeGaze checkout** — `--shoegaze-path <abs-path>` (shoegaze / shoegaze-ios templates) wires the `LyrebirdShoeGaze` package as a local SPM dependency. Omitting this flag emits a placeholder remote URL in the generated project; edit it or re-run with `--shoegaze-path` once ShoeGaze is published. The placeholder URL is `ProjectScaffolder.shoegazePackageURL`.
```sh
lyrebird new MyRig --template shoegaze-ios \
--lyrebird-path /Users/me/Documents/LyrebirdII \
--shoegaze-path /Users/me/Documents/LyrebirdII/ShoeGaze
```
See `docs/tooling/project-system.md` for the layout each template emits. See `docs/stdlib/shoegaze.md` for the ShoeGaze package concepts and workflow.
If the directory already exists, the command fails cleanly and leaves the filesystem unchanged.
+2
View File
@@ -48,9 +48,11 @@ Xcode-project templates (ship a real `.xcodeproj` for deliverables SwiftPM can't
| Template | Command | Description |
|---|---|---|
| `shoegaze` | `lyrebird new MyRig --template shoegaze --shoegaze-path <path>` | macOS guitar-pedalboard `.app` (Xcode, SwiftUI `@main`). Generates a full `.xcodeproj` with a `ShoeGazeView` root view, an `@Observable` app model wiring `CoreAudioDriver` + `ShoeGaze`, and an **Audio ▸ Mute ⌘M** menu command. `NSMicrophoneUsageDescription` pre-wired for `.liveInput`. Default board: Overdrive→Delay→Reverb→Modulation fed by the built-in test loop. Requires `--shoegaze-path` until `LyrebirdShoeGaze` is published |
| `macos-ui-xcode` | `lyrebird new MyApp --template macos-ui-xcode` | macOS `.app` (AppKit + SwiftUI), `@UIParam` synth, hardened runtime |
| `ios-ui` | `lyrebird new MyApp --template ios-ui` | iOS `.app` (SwiftUI + `iOSAudioDriver`), `AVAudioSession` activation, iPhone + iPad device family |
| `auv3` | `lyrebird new MyPlugin --template auv3` | AUv3 host `.app` + `aumu` `.appex` subclassing `LyrebirdAudioUnit`. Entitlements for both. Subtype + manufacturer pre-filled (manufacturer = `LYRB` placeholder — rewrite for distribution) |
| `shoegaze-ios` | `lyrebird new MyRig --template shoegaze-ios --shoegaze-path <path>` | iOS guitar-pedalboard `.app` (SwiftUI + `iOSAudioDriver`). Generates a full `.xcodeproj` with a `ShoeGazeView` root view and an `@Observable` app model wiring `AVAudioSession` + `ShoeGaze`. Default board: Overdrive→Delay→Reverb→Modulation fed by the built-in test loop. Adds `LyrebirdShoeGaze` + `LyrebirdShoeGazeUI` to the project's SPM deps. Requires `--shoegaze-path` until `LyrebirdShoeGaze` is published |
Each Xcode-project template lays out:
+11
View File
@@ -108,6 +108,17 @@ All six Tier 3 templates compile in projects depending on Lyrebird as a Swift
Package and are reported as `OK (external)` by the validator. None require
LyrebirdUI.
### Tier 4 — sample-project templates (ShoeGaze)
| Template | Generates | Use when |
|---|---|---|
| **ShoeGaze Pedal** | `final class <Name>: Pedal` with an `@UIParam` knob, a stubbed `effect(_:)` returning the processed mono signal, and an `effectKnobs` override publishing its knobs | Adding a new guitar pedal to a project using the ShoeGaze sample package. The base `Pedal` handles wet/dry `mix`, click-free `bypass`, and `level`; `PedalView` renders the published knobs. |
The ShoeGaze Pedal template requires the **LyrebirdShoeGaze** package (it imports
`LyrebirdShoeGaze` and `LyrebirdUI`), not just core Lyrebird. Use it inside a
project scaffolded with `lyrebird new --template shoegaze`, or any target that
depends on the ShoeGaze package. See [`../stdlib/shoegaze.md`](../stdlib/shoegaze.md).
Each template prompts for a name in Xcode's dialog. The name becomes both the file
name and the top-level identifier inside the file.