On Monday, 20 June 2016 at 15:52:46 UTC, Sönke Ludwig wrote:
This release also adds support for single-file packages, which
can be used for conveniently writing small scripts and
applications. It supports a shebang line, so that directly
executing the script on Posix systems also works (using "chmod
dependency "color" version="~>0.0.3"
You should add a system to support example files, without
dependency. For example in a static library, something that would
indicate that the package in which the file resides is itself a
dependency but don't have to be downloaded:
dependency "this" (or dependency "../..")
from ex1 you should be able to locate the package by using
.dirName until a dub.json is found. Maybe that if the dep value
is a relative path that leads to a description this works too.