mirror of
https://github.com/Ekokumppanit/Lentolaskuri.git
synced 2026-02-12 05:46:21 +00:00
Initial commit
This commit is contained in:
58
app/scripts/main.js
Normal file
58
app/scripts/main.js
Normal file
@@ -0,0 +1,58 @@
|
||||
'use strict';
|
||||
|
||||
require.config({
|
||||
map: {
|
||||
'*': {
|
||||
'underscore': 'lodash'
|
||||
}
|
||||
},
|
||||
paths: {
|
||||
jquery: '../components/jquery/jquery',
|
||||
bootstrap: '../scripts/bootstrap',
|
||||
select2: '../components/select2/select2',
|
||||
lodash: '../components/lodash/lodash',
|
||||
handlebars: '../components/handlebars/handlebars.runtime',
|
||||
Template: '../scripts/templates',
|
||||
'jquery-ui-core': '../components/jquery-ui/ui/jquery.ui.core',
|
||||
'jquery-ui-mouse': '../components/jquery-ui/ui/jquery.ui.mouse',
|
||||
'jquery-ui-widget': '../components/jquery-ui/ui/jquery.ui.widget',
|
||||
'jquery-ui-sortable': '../components/jquery-ui/ui/jquery.ui.sortable',
|
||||
async: '../components/requirejs-plugins/src/async',
|
||||
backbone: '../components/backbone/backbone',
|
||||
'backbone-mediator': '../components/Backbone-Mediator/backbone-mediator'
|
||||
},
|
||||
shim: {
|
||||
backbone: {
|
||||
deps: ['lodash'],
|
||||
exports: 'Backbone'
|
||||
},
|
||||
bootstrap: {
|
||||
deps: ['jquery'],
|
||||
exports: 'jquery'
|
||||
},
|
||||
select2: {
|
||||
deps: ['jquery'],
|
||||
exports: 'jquery'
|
||||
},
|
||||
'jquery-ui-core': {
|
||||
deps: ['jquery'],
|
||||
exports: 'jquery'
|
||||
},
|
||||
'jquery-ui-sortable': {
|
||||
deps: ['jquery-ui-core', 'jquery-ui-widget', 'jquery-ui-mouse'],
|
||||
exports: 'jquery'
|
||||
},
|
||||
handlebars: {
|
||||
exports: 'Handlebars'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require([
|
||||
'jquery',
|
||||
'app',
|
||||
'bootstrap',
|
||||
'libs/handlebar_helpers'
|
||||
], function ($, App) {
|
||||
var app = new App();
|
||||
});
|
||||
Reference in New Issue
Block a user