On Thu, 05 Sep 2013 12:06:00 GMT, Dicebot wrote:

On Wed, 04 Sep 2013 08:48:16 GMT, Sönke Ludwig wrote:

On Wed, 04 Sep 2013 06:53:31 GMT, Jacob Carlborg wrote:

I've been thinking about giving DUB a try. I know we have talked about some of this before but I have some questions about how DUB works.

  • Where does dub installs everything? Does it even install things?

There are the two directories /var/lib/dub/ and ~/.dub/ where it installs source packages (more or less just a verbatim copy of the git repository contents, except that the package.json gets annotated with an additional "version" field).

Is installation target chosen on per-package basis or set up once? Can path for global one be configured?

The default is to install to the user .dub directory (more specifically: "~/.dub/packages/(name)-(version)/"), but it can be modified using "dub install --system (packagename)" or "dub install --local (packagename)". The latter installs in the current working directory and could be used to install to a custom global directory (that just needs to be registered with "dub add-path --system").