playgroundbooks / playgroundbook

Tool for Swift Playground books
https://ashfurrow.com/blog/swift-playground-books/
MIT License
259 stars 17 forks source link

Copy SPM Sources into top-level Sources for book #50

Closed seanlabastille closed 7 years ago

seanlabastille commented 7 years ago

This could be a very barebones solution for https://github.com/playgroundbooks/playgroundbook/issues/21

Assuming a Package.swift file specifying libraries to be used these can be copied into the .playgroundbook after being fetched by SPM.

It seems to me that SPM is the most straightforward option for including libraries in a playground book as well as having the least caveats associated with it.

A couple of tweaks to make this more useful could be:

ashfurrow commented 7 years ago

This is great, thanks! Could you add a note to the readme about this, as well as a line in the changelog? Thanks again :bow:

ashfurrow commented 7 years ago

Very cool! Is this ready to merge then?

seanlabastille commented 7 years ago

Should be good to go!

ashfurrow commented 7 years ago

Cool, I'll get this released ASAP.

ashfurrow commented 7 years ago

Should be pushed as 0.6.0, let me know how it goes, and thanks again!