require.config.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. require.config({
  2. urlArgs: 'bust=' + (new Date().getTime()),
  3. baseUrl: 'public/app',
  4. paths: {
  5. config: 'components/config',
  6. settings: 'components/settings',
  7. kbn: 'components/kbn',
  8. store: 'components/store',
  9. text: '../vendor/requirejs-text/text',
  10. moment: '../vendor/moment',
  11. filesaver: '../vendor/filesaver',
  12. ZeroClipboard: '../vendor/ZeroClipboard',
  13. angular: '../vendor/angular/angular',
  14. 'angular-route': '../vendor/angular-route/angular-route',
  15. 'angular-sanitize': '../vendor/angular-sanitize/angular-sanitize',
  16. 'angular-dragdrop': '../vendor/angular-native-dragdrop/draganddrop',
  17. 'angular-strap': '../vendor/angular-other/angular-strap',
  18. timepicker: '../vendor/angular-other/timepicker',
  19. datepicker: '../vendor/angular-other/datepicker',
  20. bindonce: '../vendor/angular-bindonce/bindonce',
  21. crypto: '../vendor/crypto.min',
  22. spectrum: '../vendor/spectrum',
  23. lodash: 'components/lodash.extended',
  24. 'lodash-src': '../vendor/lodash',
  25. bootstrap: '../vendor/bootstrap/bootstrap',
  26. jquery: '../vendor/jquery/dist/jquery',
  27. 'extend-jquery': 'components/extend-jquery',
  28. 'jquery.flot': '../vendor/flot/jquery.flot',
  29. 'jquery.flot.pie': '../vendor/flot/jquery.flot.pie',
  30. 'jquery.flot.events': '../vendor/flot/jquery.flot.events',
  31. 'jquery.flot.selection': '../vendor/flot/jquery.flot.selection',
  32. 'jquery.flot.stack': '../vendor/flot/jquery.flot.stack',
  33. 'jquery.flot.stackpercent':'../vendor/flot/jquery.flot.stackpercent',
  34. 'jquery.flot.time': '../vendor/flot/jquery.flot.time',
  35. 'jquery.flot.crosshair': '../vendor/flot/jquery.flot.crosshair',
  36. 'jquery.flot.fillbelow': '../vendor/flot/jquery.flot.fillbelow',
  37. modernizr: '../vendor/modernizr-2.6.1',
  38. 'bootstrap-tagsinput': '../vendor/tagsinput/bootstrap-tagsinput',
  39. },
  40. shim: {
  41. spectrum: {
  42. deps: ['jquery']
  43. },
  44. crypto: {
  45. exports: 'Crypto'
  46. },
  47. ZeroClipboard: {
  48. exports: 'ZeroClipboard'
  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. });