turbo.swift.build.cache (#14)
* chore: switch from polling to event for screen change detection * chore: enable caching of swift helper builds
This commit is contained in:
parent
b07d94e4ab
commit
f9a5bdc1ea
2 changed files with 22 additions and 2 deletions
|
|
@ -5,8 +5,8 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"build": "pnpm --filter @amical/types generate:all && turbo run build:native",
|
||||
"build:native": "swift build --configuration release && mkdir -p bin && cp .build/release/SwiftHelper bin/SwiftHelper",
|
||||
"clean": "rm -rf .build bin",
|
||||
"build:native": "mkdir -p .build && swift build --configuration release && mkdir -p bin && cp .build/release/SwiftHelper bin/SwiftHelper",
|
||||
"clean": "rm -rf .build bin .turbo",
|
||||
"dev": "pnpm --filter @amical/types generate:all && swift build --configuration debug && mkdir -p bin && cp .build/debug/SwiftHelper bin/SwiftHelper"
|
||||
},
|
||||
"files": [
|
||||
|
|
|
|||
20
packages/native-helpers/swift-helper/turbo.json
Normal file
20
packages/native-helpers/swift-helper/turbo.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "https://turborepo.com/schema.json",
|
||||
"extends": ["//"],
|
||||
"tasks": {
|
||||
"build": {
|
||||
"dependsOn": ["@amical/types#generate:all"],
|
||||
"inputs": [
|
||||
"Sources/**",
|
||||
"Package.swift",
|
||||
"Package.resolved",
|
||||
".swiftpm/**"
|
||||
],
|
||||
"outputs": [
|
||||
".build/**",
|
||||
"bin/SwiftHelper"
|
||||
],
|
||||
"cache": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue