-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
50 lines (49 loc) · 1.53 KB
/
Package.swift
File metadata and controls
50 lines (49 loc) · 1.53 KB
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
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "elementary-flow",
platforms: [
.macOS(.v14)
],
products: [
.library(name: "ElementaryFlow", targets: ["ElementaryFlow"])
//.plugin(name: "ElementaryFlowCSSGenerator", targets: ["ElementaryFlowCSSGenerator"]),
],
dependencies: [
.package(url: "https://github.com/elementary-swift/elementary", from: "0.6.0")
],
targets: [
.target(
name: "ElementaryFlow",
dependencies: [
.product(name: "Elementary", package: "elementary"),
.target(name: "CSSDefinitions"),
]
),
.target(name: "CSSDefinitions"),
.testTarget(
name: "ElementaryFlowTests",
dependencies: ["ElementaryFlow"]
),
.plugin(
name: "ElementaryFlowCSSGenerator",
capability: .command(
intent: .custom(
verb: "generate-css",
description: "Generates the ElementaryFlow style sheet"
),
permissions: [
.writeToPackageDirectory(reason: "Write generated CSS file.")
]
),
dependencies: [
"ElementaryFlowCSSGeneratorTool"
]
),
.executableTarget(
name: "ElementaryFlowCSSGeneratorTool",
dependencies: ["CSSDefinitions"],
path: "Tools/ElementaryFlowCSSGenerator"
),
]
)