Skip to content
This repository has been archived by the owner on May 3, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (23 loc) · 716 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 716 Bytes

swift-gyb-build-tool

Makes Swift's gyb code generation tool available as a SwiftPM build tool plugin.

To use, first add the package as a dependency:

    dependencies: [
        ...
        .package(url: "https://github.com/vapor-community/swift-gyb-build-tool.git", from: "0.0.1"),
    ]

Then add the plugin to the target(s) which contain .gyb files:

    targets: [
        .executableTarget(
            name: "Run",
            dependencies: [
                ...
            ],
            plugins: [
                .plugin(name: "swift-gyb-build-tool", package: "swift-gyb-build-tool"),
            ]
        )
    ]