Configuring using Swift Package Manager (SPM)

The Package.swift manifest file lists the application name, dependencies of other packages, and build target for the project generated using the kitura init command:

// File: Package.swift// swift-tools-version:4.0import PackageDescriptionlet package = Package(name: "helloWorld", // [1]dependencies: [ // [2].package(url: "https://github.com/IBM-Swift/Kitura.git", .upToNextMinor(from: "2.3.0")),.package(url: "https://github.com/IBM-Swift/HeliumLogger.git", .upToNextMinor(from: "1.7.1")),.package(url: "https://github.com/IBM-Swift/CloudEnvironment.git", from: "7.1.0"),.package(url: "https://github.com/RuntimeTools/SwiftMetrics.git", from: "2.0.0"),.package(url: "https://github.com/IBM-Swift/Health.git", ...

Get Hands-On Server-Side Web Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.