UNPKG

grunt-sencha-dependencies

Version:

A Grunt.js plugin which will figure out the order of Ext classes your Ext.application uses so the list can be passed on to further commands like concat, jshint, etc

51 lines (41 loc) 1.63 kB
Ext.Loader.setPath({ 'Ext': '../libs/touch-2.1.1/src' }); Ext.application({ name: 'StockApp', requires: [ 'Ext.MessageBox' ], views: ['Main'], controllers: ['Main'], stores: [ 'Apple', 'Google' ], startupImage: { '320x460': 'resources/startup/Default.jpg', // Non-retina iPhone, iPod touch, and all Android devices '640x920': 'resources/startup/640x920.png', // Retina iPhone and iPod touch '640x1096': 'resources/startup/640x1096.png', // iPhone 5 and iPod touch (fifth generation) '768x1004': 'resources/startup/768x1004.png', // Non-retina iPad (first and second generation) in portrait orientation '748x1024': 'resources/startup/748x1024.png', // Non-retina iPad (first and second generation) in landscape orientation '1536x2008': 'resources/startup/1536x2008.png', // : Retina iPad (third generation) in portrait orientation '1496x2048': 'resources/startup/1496x2048.png' // : Retina iPad (third generation) in landscape orientation }, isIconPrecomposed: false, icon: 'resources/icons/icon.png', launch: function () { // Initialize the main view Ext.Viewport.add(Ext.create('StockApp.view.Main')); }, onUpdated: function () { Ext.Msg.confirm( "Application Update", "This application has just successfully been updated to the latest version. Reload now?", function (buttonId) { if (buttonId === 'yes') { window.location.reload(); } } ); } });