forked from FeatherCMS/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
75 lines (73 loc) · 3.96 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "feather",
platforms: [
.macOS(.v10_15)
],
products: [
.executable(name: "Feather", targets: ["Feather"]),
],
dependencies: [
/// tests
.package(url: "https://github.com/vapor/vapor", from: "4.34.0"),
.package(url: "https://github.com/binarybirds/spec.git", from: "1.2.0-beta"),
/// drivers
.package(url: "https://github.com/vapor/fluent-sqlite-driver", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent-mysql-driver", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent-postgres-driver", from: "2.0.0"),
.package(url: "https://github.com/binarybirds/liquid-local-driver", from: "1.2.0-beta"),
/// feather core
.package(url: "https://github.com/FeatherCMS/feather-core", from: "1.0.0-beta"),
/// core modules
.package(url: "https://github.com/FeatherCMS/system-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/user-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/api-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/admin-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/frontend-module", from: "1.0.0-beta"),
/// other modules
.package(url: "https://github.com/FeatherCMS/file-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/redirect-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/blog-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/analytics-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/aggregator-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/sponsor-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/swifty-module", from: "1.0.0-beta"),
.package(url: "https://github.com/FeatherCMS/markdown-module", from: "1.0.0-beta"),
],
targets: [
.target(name: "Feather", dependencies: [
/// drivers
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "FluentMySQLDriver", package: "fluent-mysql-driver"),
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
.product(name: "LiquidLocalDriver", package: "liquid-local-driver"),
/// feather
.product(name: "FeatherCore", package: "feather-core"),
/// core modules
.product(name: "SystemModule", package: "system-module"),
.product(name: "UserModule", package: "user-module"),
.product(name: "ApiModule", package: "api-module"),
.product(name: "AdminModule", package: "admin-module"),
.product(name: "FrontendModule", package: "frontend-module"),
/// other modules
.product(name: "FileModule", package: "file-module"),
.product(name: "RedirectModule", package: "redirect-module"),
.product(name: "BlogModule", package: "blog-module"),
.product(name: "AnalyticsModule", package: "analytics-module"),
.product(name: "AggregatorModule", package: "aggregator-module"),
.product(name: "SponsorModule", package: "sponsor-module"),
.product(name: "SwiftyModule", package: "swifty-module"),
.product(name: "MarkdownModule", package: "markdown-module"),
], exclude: [
"Modules/README.md",
], swiftSettings: [
.unsafeFlags(["-cross-module-optimization"], .when(configuration: .release))
]),
.testTarget(name: "FeatherTests", dependencies: [
.target(name: "Feather"),
.product(name: "XCTVapor", package: "vapor"),
.product(name: "Spec", package: "spec"),
])
]
)