PackageBuilder builds a simple command-line structure by SwiftPM.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
Templates
Tests
.gitignore
.swift-version
.swiftlint.yml
.travis.yml Bump swift version and osx_image Sep 16, 2018
LICENSE
Makefile Bump swift-tools-version to 4.1 Apr 1, 2018
Package.resolved
Package.swift
README.md

README.md

PackageBuilder

SPM Build Status

PackageBuilder builds a simple command-line structure by SwiftPM. Inspired by JohnSundell/SwiftPlate.
PackageBuilder 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.
.
├── LICENSE
├── 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
     └── LinuxMain.swift
--------------
Examples:
- packagebuilder {PACKAGE_NAME}
- packagebuilder {PACKAGE_NAME} --path ~/Developer

Requirements

PackageBuilder requires / supports the following environments:

  • Swift 4.2
  • Git

Installation

On macOS

Makefile

$ git clone git@github.com:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ make

SwiftPM

$ git clone git@github.com:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ swift build -c release -Xswiftc -static-stdlib
$ cp -f .build/release/PackageBuilder /usr/local/bin/PackageBuilder

Mint

$ 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

Usage

$ packagebuilder {PACKAGE_NAME}
$ packagebuilder {PACKAGE_NAME} --path ~/Developer/project

Contributing

  1. Fork it ( https://github.com/pixyzehn/PackageBuilder )
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin new-feature)
  5. Create a new Pull Request

License

MIT License