javascript - Ext js package build -


sencha command let create, build , distribute own package. ext js library built using sencha command.

i wonder correct way have built-package have in correct order, list of singleton files in root folder , there no dependency among each other. example, sencha core package, there ext.js, componentquery.js, etc., how sencha command knows build ext.js first.

this bit puzzling me. have similar situation. have package, let's call mycoolstuff, in root source folder, have coolstuff.js , list of singleton/utility files, example, coolstuffeventhandler.js. absolutely need coolstuff.js built first, far have no luck.

how did ext js it?

when define classes, no matter singletones or not, specify dependencies using requires , uses directives:

ext.define('coolstuffeventhandler', {     ////     requires: [         'coolstuff'     ],     ///// }); 

that's all! rest taken care of sencha cmd you.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -