-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPackage.swift
More file actions
51 lines (50 loc) · 1.8 KB
/
Package.swift
File metadata and controls
51 lines (50 loc) · 1.8 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
51
// swift-tools-version:5.7
import PackageDescription
let package = Package(
name: "CobrowseIO Plugins",
platforms: [
.macOS(.v10_13), .iOS(.v12)
],
products: [
.executable(name: "cbio",
targets: ["cbio-cli"]),
.plugin(name: "Generate Accessibility Identifiers",
targets: [
"Generate Accessibility Identifiers"
]),
.plugin(name: "Generate Cobrowse Selectors",
targets: [
"Generate Cobrowse Selectors",
])
],
targets: [
.plugin(
name: "Generate Accessibility Identifiers",
capability: .command(
intent: .custom(
verb: "generate-accessibility-identifiers",
description: "Generate structure based accessibility identifiers"),
permissions: [
.writeToPackageDirectory(reason: "We need to modify your source to add the generated accessibility identifiers.")
]),
dependencies: [ "cbio-cli" ],
path: "Plugins/GenerateAccessibilityIdentifiers"
),
.plugin(
name: "Generate Cobrowse Selectors",
capability: .command(
intent: .custom(
verb: "generate-cobrowse-selectors",
description: "Generate Cobrowse.io selectors"),
permissions: [
.writeToPackageDirectory(reason: "We need to modify your source to add the Cobrowse.io selectors.")
]),
dependencies: [ "cbio-cli" ],
path: "Plugins/GenerateCobrowseSelectors"
),
.binaryTarget(
name: "cbio-cli",
path: "./cbio.artifactbundle"
),
]
)