colibri/Package.swift
Javier Cicchelli b8c354e614 Root folder creation (#2)
This PR contains the work done to create the root folder of a new project when executing the _colibri_ executable. In addition, some other work has been done:

* added the `ArgumentParser` package dependency to the package;
* implemented the `FileService` service in the _library_ target;
* implemented the `CreateRootFolderTask` task in the _library_ target;
* removed some unnecessary comments and boilerplate code;

Reviewed-on: #2
Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
2025-01-27 23:54:50 +00:00

50 lines
1.1 KiB
Swift

// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "Colibri",
platforms: [
.macOS(.v10_15)
],
products: [
.executable(
name: "colibri",
targets: ["Colibri"]
),
.library(
name: "ColibriLibrary",
targets: ["ColibriLibrary"]
)
],
dependencies: [
.package(
url: "https://github.com/apple/swift-argument-parser",
from: "1.0.0"
)
],
targets: [
.executableTarget(
name: "Colibri",
dependencies: [
.product(
name: "ArgumentParser",
package: "swift-argument-parser"
),
.target(name: "ColibriLibrary")
],
path: "Sources/Executable"
),
.target(
name: "ColibriLibrary",
dependencies: [],
path: "Sources/Library"
),
.testTarget(
name: "ColibriTests",
dependencies: ["ColibriLibrary"],
path: "Tests/Library"
)
]
)