-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPackage.swift
62 lines (54 loc) · 2.4 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "MacroExamples",
platforms: [
.macOS(.v10_14), .iOS(.v11)
],
products: [
.executable(name: "httpd-helloworld", targets: [ "httpd-helloworld" ]),
.executable(name: "connect-static", targets: [ "connect-static" ]),
.executable(name: "express-simple", targets: [ "express-simple" ]),
//.executable(name: "httpproxy", targets: [ "httpproxy" ]),
.executable(name: "servedocc", targets: [ "servedocc" ]),
.executable(name: "todomvc", targets: [ "todomvc" ]),
.executable(name : "express-simple-lambda",
targets : [ "express-simple-lambda" ])
],
dependencies: [
// A lot of packages for demonstration purposes, only add what you
// actually need in your own project.
.package(url: "https://github.com/Macro-swift/Macro.git",
from: "1.0.1"),
.package(url: "https://github.com/Macro-swift/MacroExpress.git",
from: "1.0.2"),
.package(url: "https://github.com/Macro-swift/MacroLambda.git",
from: "0.5.0"),
.package(url: "https://github.com/AlwaysRightInstitute/cows",
from: "1.0.10")
],
targets: [
.executableTarget(name: "httpd-helloworld",
dependencies: [ "Macro" ],
exclude: [ "README.md" ]),
// .target(name: "httpproxy", dependencies: [ "Macro" ]),
.executableTarget(name: "connect-static",
dependencies: [ "MacroExpress" ],
exclude: [ "README.md" ],
resources: [ .copy("public") ]),
.executableTarget(name: "express-simple",
dependencies: [ "MacroExpress", "cows" ],
resources: [ .copy("public"), .copy("views") ]),
.executableTarget(name: "servedocc",
dependencies: [ "MacroExpress" ],
exclude: [ "README.md" ]),
.executableTarget(name: "todomvc",
dependencies: [ "MacroExpress" ],
exclude: [ "README.md" ],
resources: [ .copy("public") ]),
.executableTarget(name: "express-simple-lambda",
dependencies: [ "MacroLambda", "cows" ],
exclude: [ "README.md" ],
resources: [ .copy("public"), .copy("views") ])
]
)