require.config.js 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /**
  2. * Bootstrap require with the needed config, then load the app.js module.
  3. */
  4. require.config({
  5. baseUrl: 'app',
  6. // urlArgs: 'r=@REV@',
  7. paths: {
  8. config: '../config',
  9. settings: 'components/settings',
  10. kbn: 'components/kbn',
  11. css: '../vendor/require/css',
  12. text: '../vendor/require/text',
  13. moment: '../vendor/moment',
  14. filesaver: '../vendor/filesaver',
  15. angular: '../vendor/angular/angular',
  16. 'angular-strap': '../vendor/angular/angular-strap',
  17. 'angular-sanitize': '../vendor/angular/angular-sanitize',
  18. timepicker: '../vendor/angular/timepicker',
  19. datepicker: '../vendor/angular/datepicker',
  20. underscore: 'components/underscore.extended',
  21. 'underscore-src': '../vendor/underscore',
  22. bootstrap: '../vendor/bootstrap/bootstrap',
  23. jquery: '../vendor/jquery/jquery-1.8.0',
  24. 'extend-jquery': 'components/extend-jquery',
  25. 'jquery.flot': '../vendor/jquery/jquery.flot',
  26. 'jquery.flot.pie': '../vendor/jquery/jquery.flot.pie',
  27. 'jquery.flot.selection': '../vendor/jquery/jquery.flot.selection',
  28. 'jquery.flot.stack': '../vendor/jquery/jquery.flot.stack',
  29. 'jquery.flot.stackpercent':'../vendor/jquery/jquery.flot.stackpercent',
  30. 'jquery.flot.time': '../vendor/jquery/jquery.flot.time',
  31. modernizr: '../vendor/modernizr-2.6.1',
  32. elasticjs: '../vendor/elasticjs/elastic-angular-client',
  33. },
  34. shim: {
  35. underscore: {
  36. exports: '_'
  37. },
  38. angular: {
  39. deps: ['jquery'],
  40. exports: 'angular'
  41. },
  42. bootstrap: {
  43. deps: ['jquery']
  44. },
  45. modernizr: {
  46. exports: 'Modernizr'
  47. },
  48. jquery: {
  49. exports: 'jQuery'
  50. },
  51. // simple dependency declaration
  52. 'jquery.flot': ['jquery'],
  53. 'jquery.flot.pie': ['jquery', 'jquery.flot'],
  54. 'jquery.flot.selection':['jquery', 'jquery.flot'],
  55. 'jquery.flot.stack': ['jquery', 'jquery.flot'],
  56. 'jquery.flot.stackpercent':['jquery', 'jquery.flot'],
  57. 'jquery.flot.time': ['jquery', 'jquery.flot'],
  58. 'angular-sanitize': ['angular'],
  59. 'angular-cookies': ['angular'],
  60. 'angular-loader': ['angular'],
  61. 'angular-mocks': ['angular'],
  62. 'angular-resource': ['angular'],
  63. 'angular-route': ['angular'],
  64. 'angular-touch': ['angular'],
  65. 'angular-strap': ['angular', 'bootstrap','timepicker', 'datepicker'],
  66. timepicker: ['jquery', 'bootstrap'],
  67. datepicker: ['jquery', 'bootstrap'],
  68. elasticjs: ['angular', '../vendor/elasticjs/elastic']
  69. }
  70. });