Created
January 11, 2012 19:56
-
-
Save kmiyashiro/1596455 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
({ | |
appDir: "../js", | |
baseUrl: "./", | |
dir: "../js-deploy", | |
//Comment out the optimize line if you want | |
//the code minified by UglifyJS | |
optimize: "none", | |
paths: { | |
'app' : 'app', | |
'jquery' : 'libs/jquery/jquery-1.7.min', | |
'jquery-cookie' : 'libs/jquery/jquery.cookie', | |
'jquery-dataTables' : 'libs/jquery/jquery.dataTables.min', | |
'jquery-css-animations' : 'libs/jquery/jquery.animate-enhanced', | |
'jquery-parseQuerystring' : 'libs/jquery/jquery.parseQuerystring', | |
'jquery-ui' : 'libs/jquery/jquery-ui-1.8.16.custom.min', | |
'jquery-isotope' : 'libs/jquery/jquery.isotope.min', | |
'jquery-tipsy' : 'libs/jquery/jquery.tipsy', | |
'jquery-ajaxmanager' : 'libs/jquery/jquery.ajaxmanager', | |
'jquery-form' : 'libs/jquery/jquery.form', | |
'chosen' : 'libs/jquery/chosen', | |
'util' : 'libs/rap/util', | |
'loading' : 'libs/rap/loading', | |
'date' : 'libs/rap/date', | |
'log' : 'libs/rap/log', | |
'underscore' : 'vendor/underscore', | |
'backbone' : 'vendor/backbone', | |
'visualsearch' : 'libs/backbone/visualsearch', | |
'templates' : 'templates/templates', | |
'moment' : 'libs/moment/moment.min' | |
}, | |
modules: [ | |
{ | |
name: "plugins" | |
}, | |
//Optimize the application files. | |
{ | |
name: "main", | |
exclude: [ | |
"plugins" | |
] | |
} | |
] | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script data-main="js/main" src="js/libs/require/require.js" type="text/javascript" charset="utf-8"></script> | |
<script> | |
require.config({ | |
paths: { | |
'jquery' : 'libs/jquery/jquery-1.7.min', | |
'jquery-cookie' : 'libs/jquery/jquery.cookie', | |
'jquery-dataTables' : 'libs/jquery/jquery.dataTables.min', | |
'jquery-css-animations' : 'libs/jquery/jquery.animate-enhanced', | |
'jquery-parseQuerystring' : 'libs/jquery/jquery.parseQuerystring', | |
'jquery-ui' : 'libs/jquery/jquery-ui-1.8.16.custom.min', | |
'jquery-isotope' : 'libs/jquery/jquery.isotope.min', | |
'jquery-tipsy' : 'libs/jquery/jquery.tipsy', | |
'jquery-ajaxmanager' : 'libs/jquery/jquery.ajaxmanager', | |
'jquery-form' : 'libs/jquery/jquery.form', | |
'chosen' : 'libs/jquery/chosen', | |
'util' : 'libs/rapsphere/util', | |
'loading' : 'libs/rapsphere/loading', | |
'log' : 'libs/rapsphere/log', | |
'gmaps' : 'libs/rapsphere/gmaps', | |
'underscore' : 'vendor/underscore', | |
'backbone' : 'vendor/backbone', | |
'visualsearch' : 'libs/backbone/visualsearch', | |
'templates' : 'templates/templates', | |
'moment' : 'libs/moment/moment.min' | |
}, | |
priority: [ | |
'jquery', | |
'underscore' | |
] | |
}); | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(['backbone', 'router', 'router/appRouter', 'router/deviceRouter', 'router/userRouter', 'widgets/globalSearch', 'loading', 'plugins'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Bundle of all the plugins. | |
*/ | |
define([ | |
'jquery', | |
'date', | |
'jquery-cookie', | |
'jquery-dataTables', | |
'jquery-css-animations', | |
'jquery-ui', | |
'jquery-tipsy', | |
'jquery-ajaxmanager', | |
'jquery-form', | |
'chosen' | |
], function() {}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment