Name: swift-package-converter
Owner: Libraries.io
Description: API to convert Package.swift files into JSON
Forked from: DanToml/swift-package-converter
Created: 2017-02-08 13:05:44.0
Updated: 2017-05-06 04:29:36.0
Pushed: 2017-12-06 10:19:17.0
Homepage: null
Size: 44
Language: Swift
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
API to convert Package.swift files into JSON
Runs on http://swiftpm.honza.tech
.
POST /to-json
Package.swift
string contents.swift package dump-package
).GET /swift-version
Since the above server might go away at any point, without warnings, please deploy the converter on your own server if you're relying on it.
For running locally, just
t build
ld/debug/App //launches server on port 8080
I recommend using Docker, with which the installation steps on a server are:
git clone https://github.com/czechboy0/swift-package-converter.git
cd swift-package-converter
docker build .
(will spit out a container ID at the end, use that in the next step under CONTAINER_ID)docker run -it -d --restart=on-failure -v $PWD:/package -p 80:8080 CONTAINER_ID
This will launch and bind the server to port 80 on the server.
(If you have ideas of improving the deployment steps with Docker, please PR it, I'm new to Docker.)
Please create an issue with a description of your problem or open a pull request with a fix.
MIT
Honza Dvorsky - http://honzadvorsky.com, @czechboy0