0

我无法在 ExtJs 中为我的 MVC 应用程序运行 sencha build 命令。但是 sencha create jsb 命令已经成功生成了文件

{
"projectName": "Project Name",
"licenseText": "Copyright(c) 2011 Company Name",
"builds": [
    {
        "name": "All Classes",
        "target": "all-classes.js",
        "options": {
            "debug": true
        },
        "files": []
    },
    {
        "name": "Application - Production",
        "target": "app-all.js",
        "compress": true,
        "files": [
            {
                "path": "",
                "name": "all-classes.js"
            },
            {
                "path": "",
                "name": "app.js"
            }
        ]
    }
],
"resources": []
}

有人能帮我吗

4

1 回答 1

0

似乎没有成功创建 jsb 文件,您的应用程序的文件应该在构建部分的“文件”中,但事实并非如此。像这样:

...
"builds": [
    {
        "name": "All Classes",
        "target": "all-classes.js",
        "options": {
            "debug": true
        },
        "files": [{
                "path": "app/controller",
                "name": "MyController.js"
            }, {
              ... etc
            }]
    },
...

你用的是什么版本的sdk?

于 2012-05-11T08:40:16.900 回答