Dub.createEmptyPackage

Initializes a directory with a package skeleton.

class Dub
void
createEmptyPackage
(
NativePath path
,
string[] deps
,
string type
,,
scope void delegate
(
ref PackageRecipe
,)
recipe_callback = null
,
string[] app_args = []
)

Parameters

path NativePath

Path of the directory to create the new package in. The directory will be created if it doesn't exist.

deps string[]

List of dependencies to add to the package recipe.

type string

Specifies the type of the application skeleton to use.

format PackageFormat

Determines the package recipe format to use.

recipe_callback void delegate
(
ref PackageRecipe
,)

Optional callback that can be used to customize the recipe before it gets written.

app_args string[]

Arguments to provide to the custom initialization routine.

Meta