发布于 2015-07-22 15:37:50
您必须使用GeoExt3创建一个包。将Extjs-6中的包装改为赫尔。
如何使用sencha命令打包GeoExt
从这里安装sencha cmd (用版本6进行测试,现在只作为预览版)。
要生成包,通常首先通过以下方式创建一个sencha workspace
-sdk /path/to/ext-n.n.n生成工作区/路径/到/工作区
在工作区中,将geoext3存储库克隆到packages子文件夹中:
$ cd /path/to/工作区/包 $ git克隆人https://github.com/KaiVolland/geoext3.git GeoExt3 $ cd GeoExt3
然后你就可以
$ sencha软件包构建
或者,如果源不在sencha工作区中,则可以配置工作区的路径,然后构建:
$ sencha配置--支持workspace.config.dir=/path/to/workspace/.sencha/workspace然后构建包
将GeoExt添加到本地sencha存储库
整合本地"GeoExt贡献者“存储库:
$ sencha包回购init -name "GeoExt贡献者“-email "dev@geoext.org”
将包添加到
$ sencha包添加D:/xampp/htdocs/ExtProjects/GeoExt3/build/GeoExt/GeoExt.pkg
将您的应用程序创建为赫尔。
要在sencha应用程序中使用这个包,只需将"GeoExt“添加到app.json中的"requires"-array:
/**
* The list of required packages (with optional versions; default is "latest").
*
* For example,
*
* "requires": [
* "charts"
* ]
*/
"requires": [
"GeoExt"
],最后,构建应用程序如下:
$ sencha应用程序构建
https://stackoverflow.com/questions/31398112
复制相似问题