mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-05-03 07:22:27 +00:00
d956b89dbc
motivation: clearer examples as we prepare to open source changes: * rename debugging example to make the name more accurate * add more information in the local debugging example * add a Shared module to show how to share code between client and server * make example more useful - use JSON for registration like flow * add docker-compose task to test examples Co-authored-by: Yim Lee <yim_lee@apple.com>
29 lines
872 B
Swift
29 lines
872 B
Swift
// swift-tools-version:5.2
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "MyLambda",
|
|
platforms: [
|
|
.macOS(.v10_13),
|
|
],
|
|
products: [
|
|
.executable(name: "MyLambda", targets: ["MyLambda"]),
|
|
],
|
|
dependencies: [
|
|
// this is the dependency on the swift-aws-lambda-runtime library
|
|
// in real-world projects this would say
|
|
// .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0")
|
|
.package(name: "swift-aws-lambda-runtime", path: "../../.."),
|
|
.package(name: "Shared", path: "../Shared"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "MyLambda", dependencies: [
|
|
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
|
|
.product(name: "Shared", package: "Shared"),
|
|
]
|
|
),
|
|
]
|
|
)
|