I have an extjs 4.2 application which was built by hand coding controllers, views, stores and models. I was looking for a step by step approach to migrate to sencha cmd and could not find one.
The reasons for moving to sencha cmd are packaging benefits (1 app.js to load instead of 100s of js files), obfuscating/ minimizing code for production, theming, ease of migration to newer extjs versions.
Please let me know what steps you took to migrate to sencha cmd? I am planning to do this (actually tried it and did not succeed):
- Start fresh and create a new sencha app using cmd keeping the same Ext.application.name as the hand coded one
- Copy all models, views, controllers, stores over to sencha cmd app
- Add those models, views, controllers in app/Application.js
- Run sencha app watch and it should work
A little guidance or a pointer to how you migrated a non sencha cmd app to a sencha cmd app will help.
Thanks