Updated the names of the targets in Package file.

This commit is contained in:
Javier Cicchelli 2025-03-09 22:53:45 +01:00
parent e866d1da71
commit 5f60d0f421
10 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
import AppLibrary
import DoxyLibrary
import ArgumentParser
@main

View File

@ -1,5 +1,5 @@
import AppLibrary
import ArgumentParser
import DoxyLibrary
import Logging
extension App {

View File

@ -3,13 +3,13 @@
import PackageDescription
let package = Package(
name: "DocCRepo",
name: "Doxy",
platforms: [
.iOS(.v17),
.macOS(.v14)
],
products: [
.executable(name: "App", targets: ["App"]),
.library(name: "AppLibrary", targets: ["AppLibrary"])
.executable(name: "App", targets: ["DoxyApp"])
],
dependencies: [
.package(url: "https://github.com/hummingbird-project/hummingbird.git", from: "2.0.0"),
@ -17,16 +17,16 @@ let package = Package(
],
targets: [
.executableTarget(
name: "App",
name: "DoxyApp",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Hummingbird", package: "hummingbird"),
.target(name: "AppLibrary")
.target(name: "DoxyLibrary")
],
path: "App"
),
.target(
name: "AppLibrary",
name: "DoxyLibrary",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Hummingbird", package: "hummingbird")
@ -34,10 +34,10 @@ let package = Package(
path: "Library"
),
.testTarget(
name: "AppTests",
name: "DoxyTests",
dependencies: [
.product(name: "HummingbirdTesting", package: "hummingbird"),
.target(name: "AppLibrary")
.target(name: "DoxyLibrary")
],
path: "Test"
)

View File

@ -1,6 +1,6 @@
import Testing
@testable import AppLibrary
@testable import DoxyLibrary
@Suite("AssetPrefix", .tags(.enumeration))
struct AssetPrefixTests {

View File

@ -1,6 +1,6 @@
import Testing
@testable import AppLibrary
@testable import DoxyLibrary
@Suite("IndexPrefix", .tags(.enumeration))
struct IndexPrefixTests {

View File

@ -1,6 +1,6 @@
import Testing
@testable import AppLibrary
@testable import DoxyLibrary
@Suite("StaticFile", .tags(.enumeration))
struct StaticFileTests {

View File

@ -2,7 +2,7 @@ import Hummingbird
import HummingbirdTesting
import Testing
@testable import AppLibrary
@testable import DoxyLibrary
@Suite("DocCMiddleware", .tags(.middleware))
struct DoccMiddlewareTests {

View File

@ -1,6 +1,6 @@
import Testing
@testable import AppLibrary
@testable import DoxyLibrary
@Suite("PathProvider", .tags(.provider))
struct PathProviderTests {

View File

@ -1,4 +1,4 @@
import AppLibrary
import DoxyLibrary
import Hummingbird
import HummingbirdTesting
import Testing

View File

@ -1,4 +1,4 @@
import AppLibrary
import DoxyLibrary
import Logging
struct TestArguments: AppArguments {