问题
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