Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
PackageBuilder builds a simple command-line structure by SwiftPM.
- Host: GitHub
- URL: https://github.com/pixyzehn/PackageBuilder
- Owner: pixyzehn
- License: mit
- Archived: true
- Created: 2017-05-18T02:47:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-19T16:45:55.000Z (about 5 years ago)
- Last Synced: 2024-04-04T18:37:24.536Z (7 months ago)
- Topics: cli-tool, generator, swift-package-manager, swiftpm
- Language: Swift
- Homepage:
- Size: 57.6 KB
- Stars: 27
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
$ packagebuilderPackageBuilder
--------------
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)