require.config.js 3.6 KB

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