-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
67 lines (60 loc) · 2.52 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "MacroExpress",
products: [
.library(name: "MacroExpress", targets: [ "MacroExpress" ]),
.library(name: "express", targets: [ "express" ]),
.library(name: "connect", targets: [ "connect" ]),
.library(name: "mime", targets: [ "mime" ]),
.library(name: "dotenv", targets: [ "dotenv" ]),
.library(name: "multer", targets: [ "multer" ])
],
dependencies: [
.package(url: "https://github.com/Macro-swift/Macro.git",
from: "1.0.2"),
.package(url: "https://github.com/AlwaysRightInstitute/mustache.git",
from: "1.0.2")
],
targets: [
.target(name: "mime", dependencies: []),
.target(name: "dotenv", dependencies: [
.product(name: "MacroCore", package: "Macro"),
.product(name: "fs", package: "Macro")
]),
.target(name: "multer", dependencies: [
.product(name: "MacroCore", package: "Macro"),
.product(name: "fs", package: "Macro"),
.product(name: "http", package: "Macro"),
"mime", "connect"
], exclude: [ "README.md" ]),
.target(name: "connect", dependencies: [
.product(name: "MacroCore", package: "Macro"),
.product(name: "fs", package: "Macro"),
.product(name: "http", package: "Macro"),
"mime"
], exclude: [ "README.md" ]),
.target(name: "express", dependencies: [
.product(name: "MacroCore", package: "Macro"),
.product(name: "fs", package: "Macro"),
.product(name: "http", package: "Macro"),
"connect", "mime",
.product(name: "Mustache", package: "Mustache")
], exclude: [ "README.md" ]),
.target(name: "MacroExpress", dependencies: [
.product(name: "MacroCore", package: "Macro"),
.product(name: "fs", package: "Macro"),
.product(name: "http", package: "Macro"),
.product(name: "xsys", package: "Macro"),
"dotenv", "mime", "connect", "express", "multer"
], exclude: [ "README.md" ]),
.testTarget(name: "mimeTests", dependencies: [ "mime" ]),
.testTarget(name: "multerTests", dependencies: [ "multer" ]),
.testTarget(name: "bodyParserTests", dependencies: [ "connect", "Macro" ]),
.testTarget(name: "dotenvTests", dependencies: [ "dotenv" ]),
.testTarget(name: "RouteTests", dependencies: [
.product(name: "MacroTestUtilities", package: "Macro"),
"express"
])
]
)