-
Notifications
You must be signed in to change notification settings - Fork 38
/
Package.swift
129 lines (120 loc) · 3.95 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// swift-tools-version: 5.6
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import PackageDescription
let package = Package(
name: "Lexical",
platforms: [.iOS(.v13)],
products: [
.library(
name: "Lexical",
targets: ["Lexical"]),
.library(
name: "LexicalListPlugin",
targets: ["LexicalListPlugin"]),
.library(
name: "LexicalListHTMLSupport",
targets: ["LexicalListHTMLSupport"]),
.library(
name: "LexicalHTML",
targets: ["LexicalHTML"]),
.library(
name: "LexicalLinkPlugin",
targets: ["LexicalLinkPlugin"]),
.library(
name: "LexicalInlineImagePlugin",
targets: ["LexicalInlineImagePlugin"]),
.library(
name: "SelectableDecoratorNode",
targets: ["SelectableDecoratorNode"]),
.library(
name: "EditorHistoryPlugin",
targets: ["EditorHistoryPlugin"]),
.library(
name: "LexicalMarkdown",
targets: ["LexicalMarkdown"]),
],
dependencies: [
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.6.0"),
.package(url: "https://github.com/apple/swift-markdown.git", branch: "main"),
],
targets: [
.target(
name: "Lexical",
dependencies: [],
path: "./Lexical"),
.testTarget(
name: "LexicalTests",
dependencies: ["Lexical"],
path: "./LexicalTests"),
.target(
name: "LexicalListPlugin",
dependencies: ["Lexical"],
path: "./Plugins/LexicalListPlugin/LexicalListPlugin"),
.testTarget(
name: "LexicalListPluginTests",
dependencies: ["Lexical", "LexicalListPlugin"],
path: "./Plugins/LexicalListPlugin/LexicalListPluginTests"),
.target(
name: "LexicalListHTMLSupport",
dependencies: ["Lexical", "LexicalListPlugin", "LexicalHTML"],
path: "./Plugins/LexicalListPlugin/LexicalListHTMLSupport"),
.target(
name: "LexicalHTML",
dependencies: ["Lexical", "SwiftSoup"],
path: "./Plugins/LexicalHTML/LexicalHTML"),
.testTarget(
name: "LexicalHTMLTests",
dependencies: ["Lexical", "LexicalHTML", "SwiftSoup"],
path: "./Plugins/LexicalHTML/LexicalHTMLTests"),
.target(
name: "LexicalLinkPlugin",
dependencies: ["Lexical"],
path: "./Plugins/LexicalLinkPlugin/LexicalLinkPlugin"),
.testTarget(
name: "LexicalLinkPluginTests",
dependencies: ["Lexical", "LexicalLinkPlugin"],
path: "./Plugins/LexicalLinkPlugin/LexicalLinkPluginTests"),
.target(
name: "LexicalInlineImagePlugin",
dependencies: ["Lexical", "SelectableDecoratorNode"],
path: "./Plugins/LexicalInlineImagePlugin/LexicalInlineImagePlugin"),
.testTarget(
name: "LexicalInlineImagePluginTests",
dependencies: ["Lexical", "LexicalInlineImagePlugin"],
path: "./Plugins/LexicalInlineImagePlugin/LexicalInlineImagePluginTests"),
.target(
name: "SelectableDecoratorNode",
dependencies: ["Lexical"],
path: "./Plugins/SelectableDecoratorNode/SelectableDecoratorNode"),
.target(
name: "EditorHistoryPlugin",
dependencies: ["Lexical"],
path: "./Plugins/EditorHistoryPlugin/EditorHistoryPlugin"),
.testTarget(
name: "EditorHistoryPluginTests",
dependencies: ["Lexical", "EditorHistoryPlugin"],
path: "./Plugins/EditorHistoryPlugin/EditorHistoryPluginTests"),
.target(
name: "LexicalMarkdown",
dependencies: [
"Lexical",
"LexicalLinkPlugin",
"LexicalListPlugin",
.product(name: "Markdown", package: "swift-markdown")
],
path: "./Plugins/LexicalMarkdown/LexicalMarkdown"),
.testTarget(
name: "LexicalMarkdownTests",
dependencies: [
"Lexical",
"LexicalMarkdown",
.product(name: "Markdown", package: "swift-markdown"),
],
path: "./Plugins/LexicalMarkdown/LexicalMarkdownTests"),
]
)