common-config.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. require.config({
  2. baseUrl: 'js/lib',
  3. paths: {
  4. 'app': '../app',
  5. // lib paths
  6. 'bootstrap': 'bootstrap.min',
  7. 'jquery': 'jquery-1.10.2.min',
  8. 'marionette': 'backbone.marionette',
  9. 'sprintf': 'sprintf-0.7-beta1',
  10. 'datatables': 'jquery.dataTables.min',
  11. 'yasqe': 'yasqe.min',
  12. 'yasr': 'yasr.min',
  13. 'pivottable': 'pivot.min',
  14. 'jquery-ui': 'jquery-ui.min'
  15. },
  16. map: {
  17. '*': {
  18. 'codemirror': 'lib/codemirror',
  19. 'jquery.dataTables.min' : 'datatables',
  20. 'jquery-ui': 'jquery-ui'
  21. },
  22. },
  23. shim: {
  24. 'underscore': {
  25. exports: '_'
  26. },
  27. 'backbone': {
  28. deps: ['underscore', 'jquery'],
  29. exports: 'Backbone'
  30. },
  31. 'bootstrap': {
  32. deps: ['jquery']
  33. },
  34. 'bootstrap-select.min': {
  35. deps: ['bootstrap']
  36. },
  37. 'jquery.xdomainrequest': {
  38. deps: ['jquery']
  39. },
  40. 'jquery.dataTables.min': {
  41. deps: ['jquery']
  42. },
  43. 'jquery.form': {
  44. deps: ['jquery']
  45. },
  46. 'jquery.ui.widget': {
  47. deps: ['jquery']
  48. },
  49. 'qonsole': {
  50. deps: ['yasqe', 'yasr'],
  51. exports: 'qonsole'
  52. },
  53. 'yasqe': {
  54. deps: ['jquery', 'lib/codemirror'],
  55. exports: 'YASQE'
  56. },
  57. 'yasr': {
  58. // deps: ['pivottable', 'jquery', 'lib/codemirror', 'datatables'],
  59. deps: ['jquery', 'lib/codemirror', 'datatables'],
  60. exports: 'YASR'
  61. },
  62. 'pivottable': {
  63. deps: ['jquery-ui']
  64. },
  65. 'jquery-ui': {
  66. deps: ['jquery']
  67. },
  68. 'jquery.fileupload': {
  69. deps: ['jquery.fileupload.local', 'jquery.iframe-transport', 'jquery.ui.widget']
  70. },
  71. 'jquery.fileupload.local': {
  72. deps: ['jquery']
  73. },
  74. 'jquery.iframe-transport': {
  75. deps: ['jquery']
  76. },
  77. 'sprintf': {
  78. exports: 'sprintf'
  79. },
  80. 'marionette': {
  81. deps: ['backbone'],
  82. exports: 'Marionette'
  83. },
  84. 'addon/fold/foldcode': {deps: ['lib/codemirror']},
  85. 'addon/fold/brace-fold': {deps: ['addon/fold/foldcode']},
  86. 'addon/fold/comment-fold': {deps: ['addon/fold/foldcode']},
  87. 'addon/fold/foldgutter': {deps: ['addon/fold/foldcode']},
  88. 'addon/fold/xml-fold': {deps: ['addon/fold/foldcode']},
  89. 'mode/javascript/javascript': {deps: ['lib/codemirror']},
  90. 'mode/sparql/sparql': {deps: ['lib/codemirror']},
  91. 'mode/xml/xml': {deps: ['lib/codemirror']},
  92. 'mode/turtle/turtle': {deps: ['lib/codemirror']}
  93. }
  94. });