Login Register

custom build, with release having only the required files

All,
Is there a way to do a custom build so that the release directory contains _only_ dojo.js, your layer file, and the required resources(css, images, etc)?

While a custom build is good, I hate having to check the entire dojo tree into our repository, just to make sure I don't miss any files. It would be even nicer if I didn't have to generate internationlization files.

Thanks in advance.

--james

No, there is not an option

No, there is not an option for this right now. In general it is a little bit tricky thing to do. There was an initial patch to support this for an earlier version of dojo, but it has not been revisited.

If i18n files are generated for your build layer, then you will want to take them, otherwise a build error will occur.

You can try to watch firebug to see the files that are actually used by your application, but it is something to consider carefully.

I normally commit a zip file of the build output to a repository, then do an unzip as part of a build or deploy step.