You found a bug! We've classified it as
SDKTOOLS-405
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
-
Sencha Premium Member
The 'app' folder and 'app.js' file name are hardcoded in the Ext plugin.
[This is for the Sencha Cmd 3.0.2.288 build]
ExtJs allows us to set the appFolder to be something instead of 'app' - e.g I can set it to 'myapp' if I want. However, the Sencha Cmd scripts stop working if you do this - in particular, you can no longer use 'sencha generate controller' or 'sencha generate view'.
This seems to be because the location of the app.js file is hard-coded in the plugins/ext/current/plugin.xml file. E.g, on line 203:
<property name="app.js.file" value="${args.path}/app/app.js"/>
There are a number of other references to ${args.path}/app in that file.
Would it be possible to replace references to '${args.path}/app' with something like ${args.path}/${appFolder} (with appFolder defaulting to 'app', of course)?
-
When you generate an app, you can move app.js and then edit index.html to point to it.
-
Sencha Premium Member

Originally Posted by
mitchellsimoens
When you generate an app, you can move app.js and then edit index.html to point to it.
Yes. And when you do, the 'sencha generate' set of commands will no longer work, as they have the 'app/app.js' part hard-coded into the plugin.xml command.
-
Thanks for the report! I have opened a bug in our bug tracker.