Skip to content

Commit d22f805

Browse files
committed
here NW go
1 parent 66e717d commit d22f805

34 files changed

+1940
-3
lines changed

Package.resolved

Lines changed: 311 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,75 @@ import PackageDescription
55

66
let package = Package(
77
name: "NWSharedModels",
8+
platforms: [
9+
.iOS(.v13),
10+
.macOS(.v12)
11+
],
812
products: [
913
// Products define the executables and libraries a package produces, and make them visible to other packages.
1014
.library(
1115
name: "NWSharedModels",
1216
targets: ["NWSharedModels"]),
1317
],
1418
dependencies: [
15-
// Dependencies declare other packages that this package depends on.
16-
// .package(url: /* package url */, from: "1.0.0"),
19+
.package(url: "https://github.com/vapor/vapor.git", from: "4.62.1"),
20+
.package(url: "https://github.com/vapor/fluent.git", from: "4.4.0"),
21+
.package(url: "https://github.com/vapor/fluent-mongo-driver.git", from: "1.1.2"),
22+
.package(url: "https://github.com/vapor/jwt.git", from: "4.2.1"),
23+
24+
// Route
25+
.package(url: "https://github.com/pointfreeco/vapor-routing.git", from: "0.1.1"),
26+
// .package(url: "https://github.com/pointfreeco/swift-parsing.git", from: "0.9.2"),
27+
.package(url: "https://github.com/pointfreeco/swift-url-routing.git", from: "0.3.0"),
28+
.package(url: "https://github.com/OpenKitten/BSON.git", from: "7.0.0")
1729
],
1830
targets: [
1931
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2032
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2133
.target(
2234
name: "NWSharedModels",
23-
dependencies: []),
35+
dependencies: [
36+
.product(
37+
name: "Vapor",
38+
package: "vapor",
39+
condition: .when(platforms: [.macOS, .linux])
40+
),
41+
.product(
42+
name: "Fluent",
43+
package: "fluent",
44+
condition: .when(platforms: [.macOS, .linux])
45+
),
46+
.product(
47+
name: "FluentMongoDriver",
48+
package: "fluent-mongo-driver",
49+
condition: .when(platforms: [.macOS, .linux])
50+
),
51+
.product(
52+
name: "VaporRouting",
53+
package: "vapor-routing",
54+
condition: .when(platforms: [.macOS, .linux])
55+
),
56+
.product(
57+
name: "JWT",
58+
package: "jwt",
59+
condition: .when(platforms: [.macOS, .linux])
60+
),
61+
62+
// IOS
63+
.product(
64+
name: "URLRouting",
65+
package: "swift-url-routing",
66+
condition: .when(platforms: [.iOS])
67+
),
68+
69+
.product(
70+
name: "BSON",
71+
package: "BSON"
72+
)
73+
74+
]
75+
76+
),
2477
.testTarget(
2578
name: "NWSharedModelsTests",
2679
dependencies: ["NWSharedModels"]),

0 commit comments

Comments
 (0)