mirror of
https://github.com/Hopiu/postal.js.git
synced 2026-03-18 15:00:30 +00:00
26 lines
653 B
JavaScript
26 lines
653 B
JavaScript
var socket;
|
|
|
|
require.config( {
|
|
paths : {
|
|
'text' : 'lib/requirejs-text-1.0.2',
|
|
'backbone' : 'lib/backbone',
|
|
'underscore' : 'lib/underscore',
|
|
'machina' : 'lib/machina',
|
|
'postal' : 'lib/postal',
|
|
'amplify' : 'lib/amplify',
|
|
'bus' : 'infrastructure/bus'
|
|
},
|
|
baseUrl : 'js'
|
|
} );
|
|
|
|
require( [ 'backbone', 'jquery', 'underscore', 'amplify', 'machina', 'postal', 'lib/postal.diagnostics', 'infrastructure/postal.socket-client' ],
|
|
function ( Backbone, $, _, amplify, machina, postal ) {
|
|
|
|
// for debugging purposes ONLY for now:
|
|
window.postal = postal;
|
|
|
|
require( [ 'infrastructure/app' ], function ( app ) {
|
|
window.app = app;
|
|
} );
|
|
|
|
} );
|