Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
aa7483a8
Commit
aa7483a8
authored
Dec 22, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial work on allowing a headless build
parent
3cf7fefa
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
8 deletions
+39
-8
Makefile
Makefile
+6
-0
src/converse-mam.js
src/converse-mam.js
+2
-2
src/headless.js
src/headless.js
+23
-0
src/inverse.js
src/inverse.js
+8
-6
No files found.
Makefile
View file @
aa7483a8
...
...
@@ -171,6 +171,8 @@ transpile: stamp-npm src
BUILDS
=
dist/converse.js
\
dist/converse.min.js
\
dist/converse-headless.js
\
dist/converse-headless.min.js
\
dist/converse-muc-embedded.js
\
dist/converse-muc-embedded.min.js
\
dist/converse-no-jquery.js
\
...
...
@@ -185,6 +187,10 @@ dist/converse.js: transpile src node_modules
$(RJS)
-o
src/build.js
include
=
converse
out
=
dist/converse.js
optimize
=
none
dist/converse.min.js
:
transpile src node_modules
$(RJS)
-o
src/build.js
include
=
converse
out
=
dist/converse.min.js
dist/converse-headless.js
:
transpile src node_modules
$(RJS)
-o
src/build.js paths.converse
=
src/headless
include
=
converse
out
=
dist/converse-headless.js
optimize
=
none
dist/converse-headless.min.js
:
transpile src node_modules
$(RJS)
-o
src/build.js paths.converse
=
src/headless
include
=
converse
out
=
dist/converse-headless.min.js
dist/converse-esnext.js
:
src node_modules
$(RJS)
-o
src/build-esnext.js
include
=
converse
out
=
dist/converse-esnext.js
optimize
=
none
dist/converse-esnext.min.js
:
src node_modules
...
...
src/converse-mam.js
View file @
aa7483a8
...
...
@@ -13,8 +13,6 @@
"
converse-core
"
,
"
utils
"
,
"
converse-disco
"
,
"
converse-chatview
"
,
// Could be made a soft dependency
"
converse-muc
"
,
// Could be made a soft dependency
"
strophe.rsm
"
],
factory
);
}(
this
,
function
(
sizzle
,
converse
,
utils
)
{
...
...
@@ -29,6 +27,8 @@
converse
.
plugins
.
add
(
'
converse-mam
'
,
{
optional_dependencies
:
[
'
converse-chatview
'
,
'
converse-muc
'
],
overrides
:
{
// Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the
...
...
src/headless.js
0 → 100644
View file @
aa7483a8
/* Inverse.js components configuration
*
* This file is used to tell require.js which components (or plugins) to load
* when it generates a build of inverse.js (in dist/inverse.js)
*/
if
(
typeof
define
!==
'
undefined
'
)
{
// 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.
*/
"
converse-chatboxes
"
,
// Backbone Collection and Models for chat boxes
"
converse-disco
"
,
// Service discovery plugin
"
converse-mam
"
,
// XEP-0313 Message Archive Management
"
converse-ping
"
,
// XEP-0199 XMPP Ping
"
converse-vcard
"
,
// XEP-0054 VCard-temp
/* END: Removable components */
],
function
(
converse
)
{
return
converse
;
});
}
src/inverse.js
View file @
aa7483a8
...
...
@@ -11,18 +11,20 @@ if (typeof define !== 'undefined') {
* --------------------
* Any of the following components may be removed if they're not needed.
*/
"
converse-bookmarks
"
,
// XEP-0048 Bookmarks
"
converse-chatboxes
"
,
// Backbone Collection and Models for chat boxes
"
converse-chatview
"
,
// Renders standalone chat boxes for single user chat
"
converse-controlbox
"
,
// The control box
"
converse-
bookmarks
"
,
// XEP-0048 Bookmarks
"
converse-
roomslist
"
,
// Show currently open chat room
s
"
converse-
disco
"
,
// Service discovery plugin
"
converse-
headline
"
,
// Support for headline message
s
"
converse-mam
"
,
// XEP-0313 Message Archive Management
"
converse-muc
"
,
// XEP-0045 Multi-user chat
"
converse-
vcard
"
,
// XEP-0054 VCard-temp
"
converse-
notification
"
,
// HTML5 Notifications
"
converse-otr
"
,
// Off-the-record encryption for one-on-one messages
"
converse-register
"
,
// XEP-0077 In-band registration
"
converse-ping
"
,
// XEP-0199 XMPP Ping
"
converse-notification
"
,
// HTML5 Notifications
"
converse-headline
"
,
// Support for headline messages
"
converse-register
"
,
// XEP-0077 In-band registration
"
converse-roomslist
"
,
// Show currently open chat rooms
"
converse-vcard
"
,
// XEP-0054 VCard-temp
/* END: Removable components */
"
converse-inverse
"
,
// Inverse plugin for converse.js
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment