swift-package-converter
1.5K
API to convert Package.swift files into JSON
Runs on http://swiftpm.honza.tech.
POST /to-jsonPackage.swift string contents.swift package dump-package).GET /swift-versionSince 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
swift build
.build/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.gitcd swift-package-converterdocker 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_IDThis 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
Content type
Image
Digest
Size
454.2 MB
Last updated
about 8 years ago
docker pull librariesio/swift-package-converter