JSB file generator für ExtJS 4
- orderd list of required javascript files for ExtJS Projects
- Starting file path(s) given by argument (order is necessary)
- config file with mapping of package to filepath
- find/parse "controllers: []"
- find/parse "requires: []"
- define -> index of file
- extend: ''
- mixins: {key: "index of file"}
- models: [] // path is relative for app
- stores: [] // path is relative for app
- views: [] // path is relative for app
- requires: [] // path is full qualified
- hasOne: ''
- hasMany: ''
- associations: [] ** model: '' // path is full qualified (???) ** storeName: '' // path is relative
- alias -> needed for detecting already loaded Ext.widget calls (see Always)
- find/parse html script tags
- parse all files not already found (should find configs, etc)
- prepend (!) to map
- if commented out ignore (!) don't use
- find/parse "Ext.create()"
- find/parse "Ext.widget"
- find/parse "Ext.require()"
- find/parse alternate classnames
- more aliases
-
Flat (?) map of required files containing (log file bamboo compatible ?)
- location
- existing
- js object
- several mapping/find parameter (widget)
- file is used ? (list found but not used files)
-
Production ready file
- Either
- JSB3 file usable by sencha tools
- replace all scripts tags in index.html with production file
- Or
- concat files in parsed/found order
- Minify using YUI Compressor
- replace all scripts tags in index.html with production file
- Either