digitalmars.D.learn - Dub. Mercurial (bitbucket.org). Projects deployment
Jun 10 2014
Also I have additional question to this post. 6. If I would convert my repo to git, but use anather hosting that github.org for example my own local server or bitbucket.org. How could I specify source for loading dependencies? This is unclear from dub documentation. Is it a tool for working with concrete web-repository? 7. Also I have a question about structure of folders that dub creates. I tried to implement example from vibed.org and created test web-server using dub. As I see dub is loading dependencies into ~/.dub (on Linux). In my application I have some resources that used by application at runtime. These are static data like *.html, *.css, images, *.js and other files that included in library tha I want to use in my application. What is a good approach? Create a separate working folder where I will copy all resource files or create symbolic links to folders or write paths to this library inside ~/.dup. This is all about general organization of project that is not considered very well in articles. And I don't know how it can be solved for projects on D language.
Jun 10 2014
Thanks for all the answers) 8. I have another more simple question about rdmd utility. It takes one *.d file and searches for all dependencies. What if I need to pass independent *.d file or *.ddoc file directly to dmd compiler? How could I do that using dmd? I have no idea how I could include *.ddoc file with set of DDOC macroses. I have tried to use string mixin. mixin(import("mysettings.ddoc")); But I haven't succeed. My be compiler strips all the comments before mixing in or I doing something wrong. Another way is to use dmd.conf but I don't like this, because it's brutal way of doing so and as I think it's not compiler independent.
Jun 13 2014