2012-12-10 02:39:29 +08:00
|
|
|
requirejs.config({
|
2012-12-18 03:15:26 +08:00
|
|
|
waitSeconds: 60,
|
2012-12-10 02:39:29 +08:00
|
|
|
baseUrl: 'js',
|
|
|
|
shim: {
|
|
|
|
'colorwheel': ['raphael'],
|
|
|
|
'backbone': {
|
2012-12-20 02:42:58 +08:00
|
|
|
deps: ["underscore"],
|
2012-12-10 02:39:29 +08:00
|
|
|
exports: "Backbone"
|
|
|
|
},
|
|
|
|
'underscore': {
|
|
|
|
exports: "_"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
paths: {
|
2012-12-20 02:42:58 +08:00
|
|
|
// jQuery is being loaded in the html before this because it is necessary
|
|
|
|
// in production (see build.js). It's kept here so the scripts can require
|
|
|
|
// it with require.js
|
|
|
|
'jquery': 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min',
|
|
|
|
'jquery.ui': 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min',
|
|
|
|
|
2012-12-10 02:39:29 +08:00
|
|
|
'jquery.mousewheel': 'lib/jquery/jquery.mousewheel.min',
|
|
|
|
'jquery.autosize': 'lib/jquery/jquery.autosize-min',
|
|
|
|
'jquery.form': 'lib/jquery/jquery.form',
|
|
|
|
'raphael': 'lib/raphael/raphael.amd',
|
|
|
|
'raphael.core': 'lib/raphael/raphael.core',
|
|
|
|
'raphael.vml': 'lib/raphael/raphael.vml',
|
|
|
|
'raphael.svg': 'lib/raphael/raphael.svg',
|
2013-02-28 23:26:36 +08:00
|
|
|
'scale.raphael': 'lib/raphael/scale.raphael',
|
2012-12-10 02:39:29 +08:00
|
|
|
'eve': 'lib/raphael/eve',
|
|
|
|
'colorwheel': 'lib/colorwheel',
|
|
|
|
'coffee-script': 'lib/coffee-script',
|
|
|
|
'socket.io': '/socket.io/socket.io',
|
|
|
|
'underscore': 'lib/underscore-min',
|
|
|
|
'backbone': 'lib/backbone-min',
|
|
|
|
'cs': 'lib/require/cs',
|
|
|
|
'text': 'lib/require/text',
|
|
|
|
'templates': '../templates',
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
require([
|
|
|
|
'cs!app',
|
|
|
|
'coffee-script'
|
|
|
|
], function(App){
|
|
|
|
App.initialize();
|
|
|
|
});
|