brunch-config.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. module.exports.config = {
  19. plugins: {
  20. babel: {
  21. ignore: [
  22. /^(vendor|app\/data|app\/assets|test)/
  23. ],
  24. pattern: /\.(js)$/
  25. },
  26. assetsmanager: {
  27. copyTo: {
  28. 'stylesheets/fonts' : ['vendor/theme/fonts/*'],
  29. 'api-docs' : ['api-docs/*']
  30. }
  31. }
  32. },
  33. files: {
  34. javascripts: {
  35. joinTo: {
  36. 'javascripts/app.js': /^app/,
  37. 'javascripts/vendor.js': /^vendor/,
  38. 'test/javascripts/test.js': /^test(\/|\\)(?!vendor)/,
  39. 'test/javascripts/test-vendor.js': /^test(\/|\\)(?=vendor)/
  40. },
  41. order: {
  42. before: [
  43. 'vendor/scripts/console-helper.js',
  44. 'vendor/scripts/jquery-1.9.1.js',
  45. 'vendor/scripts/jquery-migrate.js',
  46. 'vendor/scripts/handlebars-1.0.0.beta.6.js',
  47. 'vendor/scripts/ember-latest.js',
  48. 'vendor/scripts/ember-data-latest.js',
  49. 'vendor/scripts/ember-i18n-1.4.1.js',
  50. 'vendor/scripts/bootstrap.js',
  51. 'vendor/scripts/bootstrap-combobox.js',
  52. 'vendor/scripts/bootstrap-slider.min.js',
  53. 'vendor/scripts/bootstrap-switch.min.js',
  54. 'vendor/scripts/d3.v2.js',
  55. 'vendor/scripts/cubism.v1.js',
  56. 'vendor/scripts/jquery.ui.core.js',
  57. 'vendor/scripts/jquery.ui.position.js',
  58. 'vendor/scripts/jquery.ui.widget.js',
  59. 'vendor/scripts/jquery.ui.autocomplete.js',
  60. 'vendor/scripts/jquery.ui.mouse.js',
  61. 'vendor/scripts/jquery.ui.datepicker.js',
  62. 'vendor/scripts/jquery-ui-timepicker-addon.js',
  63. 'vendor/scripts/jquery.ui.slider.js',
  64. 'vendor/scripts/jquery.ui.sortable.js',
  65. 'vendor/scripts/jquery.ui.custom-effects.js',
  66. 'vendor/scripts/jquery.timeago.js',
  67. 'vendor/scripts/jquery.ajax-retry.js',
  68. 'vendor/scripts/jquery.sticky-kit.js',
  69. 'vendor/scripts/jquery.typeahead.js',
  70. 'vendor/scripts/underscore.js',
  71. 'vendor/scripts/backbone.js',
  72. 'vendor/scripts/difflib.js',
  73. 'vendor/scripts/diffview.js',
  74. 'vendor/scripts/visualsearch.js',
  75. 'vendor/scripts/moment.min.js',
  76. 'vendor/scripts/moment-timezone-with-data-2010-2020.js',
  77. 'vendor/scripts/workflow_visualization.js',
  78. 'vendor/scripts/rickshaw.js',
  79. 'vendor/scripts/spin.js',
  80. 'vendor/scripts/jquery.flexibleArea.js',
  81. 'vendor/scripts/FileSaver.js',
  82. 'vendor/scripts/Blob.js',
  83. 'vendor/scripts/pluralize.js',
  84. 'vendor/scripts/sockjs.min.js',
  85. 'vendor/scripts/stomp.min.js',
  86. 'vendor/scripts/theme/bootstrap-ambari.js'
  87. ]
  88. }
  89. },
  90. stylesheets: {
  91. defaultExtension: 'css',
  92. joinTo: {
  93. 'stylesheets/app.css': /^app/,
  94. 'stylesheets/vendor.css': /^vendor/
  95. },
  96. order: {
  97. before: [
  98. 'app/styles/theme/bootstrap-ambari.css',
  99. 'vendor/styles/bootstrap.css',
  100. 'vendor/styles/font-awesome.css',
  101. 'vendor/styles/font-awesome-ie7.css',
  102. 'vendor/styles/cubism.css',
  103. 'vendor/styles/rickshaw.css',
  104. 'vendor/styles/bootstrap-combobox.css',
  105. 'vendor/styles/bootstrap-slider.min.css',
  106. 'vendor/styles/bootstrap-switch.min.css',
  107. 'vendor/styles/diffview.css',
  108. 'vendor/styles/visualsearch-datauri.css'
  109. ],
  110. after: [
  111. 'app/styles/custom-ui.css'
  112. ]
  113. }
  114. },
  115. templates: {
  116. precompile: true,
  117. defaultExtensions: ['hbs'],
  118. joinTo: {'javascripts/app.js': /^app/},
  119. paths: {
  120. jquery: 'vendor/scripts/jquery-1.9.1.js',
  121. handlebars: 'vendor/scripts/handlebars-1.0.0.beta.6.js',
  122. ember: 'vendor/scripts/ember-latest.js'
  123. }
  124. }
  125. },
  126. server: {
  127. port: 3333,
  128. base: '/',
  129. run: 'no'
  130. },
  131. sourceMaps: false
  132. };