Brocfile.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* global require, module */
  2. var EmberApp = require('ember-cli/lib/broccoli/ember-app');
  3. var app = new EmberApp({
  4. storeConfigInMeta: false,
  5. fingerprint: {
  6. enabled: false
  7. },
  8. vendorFiles: {
  9. 'handlebars.js': null
  10. },
  11. outputPaths: {
  12. app: {
  13. html: 'index.html',
  14. css: {
  15. 'app': 'misago/css/misago.css'
  16. },
  17. js: 'misago/js/misago.js'
  18. },
  19. vendor: {
  20. css: 'misago/css/vendor.css',
  21. js: 'misago/js/vendor.js'
  22. }
  23. }
  24. });
  25. // Use `app.import` to add additional libraries to the generated
  26. // output files.
  27. //
  28. // If you need to use different assets in different
  29. // environments, specify an object as the first parameter. That
  30. // object's keys should be the environment name and the values
  31. // should be the asset to use in that environment.
  32. //
  33. // If the library that you are including contains AMD or ES6
  34. // modules that you would like to import into your application
  35. // please specify an object with the list of modules as keys
  36. // along with the exports of each module as its value.
  37. app.import('vendor/bootstrap/transition.js');
  38. app.import('vendor/bootstrap/affix.js');
  39. app.import('vendor/bootstrap/dropdown.js');
  40. app.import('vendor/bootstrap/modal.js');
  41. if (app.env === 'production') {
  42. app.import('bower_components/moment/moment.js');
  43. } else {
  44. app.import('bower_components/moment/min/moment-with-locales.js');
  45. }
  46. app.import('vendor/testutils/jquery.mockjax.js', { type: 'test' });
  47. app.import('vendor/testutils/django-js-catalog.js', { type: 'test' });
  48. app.import('vendor/testutils/misago-preload-data.js', { type: 'test' });
  49. module.exports = app.toTree();