Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Swift製CLIツールをMintを使わずSwiftPackageManagerで管理する

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

 Swift製CLIツールをMintを使わずSwiftPackageManagerで管理する

Avatar for Yasuharu Yanamura

Yasuharu Yanamura

February 12, 2020
Tweet

More Decks by Yasuharu Yanamura

Other Decks in Programming

Transcript

  1. ࢖͍ํ // swift-tools-version:5.1 import PackageDescription let package = Package( name:

    "Tools", dependencies: [ .package(url: "https://github.com/apple/swift-format", .branch("master")), .package(url: "https://github.com/yonaskolb/XcodeGen", from: "2.13.0"), .package(url: "https://github.com/mac-cain13/R.swift", .exact("5.1.0")), ] ) Package.swift
  2. ࢖͍ํ // swift-tools-version:5.1 import PackageDescription let package = Package( name:

    "Tools", dependencies: [ .package(url: "https://github.com/apple/swift-format", .branch("master")), .package(url: "https://github.com/yonaskolb/XcodeGen", from: "2.13.0"), .package(url: "https://github.com/mac-cain13/R.swift", .exact("5.1.0")), ] ) Package.swift OBNF͸ద౰
  3. ࢖͍ํ // swift-tools-version:5.1 import PackageDescription let package = Package( name:

    "Tools", dependencies: [ .package(url: "https://github.com/apple/swift-format", .branch("master")), .package(url: "https://github.com/yonaskolb/XcodeGen", from: "2.13.0"), .package(url: "https://github.com/mac-cain13/R.swift", .exact("5.1.0")), ] ) Package.swift EFQFOEFODJFTʹ࢖͏ πʔϧΛྻڍ
  4. طʹSwiftPM࢖ͬͯΔ৔߹ - Package.swiftͷdependenciesʹπʔϧྨ͸͍Εͨ͘ͳ͍ dependencies: [ .package(url: "https://github.com/kylef/PathKit.git", from: "1.0.0"), .package(url:

    "https://github.com/jakeheis/SwiftCLI.git", from: "5.0.0"), .package(url: "https://github.com/apple/swift-format", .branch("master")), ], πʔϧ͸ผʹ͍ͨ͠