You can follow Sencha’s guide all you want, but you won’t be able to build a stand alone “code” package due to errors like:
com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.Component
To fix this, you need to add the following to your package’s .sencha/app/sencha.cfg
package.framework=ext