require_config.js 3.2 KB

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