/PackageBuilder

PackageBuilder builds a simple command-line structure by SwiftPM.

Primary LanguageSwiftMIT LicenseMIT

PackageBuilder

SPM Build Status

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

Requirements

  • 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
$ 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

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