Am 24.04.2014 17:59, schrieb Sönke Ludwig:
Am 24.04.2014 16:42, schrieb Adam D. Ruppe:
On Thursday, 24 April 2014 at 03:59:00 UTC, Rikki Cattermole wrote:
Can we have it as a library?
css.d in there has the lib code now with my other html stuff stripped
out so it has fewer dependencies. Can dub just use it without using the
little main file?
This should automatically yield two configurations - "application" and
"library":
...
Meh, unfortunately it requires to add the tow configurations manually:
{
"name": "cssexpand",
"description": "A CSS expansion program",
"authors": ["Adam D. Ruppe"],
"homepage": "https://github.com/adamdruppe/cssexpand",
"license": "BSL-1.0",
"mainSourceFile": "src/cssexpand.d",
"configurations": [
{
"name": "application",
"targetType": "executable"
},
{
"name": "library",
"targetType": "library",
"excludedSourceFiles": ["src/cssexpand.d"]
}
]
}
BTW, no need to keep both, dub.json and package.json. If you want to
stay compatible with old DUB versions, just use package.json, it will
still be supported for new versions as well.