How can I create several ExtJs apps without duplic

2019-04-13 07:28发布

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条回答
劫难
2楼-- · 2019-04-13 07:50

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.

查看更多
登录 后发表回答