-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
59 lines (58 loc) · 1.99 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// swift-tools-version:6.0
import CompilerPluginSupport
import PackageDescription
let package = Package(
name: "Storybook",
platforms: [
.iOS(.v15),
.macCatalyst(.v15),
.macOS(.v10_15),
],
products: [
.library(name: "StorybookKit", targets: ["StorybookKit"]),
.library(name: "StorybookKitTextureSupport", targets: ["StorybookKitTextureSupport"]),
],
dependencies: [
.package(url: "https://github.com/muukii/MondrianLayout.git", from: "0.8.0"),
.package(url: "https://github.com/FluidGroup/TextureBridging.git", from: "3.2.1"),
.package(url: "https://github.com/FluidGroup/TextureSwiftSupport.git", from: "3.20.1"),
.package(url: "https://github.com/FluidGroup/swiftui-support", from: "0.4.1"),
.package(url: "https://github.com/FluidGroup/ResultBuilderKit", from: "1.3.0"),
.package(url: "https://github.com/apple/swift-syntax.git", from: "600.0.1"),
.package(url: "https://github.com/pointfreeco/swift-macro-testing.git", from: "0.5.2"),
],
targets: [
.target(
name: "StorybookKit",
dependencies: [
"StorybookMacrosPlugin",
.product(name: "SwiftUISupport", package: "swiftui-support"),
"ResultBuilderKit",
]
),
.macro(
name: "StorybookMacrosPlugin",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
]
),
.testTarget(
name: "StorybookMacrosTests",
dependencies: [
"StorybookMacrosPlugin",
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
.product(name: "MacroTesting", package: "swift-macro-testing"),
]
),
.target(
name: "StorybookKitTextureSupport",
dependencies: [
.product(name: "TextureSwiftSupport", package: "TextureSwiftSupport"),
.product(name: "TextureBridging", package: "TextureBridging"),
"StorybookKit",
]
),
],
swiftLanguageModes: [.v6, .v5]
)