Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pixyzehn/PackageBuilder

PackageBuilder builds a simple command-line structure by SwiftPM.
https://github.com/pixyzehn/PackageBuilder

cli-tool generator swift-package-manager swiftpm

Last synced: 29 days ago
JSON representation

PackageBuilder builds a simple command-line structure by SwiftPM.

Awesome Lists containing this project

README

        

# PackageBuilder
[![SPM](https://img.shields.io/badge/spm-compatible-brightgreen.svg?style=for-the-badge)](https://github.com/apple/swift-package-manager)
[![Build Status](https://img.shields.io/travis/com/pixyzehn/PackageBuilder/master?style=for-the-badge)](https://travis-ci.com/pixyzehn/PackageBuilder)

PackageBuilder builds a simple command-line structure by SwiftPM, inspired by [JohnSundell/SwiftPlate](https://github.com/JohnSundell/SwiftPlate). PackageBuilder is originally created by using PackageBuilder.
See also [Building a command line tool using the Swift Package Manager](https://www.swiftbysundell.com/posts/building-a-command-line-tool-using-the-swift-package-manager).

```console
$ 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

```console
$ git clone [email protected]:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ make
```

### SwiftPM

```console
$ git clone [email protected]:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ swift build -c release
$ cp -f .build/release/PackageBuilder /usr/local/bin/PackageBuilder
```

### [Mint](https://github.com/yonaskolb/mint)
```console
$ mint run pixyzehn/PackageBuilder
```

On Linux

```console
$ git clone [email protected]:pixyzehn/PackageBuilder.git && cd PackageBuilder
$ swift build -c release
$ cp -f .build/release/PackageBuilder /usr/local/bin/PackageBuilder
```

## Usage

```console
$ 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](https://github.com/pixyzehn/PackageBuilder/blob/master/LICENSE)