Does Cmd v3 support vendor libraries?
Trying to find the right question for my problem.
I can not figure out how to build an app with definitions (models, views, stores, controllers) that extend 3rd party/vendor library definitions. In my particular case, the vendor lib definitions are themselves extensions of Ext definitions.
I've added the vendor lib to my app.json's "js" paths, and have added the lib in my index.html.
And, the app runs, uncompiled, without error.
Does the Cmd v3 tool support compiling apps that use vendor libs like this?
If so, how? If not, is there a roadmap for support? And, what should I do in the mean-time?
Thank you for any hints whatsoever!
externalizing the symbols
Thank you. Externalizing the symbols got me past the 'Failed to load error', and the build process completed without error.
However, now, when I try to run the built index.html, loading all-classes.js, I get about 150 404's.
The topmost error in my console is:
Uncaught TypeError: Cannot read property 'Connection' of undefined
Is this the symptom for needing to add //@require Ext.package.Class to my sch-symbols.js?
I've tried a couple things:
1. I added a bunch //@require Ext.some.Class to the top of sch-symbols,js. This did not reduce my 404's. The classes I added were still 404 not found.
2. I added ext-all.js to my built index.html. This eliminates the Uncaught TypeError, but not any of the 404's.
It may be a few days before I get access to the Bryntum src, so getting a workaround functioning would be wonderful. Thank you for any further advise.
Building with Deft.js with Cmd v3
Really had a hard time getting my one and only Sencha Touch project to build with Deft.js using Cmd v3 - Started typing this whole thing out and found a solution toward the end. So I'll post it anyway. Seems relevant to this thread. Here goes:
First way I tried - Added deft.js to app.json, with no Deft references in app.js requires section.
Runs fine without build. When built using sencha command 3, like so:
sencha ant -d -p skip.sass:1 package build
I get a 'failed to resolve dependency Deft.mvc.ViewController for file MyApp.controller.LoginViewController'. So I can't build.
(my old build command with the old sencha command, was sencha app build package -d myAppComPackage/public, fyr)
So I change /.sencha/app/sencha.cfg, adding deft:
And take Deft.js out of the app.json file, and copy Deft's .js files into a Deft folder in my app.dir, and decide to load everything up in the requires section of app.js, thusly:
Which I don't mind at all, because that's exactly the only way I could get things to build with the old sencha cmd.
This structure runs without building just fine. And it actually builds. But then I get a new kind of error - None of my view Controllers are found. It is like the new sencha command looked at them and said 'you'll not be needing these...' But the definitions are in the app.js.
I try flipping around things in the sencha.config file, thinking app is more important than Deft. No, thah dudun geddit.
If I add the view controllers to the controllers array, I get a Object [object Object] has no method 'getStores' error on load. So can't do it that way.
Solution was to add requires statements to all my views with view controllers, like so:
Which I have to guess lets sencha cmd 3 know that we're going to need those view controllers when the views are built, so get stuff in the right order.
Now I can build in RC2 with Cmd v3, and everything appears to be fine. Hope this helps someone.