Skip to content

Instantly share code, notes, and snippets.

@pedromtavares
Created May 8, 2012 06:25
Show Gist options
  • Save pedromtavares/2633020 to your computer and use it in GitHub Desktop.
Save pedromtavares/2633020 to your computer and use it in GitHub Desktop.
// Set the require.js configuration for your application.
require.config({
// Initialize the application with the main application file
deps: ["app/main"],
paths: {
// JavaScript folders
libs: "libs",
plugins: "plugins",
// Libraries
jquery: "libs/jquery",
jqueryCookie: "libs/jquery.cookie",
jqueryValidate: "libs/jquery.validate",
jqueryGritter: "libs/jquery.gritter",
jqueryIframe: "libs/jquery.iframe-transport",
bootstrapDropdown: "plugins/bootstrap-dropdown",
underscore: "libs/underscore",
backbone: "libs/backbone",
backboneValidations: "libs/backbone.validations",
// Shim Plugin
use: "plugins/use"
},
use: {
backbone: {
deps: ["use!underscore", "jquery"],
attach: "Backbone"
},
jqueryCookie: {
deps: ['jquery']
},
jqueryValidate: {
deps: ['jquery']
},
jqueryGritter: {
deps: ['jquery']
},
jqueryIframe: {
deps: ['jquery']
},
bootstrapDropdown: {
deps: ['jquery']
},
underscore: {
attach: "_"
},
backboneValidations: {
deps: ['use!backbone'],
attach: "Backbone"
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment