mirror of
https://github.com/laosb/SwiftTailwind.git
synced 2025-11-28 22:01:38 +00:00
38 lines
1.3 KiB
Swift
38 lines
1.3 KiB
Swift
// swift-tools-version: 6.1
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "SwiftTailwind",
|
|
platforms: [.macOS(.v12)],
|
|
products: [
|
|
.plugin(name: "TailwindCSS", targets: ["TailwindCSS"]),
|
|
.executable(name: "TailwindCSSCLIArtifactBundler", targets: ["TailwindCSSCLIArtifactBundler"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.0.0"),
|
|
.package(url: "https://github.com/apple/swift-crypto.git", from: "3.0.0"),
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "TailwindCSSCLIArtifactBundler",
|
|
dependencies: [
|
|
.product(name: "ArgumentParser", package: "swift-argument-parser"),
|
|
.product(name: "Crypto", package: "swift-crypto"),
|
|
]
|
|
),
|
|
.plugin(name: "TailwindCSS", capability: .buildTool(), dependencies: ["TailwindCSSCLI"]),
|
|
.binaryTarget(
|
|
name: "TailwindCSSCLI",
|
|
url:
|
|
"https://github.com/laosb/SwiftTailwind/releases/download/1.0.0+tw.4.1.12/tailwindcss.artifactbundle.zip",
|
|
checksum: "bfa96ef1d4d1b665bb40c89ec906044c9532b3cabf866fbe2bd3e5a95bf40bea"
|
|
),
|
|
.target(
|
|
name: "SwiftTailwindExample",
|
|
resources: [.copy("Views/Test.html")],
|
|
plugins: ["TailwindCSS"]
|
|
),
|
|
.testTarget(name: "SwiftTailwindTests", dependencies: ["SwiftTailwindExample"]),
|
|
]
|
|
)
|