<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On 30 May 2017, at 16:20, Carl Brown via swift-server-dev &lt;<a href="mailto:swift-server-dev@swift.org" class="">swift-server-dev@swift.org</a>&gt; wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On May 30, 2017, at 5:53 AM, Helge Heß via swift-server-dev &lt;<a href="mailto:swift-server-dev@swift.org" class="">swift-server-dev@swift.org</a>&gt; wrote:</div><div class=""><div class="">2)<br class="">The other thing that would be nice is a demo tool in the Sources directory, again similar to what Johannes showed (his tiny echod sample).<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">I have several of those (Echo, HelloWorld, etc) that I use for end-to-end testing, but since they're not part of the API, they're under `Tests/` not `Sources/`. &nbsp;See&nbsp;<a href="https://github.com/carlbrown/HTTPSketch/tree/master/Tests/HTTPSketchTests/Helpers" class="">https://github.com/carlbrown/HTTPSketch/tree/master/Tests/HTTPSketchTests/Helpers</a>&nbsp;</div><div class=""><br class=""></div><div class="">I'm happy to move them to `Sources/`if that would be easier.</div></div></div></div></blockquote><br class=""></div><div>I would recommend against that. The problem is that if you have such helpers/demos in the Sources, then they not only get built for your project but also in every project that depends on that project as well. So you can be building your production app, and you'll still get Echo, HelloWorld built -- and if you are building with an Xcode generated project, that will lead to other (unnecessary) targets being built for your project.</div><div><br class=""></div><div>If you have demos, I would suggest moving them into a different repository and then have that depend on the implementation repository through Swift PM. You can then guarantee that the same examples compile and behave correctly across different versions of your libraries.</div><div><br class=""></div><div>Alex</div><br class=""></body></html>