From 798ef53028d3663b151a8d97729da6e297c05dc1 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Thu, 23 Feb 2017 15:56:45 +0100 Subject: [PATCH] Add Hello DUB executable config --- dub.json | 4 +++- hello.d | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 hello.d diff --git a/dub.json b/dub.json index 2376429..26eeb41 100644 --- a/dub.json +++ b/dub.json @@ -4,5 +4,7 @@ "description": "Example of a DUB package also usable as git submodule. For DUB test suite.", "importPaths": [".."], "sourcePaths": ["."], - "license": "public domain" + "license": "public domain", + "mainSourceFile": "hello.d", + "targetType": "executable" } diff --git a/hello.d b/hello.d new file mode 100644 index 0000000..4895fbe --- /dev/null +++ b/hello.d @@ -0,0 +1,7 @@ +module hello; + +void main(string[] args) +{ + import std.stdio; + writeln("Hello DUB"); +}