简体   繁体   English

EXT JS 4.2生成工作区问题

[英]EXT JS 4.2 generate workspace issue

I'm new to ExtJS. 我是ExtJS的新手。 I'm running into a problem with tutorial on theming. 我遇到了有关主题的教程的问题。 When running sencha -sdk ~/ext-4.2.0 generate workspace my-workspace everything is generated fine according to the console log, but according to the tutorial I should get 'ext' and 'packages' folders in my project. 当运行sencha -sdk ~/ext-4.2.0 generate workspace my-workspace根据控制台日志,一切都可以正常生成,但是根据教程,我应该在项目中获取“ ext”和“ packages”文件夹。 Problem is I don't have 'ext' folder. 问题是我没有“ ext”文件夹。 What am I doing wrong here? 我在这里做错了什么? Did anyone came across similar issue? 有没有人遇到过类似的问题?

I was struggling with this too and came across your post looking for some guidance. 我也在为此而苦苦挣扎,偶然发现了您的帖子,以寻求一些指导。 I know you've accepted an answer but just wanted to let others know that the ExtJS Theming Guide has the best, most complete (and correct) instructions on setting up a workspace: 我知道您已经接受了答案,但只是想让其他人知道ExtJS主题指南在设置工作区方面具有最佳,最完整(和正确)的说明:

http://docs.sencha.com/extjs/6.0/core_concepts/theming.html http://docs.sencha.com/extjs/6.0/core_concepts/theming.html

A workspace generated by Sencha Cmd is for both Sencha Touch and ExtJs applications. Sencha Cmd生成的工作空间适用于Sencha Touch和ExtJs应用程序。 Knowing that it make no sense to include the path to the framework folder. 知道包括框架文件夹的路径是没有意义的。 You should first generate a workspace and after that from the workspace folder you generate apps. 您应该首先生成一个工作区,然后再从工作区文件夹中生成应用程序。

Generate workspace 产生工作区

sencha generate workspace /path/to/workspace

Generate ExtJs app from within the workspace folder 从工作区文件夹中生成ExtJs应用

sencha -sdk /path/to/ext generate app ExtApp /path/to/workspace/extApp

Generate Sencha Touch app from within the workspace folder 从工作区文件夹中生成Sencha Touch应用程序

sencha -sdk /path/to/touch generate app TouchApp /path/to/workspace/touchApp

After that you can build your apps in the same way from the app folder 之后,您可以从app文件夹以相同的方式构建应用

sencha app build

More information about generate with Cmd can be found here: http://docs.sencha.com/cmd/5.x/workspaces.html 有关使用Cmd生成的更多信息,请参见: http : //docs.sencha.com/cmd/5.x/workspaces.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM