vapor-community / swift-gyb-build-tool

A SwiftPM build tool plugin for Swift's GYB code generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"),
            ]
        )
    ]

About

A SwiftPM build tool plugin for Swift's GYB code generator

License:Other


Languages

Language:Python 91.9%Language:Swift 8.1%