Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/JohnSundell/SwiftPlate
Easily generate cross platform Swift framework projects from the command line
https://github.com/JohnSundell/SwiftPlate
cli generate script swift xcode
Last synced: 3 months ago
JSON representation
Easily generate cross platform Swift framework projects from the command line
- Host: GitHub
- URL: https://github.com/JohnSundell/SwiftPlate
- Owner: JohnSundell
- License: mit
- Created: 2015-06-10T23:48:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T20:56:55.000Z (over 5 years ago)
- Last Synced: 2024-05-08T22:42:55.357Z (6 months ago)
- Topics: cli, generate, script, swift, xcode
- Language: Swift
- Homepage:
- Size: 460 KB
- Stars: 1,768
- Watchers: 31
- Forks: 88
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-ios - SwiftPlate - Easily generate cross platform Swift framework projects from the command line. (Project setup / Other Parsing)
- awesome-swift - SwiftPlate - Easily generate cross platform framework projects from the command line. (Misc / Vim)
- awesome-swift - SwiftPlate - Easily generate cross platform framework projects from the command line. (Misc / Vim)
- fucking-awesome-swift - SwiftPlate - Easily generate cross platform framework projects from the command line. (Misc / Vim)
- awesome-ios-star - SwiftPlate - Easily generate cross platform Swift framework projects from the command line. (Project setup / Other Parsing)
- awesome-swift - SwiftPlate - Easily generate cross platform Swift framework projects from the command line ` 📝 2 years ago ` (Misc [🔝](#readme))
README
# SwiftPlate
Easily generate cross platform Swift framework projects from the command line.
SwiftPlate will generate Xcode projects for you in seconds, that support:
- [x] CocoaPods
- [x] Carthage
- [x] Swift Package Manager
- [x] iOS
- [x] macOS
- [x] watchOS
- [x] tvOS
- [x] LinuxJust run `swiftplate`, and you’ll be presented with a simple step-by-step guide:
## Usage
### Using [Homebrew](https://brew.sh) (recommended)
```
$ brew install swiftplate
$ swiftplate
```### Using Make
```
$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ cd swiftplate
$ make
```### Using [Marathon](https://github.com/johnsundell/marathon)
```
$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ marathon run swiftplate/main
```### Using the Swift interpreter directly
```
$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ swift swiftplate/main.swift
```### Using Xcode
```
$ git clone [email protected]:JohnSundell/SwiftPlate.git
$ open swiftplate/SwiftPlate.xcodeproj
```## Command line arguments
Besides using the guide to input information, SwiftPlate also supports command line arguments when launched. When a certain piece of information is supplied through an argument, SwiftPlate won't ask for that information when run. These are the arguments currently supported:
| Name | Description | Long parameter | Short parameter |
| ---- | ----------- | -------------- | --------------- |
| Destination | Where the generated project should be saved | `--destination` | `-d` |
| Project name | The name of your project | `--project` | `-p` |
| Author name | Your name | `--name` | `-n` |
| Author email | Your email (for Podspec) | `--email` | `-e` |
| GitHub URL | Any URL you'll be hosting the project at (for Podspec) | `--url` | `-u` |
| Organization name | The name of your organization | `--organization` | `-o` |
| Repo | Any custom SwiftPlate repository that should be used for templates | `--repo` | `-r` |
| Force | Prevent user prompt at the end (for CIs etc.) | `--force` | `-f` |## Questions or feedback?
Feel free to [open an issue](https://github.com/JohnSundell/SwiftPlate/issues/new), or find me [@johnsundell on Twitter](https://twitter.com/johnsundell).