Makes easier to call child DSLs (e.g. git
, github
)
- Dangerfile.swift
import DangerSwiftPlugin // package: https://github.com/417-72KI/DangerSwiftPlugin.git
- Package.swift
products: [ ... .library(name: "DangerDeps[Product name (optional)]", type: .dynamic, targets: ["DangerDependencies"]), ... ], dependencies: [ ... .package(url: "https://github.com/danger/swift.git", from: "3.14.0"), .package(url: "https://github.com/417-72KI/DangerSwiftPlugin.git", from: "0.3.0") ... ], targets: [ .target( name: "DangerDependencies", dependencies: [ .product(name: "Danger", package: "danger-swift"), "DangerSwiftPlugin" ] ), ... ]