PackageBuilder builds a simple command-line structure by SwiftPM, inspired by JohnSundell/SwiftPlate. PackageBuilder is originally created by using PackageBuilder.
See also Building a command line tool using the Swift Package Manager.
$ packagebuilder
PackageBuilder
--------------
PackageBuilder builds a simple command-line structure by SwiftPM.
.
├── Package.swift
├── README.md
├── Makefile
├── {PACKAGE_NAME}.xcodeproj
├── Sources
│ ├── {PACKAGE_NAME}
│ │ └── main.swift
│ └── {PACKAGE_NAME}Core
│ └── {PACKAGE_NAME}.swift
└── Tests
├── {PACKAGE_NAME}Tests
│ ├── {PACKAGE_NAME}Tests.swift
│ └── XCTestManifests.swift
└── LinuxMain.swift
--------------
Examples:
- packagebuilder {PACKAGE_NAME}
- packagebuilder {PACKAGE_NAME} --path ~/Developer
- Git
On macOS
$ git clone git@github.com:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ make
$ git clone git@github.com:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ swift build -c release
$ cp -f .build/release/PackageBuilder /usr/local/bin/PackageBuilder
$ mint run pixyzehn/PackageBuilder
On Linux
$ git clone git@github.com:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ swift build -c release
$ cp -f .build/release/PackageBuilder /usr/local/bin/PackageBuilder
$ packagebuilder {PACKAGE_NAME}
$ packagebuilder {PACKAGE_NAME} --path ~/Developer/project
- Fork it ( https://github.com/pixyzehn/PackageBuilder )
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin new-feature
) - Create a new Pull Request