config.js 1.26 KB
/* global require:true */
require = (function() {
    'use strict';
    var require = {
        baseUrl: 'scripts',
        deps: [
            'main',
        ],
        map: {
            '*': {
                'backbone': 'setup/backbone',
                'rivets': 'setup/rivets',
            },
            'setup/backbone': {backbone: 'backbone'},

            'setup/rivets': {rivets: 'rivets'},
            'rivets-backbone-adapter': {rivets: 'rivets'},
        },
        paths: {
            jquery: '../lib/jquery/dist/jquery',
            underscore: '../lib/underscore/underscore',
            backbone: '../lib/backbone/backbone',

            rivets: '../lib/rivets/dist/rivets.min',
            sightglass: '../lib/sightglass/index',
        },
        shim: {
            backbone : {
                deps: ['underscore', 'jquery'],
                exports: 'Backbone'
            },
            rivets : {
                deps: ['sightglass'],
                exports: 'rivets'
            },
            'rivets-backbone-adapter' : {
                deps: ['rivets']
            },
            sightglass: {
                exports: 'sightglass'
            },
            underscore : {
                exports: '_'
            },
        },
    };
    return require;
})();