config.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. require.config({
  2. baseUrl: ".",
  3. include: "xabber",
  4. out: "dist/xabber.js",
  5. paths: {
  6. // external libs
  7. "backbone": "node_modules/backbone/backbone",
  8. "underscore": "node_modules/underscore/underscore",
  9. "jquery": "node_modules/jquery/dist/jquery",
  10. "moment": "node_modules/moment/min/moment-with-locales.min",
  11. "moment-locales": "node_modules/moment/min/locales.min",
  12. "perfectScrollbarJQuery": "node_modules/perfect-scrollbar/dist/js/perfect-scrollbar.jquery",
  13. "strophe": "node_modules/strophe.js/strophe",
  14. "strophe.disco": "node_modules/strophejs-plugins/disco/strophe.disco",
  15. "strophe.ping": "node_modules/strophejs-plugins/ping/strophe.ping",
  16. "strophe.rsm": "node_modules/strophejs-plugins/rsm/strophe.rsm",
  17. "text": "node_modules/requirejs-text/text",
  18. "wavesurfer": "node_modules/wavesurfer/dist/wavesurfer",
  19. "slug": "node_modules/slug/slug",
  20. "sha256": "node_modules/js-sha256/src/sha256",
  21. "magnific-popup": "node_modules/magnific-popup/dist/jquery.magnific-popup",
  22. "i18next": "node_modules/i18next/i18next.min",
  23. // modified libs and plugins
  24. "backbone.localsync": "src/lib/backbone.localsync",
  25. "hammerjs": "src/lib/hammer.min",
  26. "materialize": "src/lib/materialize",
  27. "strophe.caps": "src/lib/strophe.caps",
  28. "strophe.pubsub": "src/lib/strophe.pubsub",
  29. "sha1_hasher": "src/lib/sha1.min",
  30. "omemo": "src/lib/omemo",
  31. "qrcode": "src/lib/VanillaQR.min",
  32. "i18next-post": "src/lib/i18nextSprintfPostProcessor.min",
  33. // Xabber sources
  34. "xabber-version": "version",
  35. "xabber-dependencies": "src/dependencies",
  36. "xabber-templates": "src/templates",
  37. "xabber-constants": "src/constants",
  38. "xabber-utils": "src/utils/utils",
  39. "xabber-textarea-utils": "src/utils/textarea",
  40. "xabber-emoji-utils": "src/utils/emoji",
  41. "xabber-image-utils": "src/utils/images",
  42. "xabber-modal-utils": "src/utils/modals",
  43. "xabber-environment": "src/environment",
  44. "xabber-core": "src/core",
  45. "xabber-views": "src/views",
  46. "xabber-api-service": "src/api-service",
  47. "xabber-strophe": "src/strophe",
  48. "xabber-accounts": "src/accounts",
  49. "xabber-discovery": "src/discovery",
  50. "xabber-vcard": "src/vcard",
  51. "xabber-contacts": "src/contacts",
  52. "xabber-chats": "src/chats",
  53. "xabber-searching": "src/searching",
  54. "xabber-mentions": "src/mentions",
  55. "xabber-ui": "src/ui",
  56. "xabber-omemo": "src/omemo",
  57. "xabber-translations-info": "translations/translation_progress",
  58. // main file
  59. "xabber": "src/xabber"
  60. }
  61. });