|
@@ -1,16 +1,16 @@
|
|
|
-/* Converse.js components configuration
|
|
|
+/* Inverse.js components configuration
|
|
|
*
|
|
|
* This file is used to tell require.js which components (or plugins) to load
|
|
|
- * when it generates a build.
|
|
|
+ * when it generates a build of inverse.js (in dist/inverse.js)
|
|
|
*/
|
|
|
if (typeof define !== 'undefined') {
|
|
|
- /* When running tests, define is not defined. */
|
|
|
- define("inverse", [
|
|
|
+ // The section below determines which plugins will be included in a build
|
|
|
+ define([
|
|
|
"converse-core",
|
|
|
/* START: Removable components
|
|
|
- * --------------------
|
|
|
- * Any of the following components may be removed if they're not needed.
|
|
|
- */
|
|
|
+ * --------------------
|
|
|
+ * Any of the following components may be removed if they're not needed.
|
|
|
+ */
|
|
|
"converse-chatview", // Renders standalone chat boxes for single user chat
|
|
|
"converse-controlbox", // The control box
|
|
|
"converse-bookmarks", // XEP-0048 Bookmarks
|
|
@@ -23,14 +23,10 @@ if (typeof define !== 'undefined') {
|
|
|
"converse-ping", // XEP-0199 XMPP Ping
|
|
|
"converse-notification",// HTML5 Notifications
|
|
|
"converse-headline", // Support for headline messages
|
|
|
-
|
|
|
- "converse-inverse", // Inverse plugin for converse.js
|
|
|
/* END: Removable components */
|
|
|
|
|
|
+ "converse-inverse", // Inverse plugin for converse.js
|
|
|
], function(converse) {
|
|
|
- var $ = converse.env.jQuery;
|
|
|
- window.converse = converse;
|
|
|
- $(window).trigger('converse-loaded', converse);
|
|
|
return converse;
|
|
|
});
|
|
|
}
|