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
e9e17cb2
Commit
e9e17cb2
authored
Apr 23, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1543
parent
ad8d4c90
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
599 deletions
+46
-599
Makefile
Makefile
+19
-15
dist/converse.js
dist/converse.js
+27
-580
src/converse.js
src/converse.js
+0
-2
webpack.config.js
webpack.config.js
+0
-2
No files found.
Makefile
View file @
e9e17cb2
...
...
@@ -35,7 +35,7 @@ all: dev dist
help
:
@
echo
"Please use
\`
make <target>' where <target> is one of the following:"
@
echo
""
@
echo
" all
A synonym for 'make dev'."
@
echo
" all
Set up dev environment and create all builds
@
echo "
build Create minified builds of converse.js and all its dependencies.
"
@
echo "
clean Remove all NPM packages.
"
@
echo "
check Run all tests.
"
...
...
@@ -57,11 +57,11 @@ help:
## Miscellaneous
.PHONY
:
serve
serve
:
dev
serve
:
stamp-npm
$(HTTPSERVE)
-p
$(HTTPSERVE_PORT)
-c-1
.PHONY
:
serve_bg
serve_bg
:
dev
serve_bg
:
stamp-npm
$(HTTPSERVE)
-p
$(HTTPSERVE_PORT)
-c-1
-s
&
########################################################################
...
...
@@ -142,32 +142,36 @@ dev: stamp-npm
## Builds
.PHONY
:
css
css
:
dev
sass/*.scss css/converse.css css/converse.min.css css/website.css css/website.min.css css/font-awesome.css
css
:
sass/*.scss css/converse.css css/converse.min.css css/website.css css/website.min.css css/font-awesome.css
css/converse.css
::
dev
webpack.config.js sass
$(NPX)
webpack
--type
=
css
css/converse.css
::
stamp-npm
webpack.config.js sass
$(NPX)
webpack
--type
=
css
--mode
=
development
css/website.css
::
dev
sass
css/website.css
::
stamp-npm
sass
$(SASS)
--source-map
true
--include-path
$(BOURBON)
--include-path
$(BOOTSTRAP)
sass/website.scss
$@
css/font-awesome.css
::
dev
sass
css/font-awesome.css
::
stamp-npm
sass
$(SASS)
--source-map
true
--include-path
$(BOURBON)
--include-path
$(BOOTSTRAP)
sass/font-awesome.scss
$@
css/%.min.css
::
css/%.css
make
dev
make
stamp-npm
$(CLEANCSS)
$<
>
$@
.PHONY
:
watchcss
watchcss
:
stamp-npm
$(NPX)
webpack
--type
=
css
--mode
=
development
--watch
.PHONY
:
watchjs
watchjs
:
dev
src/headless/dist/converse-headless.js
watchjs
:
stamp-npm
src/headless/dist/converse-headless.js
$(NPX)
webpack
--mode
=
development
--watch
.PHONY
:
watchjsheadless
watchjsheadless
:
dev
watchjsheadless
:
stamp-npm
$(NPX)
webpack
--mode
=
development
--watch
--type
=
headless
.PHONY
:
watch
watch
:
dev
make
-j
2
watchjsheadless watchjs
watch
:
stamp-npm
make
-j
3 watchcss
watchjsheadless watchjs
.PHONY
:
logo
logo
:
logo/conversejs-transparent16.png
\
...
...
@@ -218,7 +222,7 @@ dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @conver
dist
::
build
.PHONY
:
build
build
::
dev
css $(BUILDS)
build
::
stamp-npm
css $(BUILDS)
########################################################################
## Tests
...
...
@@ -248,7 +252,7 @@ check: eslint dist/converse.js
docsdev
:
./bin/activate .installed.cfg
.PHONY
:
html
html
:
dev
docsdev apidoc
html
:
stamp-npm
docsdev apidoc
rm
-rf
$(BUILDDIR)
/html
$(SPHINXBUILD)
-b
html
$(ALLSPHINXOPTS)
$(BUILDDIR)
/html
make apidoc
...
...
dist/converse.js
View file @
e9e17cb2
This diff is collapsed.
Click to expand it.
src/converse.js
View file @
e9e17cb2
...
...
@@ -3,8 +3,6 @@
* Any of the following components may be removed if they're not needed.
*/
import
'
../sass/converse.scss
'
;
import
"
@converse/headless/converse-caps
"
;
// XEP-0115 Entity Capabilities
import
"
@converse/headless/converse-mam
"
;
// XEP-0313 Message Archive Management
import
"
@converse/headless/converse-ping
"
;
// XEP-0199 XMPP Ping
...
...
webpack.config.js
View file @
e9e17cb2
...
...
@@ -188,9 +188,7 @@ function parameterize () {
if
(
type
===
'
css
'
)
{
console
.
log
(
"
Building only CSS
"
);
const
fn
=
config
.
output
.
filename
;
config
.
output
.
filename
=
`
${
fn
.
replace
(
/
\.
js$/
,
''
)}
.css`
;
config
.
entry
=
path
.
resolve
(
__dirname
,
'
sass/converse.scss
'
);
config
.
output
=
{
filename
:
'
../css/converse.css
'
};
}
if
(
mode
===
'
production
'
)
{
...
...
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