This PR contains the work done to support input parameters for the `create` command of the executable target, and to render content dynamically for the newly-generated project. Reviewed-on: #4 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
46 lines
1.2 KiB
Swift
46 lines
1.2 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"),
|
|
.package(url: "https://github.com/hummingbird-project/swift-mustache", from: "2.0.0")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "Colibri",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.target(name: "ColibriLibrary")
|
|
],
|
|
path: "Executable"
|
|
),
|
|
.target(
|
|
name: "ColibriLibrary",
|
|
dependencies: [
|
|
.product(name: "Mustache", package: "swift-mustache")
|
|
],
|
|
path: "Library",
|
|
resources: [
|
|
.copy("Resources")
|
|
]
|
|
),
|
|
.testTarget(
|
|
name: "ColibriTests",
|
|
dependencies: [
|
|
.target(name: "ColibriLibrary")
|
|
],
|
|
path: "Test"
|
|
)
|
|
]
|
|
)
|