0

我想对我的 Dojo 项目进行自定义构建。例如,它位于D:/projects/myproject,。我有 Dojo SDK 在D:/programs/dojo1.8. 我想将 Dojo 和我的项目代码分开以独立于 Dojo 版本。

当我构建自定义包时,是否需要将 Dojo SDK 与主项目(即D:/projects/myproject/dojo)放在同一文件夹中?或者我可以在一个完全不相关的文件夹中启动 Dojo 构建器,将我的项目指定package.js为参数?

比如D:/programs/dojo1.8/buildscripts/build.bat --profile D:/projects/myproject/package.js。如果是这样,我应该在文件中使用什么作为basePath,releaseDirpackages选项package.js

4

1 回答 1

0

It is possible to include unrelated packages in the build.

In the command line specify the package you want to add, such as.

D:/programs/dojo1.8/buildscripts/build.bat --profile MyProfile.js --package d:\programs\dojo1.8

The specified package folder should contain a file named package.json with a package description. Format of the file could be found in dojo build documentation. Standard dojo, dijit and dojox packages have it. But nowhere said it must contain "directories: {lib: '.'}" entry to be built by dojo builder.

You may specify several packages separated by commas.

于 2013-11-07T20:04:55.300 回答