Upgrade Sencha Ext JS in a multi application workspace

In this post I will tell you quickly how you can upgrade your Ext JS in a workspace with many apps and/or packages. It is assumed that you are using Sencha CMD. The article is based on version 6.2.0.133 of Sencha CMD.

It could be that you have this kind of structure for your project:

Suppose your workspace has now Ext JS 6.0.1 and your new one is Ext JS 6.2.0. Don’t copy manually your new Ext JS to the ‘ext’ folder of your workspace.

sencha framework add

Just do the following from within the root folder of your workspace:

This will copy the new Ext JS into a folder with the name ‘ext62’.

sencha workspace upgrade

The only thing that remains is:

Sencha CMD recognizes that ‘ext62’ is the latest version of the framework and updates all the apps and packages in the workspace automatically, that is:

Sencha Ext JS upgrade workspace

It shows that it is not compatible with required version 6.0.1.250. This can be solved by editing the sencha.cfg file of your applications (not workspace).

Remove the line that is colored blue in the following image:

Sencha Ext JS upgrade workspace

Now run the command again. If everything ran well it should look like this:

Sencha Ext JS upgrade workspace

As you can see it upgraded Ext JS to the version located in folder ‘ext62’.

What if Ext JS 6.2.x becomes Ext JS 6.2.y?

When Ext JS 6.2.x is followed by Ext JS 6.2.y (or so) I guess you can do a:

The Sencha CMD documentation is not quite clear how that works as there are no examples given.

Johan van de Merwe
Dedicated to professional software development since 1985. Has worked since 1992 as IT manager in several international operating companies. Since 2007 CEO and Sencha Ext JS web application developer at Enovision GmbH.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.