require.config.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. * Bootstrap require with the needed config, then load the app.js module.
  3. */
  4. require.config({
  5. baseUrl: '/public/app',
  6. paths: {
  7. app: 'p_app',
  8. config: ['../../frontend/config'],
  9. settings: 'components/settings',
  10. kbn: 'components/kbn',
  11. store: 'components/store',
  12. css: '../vendor/require/css',
  13. text: '../vendor/require/text',
  14. moment: '../vendor/moment',
  15. filesaver: '../vendor/filesaver',
  16. angular: '../vendor/angular/angular',
  17. 'angular-route': '../vendor/angular/angular-route',
  18. 'angular-sanitize': '../vendor/angular/angular-sanitize',
  19. 'angular-dragdrop': '../vendor/angular/angular-dragdrop',
  20. 'angular-strap': '../vendor/angular/angular-strap',
  21. timepicker: '../vendor/angular/timepicker',
  22. datepicker: '../vendor/angular/datepicker',
  23. bindonce: '../vendor/angular/bindonce',
  24. crypto: '../vendor/crypto.min',
  25. spectrum: '../vendor/spectrum',
  26. lodash: 'components/lodash.extended',
  27. 'lodash-src': '../vendor/lodash',
  28. bootstrap: '../vendor/bootstrap/bootstrap',
  29. jquery: '../vendor/jquery/jquery-2.1.1.min',
  30. 'extend-jquery': 'components/extend-jquery',
  31. 'jquery.flot': '../vendor/jquery/jquery.flot',
  32. 'jquery.flot.pie': '../vendor/jquery/jquery.flot.pie',
  33. 'jquery.flot.events': '../vendor/jquery/jquery.flot.events',
  34. 'jquery.flot.selection': '../vendor/jquery/jquery.flot.selection',
  35. 'jquery.flot.stack': '../vendor/jquery/jquery.flot.stack',
  36. 'jquery.flot.stackpercent':'../vendor/jquery/jquery.flot.stackpercent',
  37. 'jquery.flot.time': '../vendor/jquery/jquery.flot.time',
  38. 'jquery.flot.crosshair': '../vendor/jquery/jquery.flot.crosshair',
  39. 'jquery.flot.fillbelow': '../vendor/jquery/jquery.flot.fillbelow',
  40. modernizr: '../vendor/modernizr-2.6.1',
  41. 'bootstrap-tagsinput': '../vendor/tagsinput/bootstrap-tagsinput',
  42. },
  43. shim: {
  44. spectrum: {
  45. deps: ['jquery']
  46. },
  47. crypto: {
  48. exports: 'Crypto'
  49. },
  50. angular: {
  51. deps: ['jquery','config'],
  52. exports: 'angular'
  53. },
  54. bootstrap: {
  55. deps: ['jquery']
  56. },
  57. modernizr: {
  58. exports: 'Modernizr'
  59. },
  60. jquery: {
  61. exports: 'jQuery'
  62. },
  63. // simple dependency declaration
  64. //
  65. 'jquery.flot': ['jquery'],
  66. 'jquery.flot.pie': ['jquery', 'jquery.flot'],
  67. 'jquery.flot.events': ['jquery', 'jquery.flot'],
  68. 'jquery.flot.selection':['jquery', 'jquery.flot'],
  69. 'jquery.flot.stack': ['jquery', 'jquery.flot'],
  70. 'jquery.flot.stackpercent':['jquery', 'jquery.flot'],
  71. 'jquery.flot.time': ['jquery', 'jquery.flot'],
  72. 'jquery.flot.crosshair':['jquery', 'jquery.flot'],
  73. 'jquery.flot.fillbelow':['jquery', 'jquery.flot'],
  74. 'angular-dragdrop': ['jquery', 'angular'],
  75. 'angular-mocks': ['angular'],
  76. 'angular-sanitize': ['angular'],
  77. 'angular-route': ['angular'],
  78. 'angular-strap': ['angular', 'bootstrap','timepicker', 'datepicker'],
  79. 'bindonce': ['angular'],
  80. timepicker: ['jquery', 'bootstrap'],
  81. datepicker: ['jquery', 'bootstrap'],
  82. 'bootstrap-tagsinput': ['jquery'],
  83. },
  84. waitSeconds: 60,
  85. });