1 Star 0 Fork 0

皓如清月/SwiftFormat

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
一键复制 编辑 原始数据 按行查看 历史
// swift-tools-version:5.6
import PackageDescription
let package = Package(
name: "SwiftFormat",
products: [
.executable(name: "swiftformat", targets: ["CommandLineTool"]),
.library(name: "SwiftFormat", targets: ["SwiftFormat"]),
.plugin(name: "SwiftFormatPlugin", targets: ["SwiftFormatPlugin"]),
],
targets: [
.executableTarget(
name: "CommandLineTool", dependencies: ["SwiftFormat"], path: "CommandLineTool",
exclude: ["swiftformat"]
),
.target(name: "SwiftFormat", path: "Sources", exclude: ["Info.plist"]),
.testTarget(
name: "SwiftFormatTests",
dependencies: ["SwiftFormat"],
path: "Tests",
exclude: ["Info.plist", "GlobTest[5].txt"]
),
.plugin(
name: "SwiftFormatPlugin",
capability: .command(
intent: .custom(
verb: "swiftformat", description: "Formats Swift source files using SwiftFormat"
),
permissions: [
.writeToPackageDirectory(reason: "This command reformats source files"),
]
),
dependencies: [.target(name: "CommandLineTool")]
),
]
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/helloro/SwiftFormat.git
[email protected]:helloro/SwiftFormat.git
helloro
SwiftFormat
SwiftFormat
develop

搜索帮助