require.config.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. chromath: '../vendor/chromath',
  16. angular: '../vendor/angular/angular',
  17. 'angular-dragdrop': '../vendor/angular/angular-dragdrop',
  18. 'angular-strap': '../vendor/angular/angular-strap',
  19. 'angular-sanitize': '../vendor/angular/angular-sanitize',
  20. timepicker: '../vendor/angular/timepicker',
  21. datepicker: '../vendor/angular/datepicker',
  22. underscore: 'components/underscore.extended',
  23. 'underscore-src': '../vendor/underscore',
  24. bootstrap: '../vendor/bootstrap/bootstrap',
  25. jquery: '../vendor/jquery/jquery-1.8.0',
  26. 'jquery-ui': '../vendor/jquery/jquery-ui-1.10.3',
  27. 'extend-jquery': 'components/extend-jquery',
  28. 'jquery.flot': '../vendor/jquery/jquery.flot',
  29. 'jquery.flot.pie': '../vendor/jquery/jquery.flot.pie',
  30. 'jquery.flot.selection': '../vendor/jquery/jquery.flot.selection',
  31. 'jquery.flot.stack': '../vendor/jquery/jquery.flot.stack',
  32. 'jquery.flot.stackpercent':'../vendor/jquery/jquery.flot.stackpercent',
  33. 'jquery.flot.time': '../vendor/jquery/jquery.flot.time',
  34. modernizr: '../vendor/modernizr-2.6.1',
  35. elasticjs: '../vendor/elasticjs/elastic-angular-client',
  36. },
  37. shim: {
  38. underscore: {
  39. exports: '_'
  40. },
  41. angular: {
  42. deps: ['jquery'],
  43. exports: 'angular'
  44. },
  45. bootstrap: {
  46. deps: ['jquery']
  47. },
  48. modernizr: {
  49. exports: 'Modernizr'
  50. },
  51. jquery: {
  52. exports: 'jQuery'
  53. },
  54. // simple dependency declaration
  55. 'jquery-ui': ['jquery'],
  56. 'jquery.flot': ['jquery'],
  57. 'jquery.flot.pie': ['jquery', 'jquery.flot'],
  58. 'jquery.flot.selection':['jquery', 'jquery.flot'],
  59. 'jquery.flot.stack': ['jquery', 'jquery.flot'],
  60. 'jquery.flot.stackpercent':['jquery', 'jquery.flot'],
  61. 'jquery.flot.time': ['jquery', 'jquery.flot'],
  62. 'angular-sanitize': ['angular'],
  63. 'angular-cookies': ['angular'],
  64. 'angular-dragdrop': ['jquery','jquery-ui','angular'],
  65. 'angular-loader': ['angular'],
  66. 'angular-mocks': ['angular'],
  67. 'angular-resource': ['angular'],
  68. 'angular-route': ['angular'],
  69. 'angular-touch': ['angular'],
  70. 'angular-strap': ['angular', 'bootstrap','timepicker', 'datepicker'],
  71. timepicker: ['jquery', 'bootstrap'],
  72. datepicker: ['jquery', 'bootstrap'],
  73. elasticjs: ['angular', '../vendor/elasticjs/elastic']
  74. }
  75. });