-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
130 lines (127 loc) · 6.1 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
130
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "GMarkdown",
platforms: [.iOS(.v13)],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "GMarkdown",
targets: ["GMarkdown"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-markdown.git", from: "0.4.0"),
.package(url: "https://github.com/mgriebling/SwiftMath.git", from: "1.4.0"),
.package(url: "https://github.com/meitu/MPITextKit.git", from: "0.1.13"),
.package(url: "https://github.com/raspu/Highlightr.git", from: "2.2.1"),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "GMarkdown",
dependencies: [
.product(name: "Markdown", package: "swift-markdown"),
.product(name: "MPITextKit", package: "MPITextKit"),
.product(name: "SwiftMath", package: "SwiftMath"),
.product(name: "Highlightr", package: "Highlightr"),
],
resources: [
.copy("Assets/Highlighter/highlight.min.js"),
.copy("Assets/styles/a11y-dark.min.css"),
.copy("Assets/styles/a11y-light.min.css"),
.copy("Assets/styles/agate.min.css"),
.copy("Assets/styles/an-old-hope.min.css"),
.copy("Assets/styles/androidstudio.min.css"),
.copy("Assets/styles/arduino-light.min.css"),
.copy("Assets/styles/arta.min.css"),
.copy("Assets/styles/ascetic.min.css"),
.copy("Assets/styles/atelier-cave-dark.min.css"),
.copy("Assets/styles/atelier-cave-light.min.css"),
.copy("Assets/styles/atelier-dune-dark.min.css"),
.copy("Assets/styles/atelier-dune-light.min.css"),
.copy("Assets/styles/atelier-estuary-dark.min.css"),
.copy("Assets/styles/atelier-estuary-light.min.css"),
.copy("Assets/styles/atelier-forest-dark.min.css"),
.copy("Assets/styles/atelier-forest-light.min.css"),
.copy("Assets/styles/atelier-heath-dark.min.css"),
.copy("Assets/styles/atelier-heath-light.min.css"),
.copy("Assets/styles/atelier-lakeside-dark.min.css"),
.copy("Assets/styles/atelier-lakeside-light.min.css"),
.copy("Assets/styles/atelier-plateau-dark.min.css"),
.copy("Assets/styles/atelier-plateau-light.min.css"),
.copy("Assets/styles/atelier-savanna-dark.min.css"),
.copy("Assets/styles/atelier-savanna-light.min.css"),
.copy("Assets/styles/atelier-seaside-dark.min.css"),
.copy("Assets/styles/atelier-seaside-light.min.css"),
.copy("Assets/styles/atelier-sulphurpool-dark.min.css"),
.copy("Assets/styles/atelier-sulphurpool-light.min.css"),
.copy("Assets/styles/atom-one-dark-reasonable.min.css"),
.copy("Assets/styles/atom-one-dark.min.css"),
.copy("Assets/styles/atom-one-light.min.css"),
.copy("Assets/styles/brown-paper.min.css"),
.copy("Assets/styles/codepen-embed.min.css"),
.copy("Assets/styles/color-brewer.min.css"),
.copy("Assets/styles/darcula.min.css"),
.copy("Assets/styles/dark.min.css"),
.copy("Assets/styles/darkula.min.css"),
.copy("Assets/styles/default.min.css"),
.copy("Assets/styles/docco.min.css"),
.copy("Assets/styles/dracula.min.css"),
.copy("Assets/styles/far.min.css"),
.copy("Assets/styles/foundation.min.css"),
.copy("Assets/styles/github-gist.min.css"),
.copy("Assets/styles/github.min.css"),
.copy("Assets/styles/gml.min.css"),
.copy("Assets/styles/googlecode.min.css"),
.copy("Assets/styles/grayscale.min.css"),
.copy("Assets/styles/gruvbox-dark.min.css"),
.copy("Assets/styles/gruvbox-light.min.css"),
.copy("Assets/styles/hopscotch.min.css"),
.copy("Assets/styles/hybrid.min.css"),
.copy("Assets/styles/idea.min.css"),
.copy("Assets/styles/ir-black.min.css"),
.copy("Assets/styles/isbl-editor-dark.min.css"),
.copy("Assets/styles/isbl-editor-light.min.css"),
.copy("Assets/styles/kimbie.dark.min.css"),
.copy("Assets/styles/kimbie.light.min.css"),
.copy("Assets/styles/lightfair.min.css"),
.copy("Assets/styles/magula.min.css"),
.copy("Assets/styles/mono-blue.min.css"),
.copy("Assets/styles/monokai-sublime.min.css"),
.copy("Assets/styles/monokai.min.css"),
.copy("Assets/styles/nord.min.css"),
.copy("Assets/styles/obsidian.min.css"),
.copy("Assets/styles/ocean.min.css"),
.copy("Assets/styles/paraiso-dark.min.css"),
.copy("Assets/styles/paraiso-light.min.css"),
.copy("Assets/styles/pojoaque.min.css"),
.copy("Assets/styles/purebasic.min.css"),
.copy("Assets/styles/qtcreator_dark.min.css"),
.copy("Assets/styles/qtcreator_light.min.css"),
.copy("Assets/styles/railscasts.min.css"),
.copy("Assets/styles/rainbow.min.css"),
.copy("Assets/styles/routeros.min.css"),
.copy("Assets/styles/school-book.min.css"),
.copy("Assets/styles/shades-of-purple.min.css"),
.copy("Assets/styles/solarized-dark.min.css"),
.copy("Assets/styles/solarized-light.min.css"),
.copy("Assets/styles/sunburst.min.css"),
.copy("Assets/styles/tomorrow-night-blue.min.css"),
.copy("Assets/styles/tomorrow-night-bright.min.css"),
.copy("Assets/styles/tomorrow-night-eighties.min.css"),
.copy("Assets/styles/tomorrow-night.min.css"),
.copy("Assets/styles/tomorrow.min.css"),
.copy("Assets/styles/vs.min.css"),
.copy("Assets/styles/vs2015.min.css"),
.copy("Assets/styles/xcode.min.css"),
.copy("Assets/styles/xcode-dark.min.css"),
.copy("Assets/styles/xt256.min.css"),
.copy("Assets/styles/zenburn.min.css"),
]),
.testTarget(
name: "GMarkdownTests",
dependencies: ["GMarkdown"]),
]
)