How can I create several ExtJs apps without duplicating the Framework

狂风中的少年 提交于 2019-12-21 23:16:37

问题


I'm developing some Extjs 6 applications. I'm using Sench Cmd 6 for creating new application. For every project, It creates a new copy of my lilbrary files. I want to re use the library files rather than duplicate them.

| -- library files
| -- Project 1  
| -- Project 2  
| -- etc.

How can I do it?


回答1:


You need to create first a workspace. Then any app as you want. Would be something like

sencha -sdk "/Sencha/ext-6.0.0" generate workspace "/dev/workspace/"
sencha -sdk "/Sencha/ext-6.0.0" generate app Project1 "/dev/workspace/proj1"
sencha -sdk "/Sencha/ext-6.0.0" generate app Project2 "/dev/workspace/proj2"

If you want to share a library between each app, you can add it in the "classpath" array inside app.json.



来源:https://stackoverflow.com/questions/31376297/how-can-i-create-several-extjs-apps-without-duplicating-the-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!