Add watch command and update tsswift version in configuration

This commit is contained in:
2026-04-19 01:21:24 +02:00
parent ad059e9b8d
commit 15af566353
4 changed files with 14 additions and 9 deletions
@@ -2,11 +2,13 @@
"@git.zone/tsswift": { "@git.zone/tsswift": {
"defaultScheme": "SocialIO", "defaultScheme": "SocialIO",
"defaultConfiguration": "Debug", "defaultConfiguration": "Debug",
"derivedDataPath": ".build/xcode-derived-data", "derivedDataPath": "swift/.build/xcode-derived-data",
"parallelBuilds": true, "parallelBuilds": true,
"parallelTests": false, "parallelTests": false,
"buildPlatforms": ["macos", "ios", "ipad"], "buildPlatforms": ["macos", "ios", "ipad"],
"testPlatforms": ["macos"], "testPlatforms": ["macos"],
"watchPlatforms": ["macos", "ios", "ipad"],
"watchDebounceMs": 1200,
"defaultPlatform": "macos", "defaultPlatform": "macos",
"app": { "app": {
"bundleId": "io.social.app" "bundleId": "io.social.app"
@@ -19,7 +21,7 @@
"initialCommand": "socialio://mailbox/inbox" "initialCommand": "socialio://mailbox/inbox"
}, },
"screenshots": { "screenshots": {
"scenariosFile": "Automation/ui-screenshot-routes.txt", "scenariosFile": "swift/Automation/ui-screenshot-routes.txt",
"outputDir": "/tmp/socialio-ui-review", "outputDir": "/tmp/socialio-ui-review",
"reviewPlatforms": ["ios", "ipad", "macos"], "reviewPlatforms": ["ios", "ipad", "macos"],
"launchDelayMs": 2000, "launchDelayMs": 2000,
+2 -1
View File
@@ -9,6 +9,7 @@
"swift:build:macos": "tsswift build --path swift/SocialIO.xcodeproj --platform macos", "swift:build:macos": "tsswift build --path swift/SocialIO.xcodeproj --platform macos",
"swift:test": "tsswift test --path swift/SocialIO.xcodeproj", "swift:test": "tsswift test --path swift/SocialIO.xcodeproj",
"swift:run": "tsswift run --path swift/SocialIO.xcodeproj", "swift:run": "tsswift run --path swift/SocialIO.xcodeproj",
"swift:watch": "tsswift watch --path swift/SocialIO.xcodeproj",
"swift:launch": "tsswift launch --path swift/SocialIO.xcodeproj", "swift:launch": "tsswift launch --path swift/SocialIO.xcodeproj",
"swift:command:inbox": "tsswift command --path swift/SocialIO.xcodeproj --route socialio://mailbox/inbox", "swift:command:inbox": "tsswift command --path swift/SocialIO.xcodeproj --route socialio://mailbox/inbox",
"swift:screenshots:ios": "tsswift screenshots --path swift/SocialIO.xcodeproj --platform ios", "swift:screenshots:ios": "tsswift screenshots --path swift/SocialIO.xcodeproj --platform ios",
@@ -17,6 +18,6 @@
"swift:review": "tsswift review --path swift/SocialIO.xcodeproj" "swift:review": "tsswift review --path swift/SocialIO.xcodeproj"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsswift": "0.3.0" "@git.zone/tsswift": "0.4.1"
} }
} }
+5 -5
View File
@@ -9,8 +9,8 @@ importers:
.: .:
devDependencies: devDependencies:
'@git.zone/tsswift': '@git.zone/tsswift':
specifier: 0.3.0 specifier: 0.4.1
version: 0.3.0 version: 0.4.1
packages: packages:
@@ -39,8 +39,8 @@ packages:
'@design.estate/dees-element@2.2.4': '@design.estate/dees-element@2.2.4':
resolution: {integrity: sha512-O9cA6flBMMd+pBwMQrZXwAWel9yVxgokolb+Em6gvkXxPJ0P/B5UDn4Vc2d4ts3ta55PTBm+l2dPeDVGx/bl7Q==} resolution: {integrity: sha512-O9cA6flBMMd+pBwMQrZXwAWel9yVxgokolb+Em6gvkXxPJ0P/B5UDn4Vc2d4ts3ta55PTBm+l2dPeDVGx/bl7Q==}
'@git.zone/tsswift@0.3.0': '@git.zone/tsswift@0.4.1':
resolution: {integrity: sha512-gP/OKcxNUYgUZvNru/MXMGs0e5LMiM3Qxk4f4oDkgadbahMBGjBK/umtgV+ptph27YmBItOfGIlxtOvtH3X5+w==} resolution: {integrity: sha512-ouljDoZOYEnMze90z7342Cvie8TYTVTJPvJAhiWY9d4Pwt3zn+Uc9VW2DurLxBX3FMAPjZ1fMfy5LZoFgivkaQ==}
hasBin: true hasBin: true
'@isaacs/cliui@9.0.0': '@isaacs/cliui@9.0.0':
@@ -996,7 +996,7 @@ snapshots:
- supports-color - supports-color
- vue - vue
'@git.zone/tsswift@0.3.0': '@git.zone/tsswift@0.4.1':
dependencies: dependencies:
'@push.rocks/smartcli': 4.0.20 '@push.rocks/smartcli': 4.0.20
'@push.rocks/smartconfig': 6.1.0 '@push.rocks/smartconfig': 6.1.0
+3 -1
View File
@@ -31,15 +31,17 @@ corepack pnpm swift:emulators
corepack pnpm swift:build corepack pnpm swift:build
corepack pnpm swift:test corepack pnpm swift:test
corepack pnpm swift:run corepack pnpm swift:run
corepack pnpm swift:watch
corepack pnpm swift:launch corepack pnpm swift:launch
corepack pnpm swift:review corepack pnpm swift:review
``` ```
This repo now uses `@git.zone/tsswift` with project config in `swift/.smartconfig.json`. This repo now uses `@git.zone/tsswift` with project config in the repo-root `.smartconfig.json`.
- `build` targets macOS, iPhone Simulator, and iPad Simulator in parallel - `build` targets macOS, iPhone Simulator, and iPad Simulator in parallel
- `test` targets macOS, which matches the current test bundle setup - `test` targets macOS, which matches the current test bundle setup
- `run` defaults to macOS unless you pass `--platform ios` or `--platform ipad` - `run` defaults to macOS unless you pass `--platform ios` or `--platform ipad`
- `watch` rebuilds and relaunches macOS, iPhone, and iPad app instances on file changes
- `launch` starts the app with the configured control-file transport enabled - `launch` starts the app with the configured control-file transport enabled
- `review` replaces the old shell-script review loop and captures screenshot sets for iPhone, iPad, and macOS - `review` replaces the old shell-script review loop and captures screenshot sets for iPhone, iPad, and macOS