mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
37 lines
688 B
JavaScript
37 lines
688 B
JavaScript
|
require.config({
|
||
|
|
||
|
baseUrl: 'js/lib',
|
||
|
|
||
|
paths: {
|
||
|
app: '../app',
|
||
|
tpl: '../tpl'
|
||
|
},
|
||
|
|
||
|
shim: {
|
||
|
'backbone': {
|
||
|
deps: ['underscore', 'jquery'],
|
||
|
exports: 'Backbone'
|
||
|
},
|
||
|
'backbone.bootstrap-modal': {
|
||
|
deps: ['backbone', 'bootstrap']
|
||
|
},
|
||
|
'bootstrap': {
|
||
|
deps: ['jquery']
|
||
|
},
|
||
|
'marionette': {
|
||
|
deps: ['backbone'],
|
||
|
exports: 'Marionette'
|
||
|
},
|
||
|
'marionette-formview': {
|
||
|
deps: ['marionette']
|
||
|
},
|
||
|
'underscore': {
|
||
|
exports: '_'
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
|
||
|
require(['jquery', 'bootstrap', 'backbone', 'app/router'], function ($, Bootstrap, Backbone, Router) {
|
||
|
var router = new Router();
|
||
|
Backbone.history.start();
|
||
|
});
|