Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Latest commit

 

History

History
87 lines (68 loc) · 2.45 KB

README.md

File metadata and controls

87 lines (68 loc) · 2.45 KB

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