Just adding more fuel to the fire regarding code sharing between ExtJS4 and Touch2. I'm trying to deploy my desktop and mobile-web applications via:
So that mobile devices accessing the webapp would be redirected to "desktop/mobile/", and trying to reuse some of the code, such as models and stores. While it works in the web app deployed to my localhost (running unoptimized developer mode), sencha CMD fails to build it. In my mobile app.js, I have
and this allows the runtime loader to find the "MyApp" codebase. The problem is that during build time for mobile, Sencha CMD goes into ../app (the desktop version) and tries to build that directory structure as well. It finds references to things like "Ext.container.Viewport", and since "Ext" in the mobile framework maps to "touch/src", that class isn't found because that pathname is only relevant for the desktop ExtJS source.
I might have to resort to symlinking specific directories, i.e. app/store & app/model, from the desktop app down to mobile. Not ideal at all.