JohnSundell / SwiftPlate

Easily generate cross platform Swift framework projects from the command line
MIT License
1.77k stars 88 forks source link

Make SwiftPlate into a Swift script #5

Closed marmelroy closed 7 years ago

marmelroy commented 7 years ago

It's possible to vastly simplify usage of SwiftPlate by turning it into an executable Swift script (removing Xcode from the equation altogether). What do you reckon?

JohnSundell commented 7 years ago

Thanks for this @marmelroy! While I do like the idea of being able to run SwiftPlate directly as a Swift script, I don't want to remove Xcode support completely. While working on the project Xcode becomes essential, as there sadly isn't any viable other option for Swift development & debugging yet. Is there a way we can achieve the best of both worlds (keeping Xcode support while also adding a script file)? 🤔

marmelroy commented 7 years ago

Good point. We experimented with Atom (plus some packages) at the SwiftAlps workshop but it didn't quite do the job for debugging.

As for best of both worlds, I pushed a commit that makes the main.swift file executable on its own while keeping the Xcode support.

JohnSundell commented 7 years ago

Yeah, it's a dream for me to be able to use Atom for Swift, but we're not quite there yet 😞 My plan is to start contributing to making it happen soon though 🙂 In the meantime, this is a perfect addition, thanks a lot again @marmelroy! 🚀