17 Mar 2013 2:12 PM #1
Sencha CMD - compiling app
Having upgraded to Extjs 4.2 I've been trying to get CMD to compile my app. I'm running CMD 3.1, but keep getting empty output files (despite trying a number of possible arguments - there's a lot of conflicting documentation out there!).
I've used CMD generate, and this has copied over the ext file into my app directory. I've then copied my 4 js files into a js subdirectory. I also modified my index.html to wrap the script tags with the <x-compile> tags
I tried compiling with the following -:
sencha compile -classpath=ext /src,js page -yui -in index.html -out build/index.html
Ultimately, it generates the all-classes.js and index files, but the js file is 0b (if I remove the YUI, it's just got a comment in it).
Any comments or thoughts appreciated - previously I had no problem with the older create/build process...
19 Mar 2013 6:55 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
To build, why aren't you using sencha app build?Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
19 Mar 2013 11:06 AM #3
From what I can gather from the documentation, "app build" only works if the app was built by, or with cmd in mind. My app didn't use the "standard" structure, so I used the doc here (http://docs.sencha.com/ext-js/4-2/#!...and_app_single).
This states "While the convenient commands like sencha app build won't understand these applications and so cannot be used, you can use lower-level commands provided by Sencha Cmd to produce builds and perform all of the same tasks.".
If I've got this wrong, I'm more than happy to use sencha app build if it's gonna work...
8 Aug 2013 11:24 PM #4
actrually you should make "inject" your costum compile line to the "sencha app build" process by making modifications to the procuction.properties or build.xml. not really easy task, Sencha DEV Team shoud'v given tutorial about this.