RejectedSoftware Forums

Sign up

Applications in Dub

I have probably mentioned this before, but don't really like they way
applications/tools are handled in Dub.

For example, I just added DStep[1] as a package. Looking at the
installation instructions on the package it says to add dstep to your
project's package.json. I don't know how much sense that makes for a
standalone tool that can be used without a project.

[1] http://code.dlang.org/packages/dstep

/Jacob Carlborg

Re: Applications in Dub

Am 21.01.2014 10:19, schrieb Jacob Carlborg:

I have probably mentioned this before, but don't really like they way
applications/tools are handled in Dub.

For example, I just added DStep[1] as a package. Looking at the
installation instructions on the package it says to add dstep to your
project's package.json. I don't know how much sense that makes for a
standalone tool that can be used without a project.

[1] http://code.dlang.org/packages/dstep

That's indeed strange (wrong). I'll add a ticket to improve this. I'd
say there should at least be instructions on how to run or build it
(e.g. dub fetch dstep && dub run dstep), and possibly how to use it as a
build process utility (preBuildCommands).

Re: Applications in Dub

On Tue, 21 Jan 2014 11:20:36 +0100, Sönke Ludwig wrote:

That's indeed strange (wrong). I'll add a ticket to improve this. I'd
say there should at least be instructions on how to run or build it
(e.g. dub fetch dstep && dub run dstep), and possibly how to use it as a
build process utility (preBuildCommands).

BTW, if the intention is to use dub run, similar to bundle exec if you're familiar with that, to run applications. Then dub run
produce quite a lot of output that a user normally would not like to see.

Re: Applications in Dub

On Tue, 21 Jan 2014 11:20:36 +0100, Sönke Ludwig wrote:

Am 21.01.2014 10:19, schrieb Jacob Carlborg:

I have probably mentioned this before, but don't really like they way
applications/tools are handled in Dub.

For example, I just added DStep[1] as a package. Looking at the
installation instructions on the package it says to add dstep to your
project's package.json. I don't know how much sense that makes for a
standalone tool that can be used without a project.

[1] http://code.dlang.org/packages/dstep

That's indeed strange (wrong). I'll add a ticket to improve this. I'd
say there should at least be instructions on how to run or build it
(e.g. dub fetch dstep && dub run dstep), and possibly how to use it as a
build process utility (preBuildCommands).

Brian Schott just put dfix up on the registry recently. Does it make sense to add tools like dstep or dfix as a dependency to a project so you can run them as a pre-/post-build command make sense or are dependencies strictly for libraries?

Re: Applications in Dub

On Mon, 01 Dec 2014 22:33:57 GMT, Brad Anderson wrote:

Does it make sense to add tools like dstep or dfix as a dependency to a project so you can run them as a pre-/post-build command make sense or are dependencies strictly for libraries?

Remove the second "make sense" to make that sentence make sense. :P