Search code examples
javascriptextjssencha-cmdextjs6

How can I create several ExtJs apps without duplicating the Framework


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?


Solution

  • 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.