-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
69 lines (61 loc) · 2.24 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
60
61
62
63
64
65
66
67
68
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "MarkdownEditor",
platforms: [
.macOS("14.0")
],
products: [
.library(
name: "MarkdownEditor",
targets: ["MarkdownEditor"]
)
],
dependencies: [
// .package(url: "https://github.com/raspu/Highlightr.git", from: "2.2.1"),
// .package(url: "https://github.com/ChimeHQ/Glyph.git", branch: "main"),
// .package(url: "https://github.com/ChimeHQ/ThemePark.git", branch: "main"),
.package(url: "https://github.com/ChimeHQ/Rearrange.git", from: "2.0.0"),
.package(url: "https://github.com/ChimeHQ/Neon", branch: "main"),
.package(url: "https://github.com/alex-pinkus/tree-sitter-swift", branch: "with-generated-files"),
.package(url: "https://github.com/tree-sitter-grammars/tree-sitter-markdown.git", branch: "split_parser"),
.package(url: "https://github.com/gohanlon/swift-memberwise-init-macro.git", from: "0.5.0"),
.package(url: "https://github.com/dvclmn/Collection.git", branch: "main"),
],
targets: [
.target(
name: "MarkdownEditor",
dependencies: [
"Neon",
"Rearrange",
.product(name: "MemberwiseInit", package: "swift-memberwise-init-macro"),
// .product(name: "TreeSitterClient", package: "Neon"),
// .product(name: "RangeState", package: "Neon"),
.product(name: "TreeSitterSwift", package: "tree-sitter-swift"),
.product(name: "TreeSitterMarkdown", package: "tree-sitter-markdown"),
.product(name: "BaseHelpers", package: "Collection"),
.product(name: "BaseStyles", package: "Collection"),
]
),
// .testTarget(
// name: "MarkdownEditorTests",
// dependencies: [
// "MarkdownEditor",
// .product(name: "BaseHelpers", package: "Collection"),
//
// ]
// ),
//
]
)
let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableUpcomingFeature("InferSendableFromCaptures"),
.enableUpcomingFeature("BareSlashRegexLiterals"),
]
for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(contentsOf: swiftSettings)
target.swiftSettings = settings
}