Skip to content
Snippets Groups Projects
mappings.js 9.71 KiB
/**
 * Mappings
 * Belongs to Decentraleyes.
 *
 * @author      Thomas Rientjes
 * @since       2014-05-30
 * @license     MPL 2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/.
 */

'use strict';

/**
 * Imports
 */

var resources = require('./resources');

/**
 * Mappings
 */

var mappings = {

    // Google Hosted Libraries
    'ajax.googleapis.com': {
        '/ajax/libs/': {
            'angularjs/{version}/angular.': resources.angular,
            'dojo/{version}/dojo/dojo.': resources.dojo,
            'ext-core/{version}/ext-core.': resources.extCore,
            'ext-core/{version}/ext-core-debug.': resources.extCore,
            'jquery/{version}/jquery.': resources.jQuery,
            'jqueryui/{version}/jquery-ui.js': resources.jQueryUI,
            'jqueryui/{version}/jquery-ui.min.js': resources.jQueryUI,
            'mootools/{version}/mootools-yui-compressed.': resources.mootools,
            'prototype/{version}/prototype.': resources.prototypeJS,
            'scriptaculous/{version}/scriptaculous.': resources.scriptaculous,
            'swfobject/{version}/swfobject.': resources.swfobject,
            'webfont/{version}/webfont.': resources.webfont,

            // Common Shorthand Notations
            'dojo/1/dojo/dojo.': {
                path: 'resources/dojo/1.6.1/dojo/dojo.js.dec',
                type: 'application/javascript'
            },
            'jquery/1/jquery.': {
                path: 'resources/jquery/1.11.1/jquery.min.js.dec',
                type: 'application/javascript'
            },
            'jqueryui/1/jquery-ui.js': {
                path: 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
                type: 'application/javascript'
            },
            'jqueryui/1/jquery-ui.min.js': {
                path: 'resources/jqueryui/1.10.4/jquery-ui.min.js.dec',
                type: 'application/javascript'
            },
            'mootools/1/mootools-yui-compressed.': {
                path: 'resources/mootools/1.1.2/mootools-yui-compressed.js.dec',
                type: 'application/javascript'
            },
            'prototype/1/prototype.': {
                path: 'resources/prototype/1.7.1.0/prototype.js.dec',
                type: 'application/javascript'
            },
            'scriptaculous/1/scriptaculous.': {
                path: 'resources/scriptaculous/1.9.0/scriptaculous.js.dec',