PDA

View Full Version : Create jsb Includes Unnecessary Dependencies?



bergstyle
6 Sep 2011, 9:48 PM
I'm staring to work on a new app and thought I'd give the SDK tools a shot while the app doesn't have many dependencies to see how the tools work.

When I run create jsb builder the all-classes.js file includes way too many unnecessary dependencies. Is anyone else running into this? Do I have something mis-configured?

here is my app.js file


Ext.Loader.setConfig({enabled: true, disableCaching: false});
Ext.Loader.setPath({'Ext':'app/libs/ext-4.0.2/src','PD':'app'});

Ext.require([
'Ext.layout.container.Absolute',
'Ext.layout.container.Container',
'Ext.view.View',
]);

Ext.require(['PD.view.Viewport']);


Ext.application({
name: 'PD',
autoCreateViewport: false,
appFolder: 'app',

models: ['Torrent'],
controllers: ['Main'],
views: ['Viewport'],

launch: function() {
PD.app = this;
Ext.create('PD.view.Viewport');

}
});



app.jsb3 file after running: sencha create jsb -a index.html -p app.jsb3


{
"projectName": "Project Name",
"licenseText": "Copyright(c) 2011 Company Name",
"builds": [
{
"name": "All Classes",
"target": "all-classes.js",
"options": {
"debug": true
},
"files": [
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Observable.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "CubicBezier.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/",
"name": "Layout.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Association.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Operation.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "validations.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Color.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Floating.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "HashMap.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "SortTypes.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/theme/",
"name": "Theme.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "Mask.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "Navigation.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "Target.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Animate.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ComponentQuery.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "KeyMap.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ZIndexManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Connection.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Filter.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Sorter.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "Template.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ElementLoader.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Component.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "Shape.js"
},
{
"path": "app/libs/ext-4.0.2/src/state/",
"name": "Provider.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/writer/",
"name": "Writer.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Memento.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "ResultSet.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "Proxy.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "AbstractDock.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "StatusProxy.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/boxOverflow/",
"name": "None.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Offset.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "ClickRepeater.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Button.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "TextMetrics.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "AbstractContainer.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Container.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Anchor.js"
},
{
"path": "app/libs/ext-4.0.2/src/app/",
"name": "Controller.js"
},
{
"path": "app/libs/ext-4.0.2/src/app/",
"name": "EventBus.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Draw.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "Easing.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "PropertyHandler.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "AbstractManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ModelManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ComponentManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "Queue.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "Element.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "CompositeElement.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "Sprite.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "CompositeSprite.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/target/",
"name": "Component.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "KeyNav.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Types.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Field.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "Ajax.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "AbstractMixedCollection.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Sortable.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "MixedCollection.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "StoreManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "Manager.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "Animator.js"
},
{
"path": "app/libs/ext-4.0.2/src/fx/",
"name": "Anim.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "LoadMask.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Errors.js"
},
{
"path": "app/libs/ext-4.0.2/src/selection/",
"name": "Model.js"
},
{
"path": "app/libs/ext-4.0.2/src/selection/",
"name": "DataViewModel.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "PluginManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "XTemplate.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ComponentLoader.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Auto.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Auto.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Draw.js"
},
{
"path": "app/libs/ext-4.0.2/src/state/",
"name": "Manager.js"
},
{
"path": "app/libs/ext-4.0.2/src/state/",
"name": "Stateful.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "AbstractComponent.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "Component.js"
},
{
"path": "app/libs/ext-4.0.2/src/view/",
"name": "AbstractView.js"
},
{
"path": "app/libs/ext-4.0.2/src/view/",
"name": "View.js"
},
{
"path": "app/libs/ext-4.0.2/src/container/",
"name": "AbstractContainer.js"
},
{
"path": "app/libs/ext-4.0.2/src/container/",
"name": "Container.js"
},
{
"path": "app/libs/ext-4.0.2/src/container/",
"name": "Viewport.js"
},
{
"path": "app/view/",
"name": "Viewport.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/writer/",
"name": "Json.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "CompositeSprite.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Surface.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Component.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "LegendItem.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "Legend.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/",
"name": "Chart.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/axis/",
"name": "Abstract.js"
},
{
"path": "app/libs/ext-4.0.2/src/chart/axis/",
"name": "Axis.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Absolute.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/reader/",
"name": "Reader.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/reader/",
"name": "Json.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/proxy/",
"name": "Proxy.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/proxy/",
"name": "Server.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/proxy/",
"name": "Ajax.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Model.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "Header.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Dock.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/component/",
"name": "Tip.js"
},
{
"path": "app/libs/ext-4.0.2/src/toolbar/",
"name": "Fill.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "FocusManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Region.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DragDropManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/boxOverflow/",
"name": "Scroller.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DragDrop.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DD.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DDProxy.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DragSource.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "DD.js"
},
{
"path": "app/libs/ext-4.0.2/src/toolbar/",
"name": "Item.js"
},
{
"path": "app/libs/ext-4.0.2/src/toolbar/",
"name": "Separator.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "Manager.js"
},
{
"path": "app/libs/ext-4.0.2/src/button/",
"name": "Button.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/boxOverflow/",
"name": "Menu.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Box.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "HBox.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "VBox.js"
},
{
"path": "app/libs/ext-4.0.2/src/toolbar/",
"name": "Toolbar.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "AbstractPanel.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "Panel.js"
},
{
"path": "app/libs/ext-4.0.2/src/tip/",
"name": "Tip.js"
},
{
"path": "app/libs/ext-4.0.2/src/tip/",
"name": "ToolTip.js"
},
{
"path": "app/libs/ext-4.0.2/src/tip/",
"name": "QuickTip.js"
},
{
"path": "app/libs/ext-4.0.2/src/tip/",
"name": "QuickTipManager.js"
},
{
"path": "app/libs/ext-4.0.2/src/app/",
"name": "Application.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Point.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "Layer.js"
},
{
"path": "app/libs/ext-4.0.2/src/resizer/",
"name": "Resizer.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Batch.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Request.js"
},
{
"path": "app/libs/ext-4.0.2/src/panel/",
"name": "Tool.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "CSS.js"
},
{
"path": "app/libs/ext-4.0.2/src/dd/",
"name": "DragTracker.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Matrix.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "Item.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "KeyNav.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "Separator.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "AbstractStore.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "Grouper.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "SpriteDD.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "AbstractFit.js"
},
{
"path": "app/libs/ext-4.0.2/src/util/",
"name": "ComponentDragger.js"
},
{
"path": "app/libs/ext-4.0.2/src/window/",
"name": "Window.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "Store.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/",
"name": "ArrayStore.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/",
"name": "Sprite.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/engine/",
"name": "Svg.js"
},
{
"path": "app/libs/ext-4.0.2/src/draw/engine/",
"name": "Vml.js"
},
{
"path": "app/libs/ext-4.0.2/src/layout/container/",
"name": "Fit.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "CheckItem.js"
},
{
"path": "app/libs/ext-4.0.2/src/menu/",
"name": "Menu.js"
},
{
"path": "app/libs/ext-4.0.2/src/resizer/",
"name": "ResizeTracker.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/reader/",
"name": "Array.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "ShadowPool.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/proxy/",
"name": "Client.js"
},
{
"path": "app/libs/ext-4.0.2/src/",
"name": "Shadow.js"
},
{
"path": "app/libs/ext-4.0.2/src/data/proxy/",
"name": "Memory.js"
},
{
"path": "app/controller/",
"name": "Main.js"
}
]
},
{
"name": "Application - Production",
"target": "app-all.js",
"compress": true,
"files": [
{
"path": "",
"name": "all-classes.js"
},
{
"path": "",
"name": "app.js"
}
]
}
],
"resources": []
}


Seems like way too many files.... right?

bergstyle
7 Sep 2011, 10:21 AM
For some more background, here is what my Viewport looks like (super simple). I also have one really basic model and a proxy that goes with it. No charts, no buttons, fx, menus, drag and drop, etc. but its including all of those classes anyway.



Ext.define('PD.view.Viewport', {
extend: 'Ext.container.Viewport',
layout: 'fit',
initComponent: function() {
this.items = [{
xtype: 'panel',
id: 'mainPanel',
title: 'Main Panel',
layout: 'absolute'
}];

this.callParent(arguments);

}
});