使用Gridx的Dojo自定义构建

使用Gridx的Dojo自定义构建,dojo,dependencies,custom-build,dojo.gridx,Dojo,Dependencies,Custom Build,Dojo.gridx,因此,我一直在尝试在添加gridx小部件后构建DOJO 我在app.profile.js文件中添加了gridx模块,如下所示: layers: { "gridx/gridx": { include: [ "gridx/Grid", "gridx/core/model/cache/Async", "gridx/modules/CellWidget", "gridx/modules

因此,我一直在尝试在添加gridx小部件后构建DOJO

我在app.profile.js文件中添加了gridx模块,如下所示:

layers: {
    "gridx/gridx": {
        include: [
            "gridx/Grid",
            "gridx/core/model/cache/Async",
            "gridx/modules/CellWidget",
            "gridx/modules/Edit",
            "gridx/modules/Filter",
            "gridx/modules/Pagination",
            "gridx/modules/pagination/PaginationBar"
                ]
    }
}
在编译过程中,我不断地遇到这些错误

错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/Grid 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/core/model/cache/Async 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/CellWidget 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Edit 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Filter 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/Pagination 错误(311)缺少依赖项。模块:应用程序/屏幕;依赖项:js/plugins/gridx/modules/pagination/PaginationBar

不确定我在这里遗漏了什么,我已经排除故障一段时间了

packages.json代码

{
    "name": "app",
    "version": "1.0",
    "dependencies": {
        "dojo": "current",
        "dijit": "current",
        "dojox": "current",
        "util": "current",
        "gridx": "current",
    },
    "description": "app Components Package",
    "dojoBuild": "app-common.profile.js"
}

构建概要文件需要一个packages部分,它将告诉构建gridx代码的位置

build.profile.js

basePath:       "../dojo-release-1.8.3-src",
...
packages:[
    {name: 'dojo', location: 'dojo'},
    {name: 'dijit', location: 'dijit'},
    {name: 'dojox', location: 'dojox'},
    {name: 'gridx', location: '../PATH/TO/gridx'} // path is relative from basePath
],

看起来构建不知道gridx源代码位于何处。你能在构建概要文件中发布包吗?添加了packages.json代码这是解决方案的一部分。在我的一个类中,我在构建过程中遇到了相对路径问题。在我的本地dev服务器上,这是可以的,但是在构建过程中,它会出错,并且找不到正确的路径。