Add make recipes for zip files of webfonts and locales

This commit is contained in:
JC Brand 2018-10-29 21:42:26 +01:00
parent 6bab16d834
commit 9a4bceba60
3 changed files with 21 additions and 15 deletions

View File

@ -15,7 +15,7 @@ OXIPNG ?= oxipng
PAPER = PAPER =
PO2JSON ?= ./node_modules/.bin/po2json PO2JSON ?= ./node_modules/.bin/po2json
RJS ?= ./node_modules/.bin/r.js RJS ?= ./node_modules/.bin/r.js
WEBPACK ?= ./node_modules/.bin/npx NPX ?= ./node_modules/.bin/npx
SASS ?= ./node_modules/.bin/node-sass SASS ?= ./node_modules/.bin/node-sass
SED ?= sed SED ?= sed
SPHINXBUILD ?= ./bin/sphinx-build SPHINXBUILD ?= ./bin/sphinx-build
@ -143,11 +143,11 @@ watchcss: dev
.PHONY: watchjs .PHONY: watchjs
watchjs: dev dist/converse-headless.js watchjs: dev dist/converse-headless.js
./node_modules/.bin/npx webpack --mode=development --watch $(NPX) webpack --mode=development --watch
.PHONY: watchjsheadless .PHONY: watchjsheadless
watchjsheadless: dev watchjsheadless: dev
./node_modules/.bin/npx webpack --mode=development --watch --type=headless $(NPX) webpack --mode=development --watch --type=headless
.PHONY: watch .PHONY: watch
watch: dev watch: dev
@ -182,19 +182,19 @@ BUILDS = dist/converse.js \
dist/converse-no-dependencies-es2015.js dist/converse-no-dependencies-es2015.js
dist/converse.js: src webpack.config.js stamp-npm @converse/headless dist/converse.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=development $(NPX) webpack --mode=development
dist/converse.min.js: src webpack.config.js stamp-npm @converse/headless dist/converse.min.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=production $(NPX) webpack --mode=production
dist/converse-headless.js: src webpack.config.js stamp-npm @converse/headless dist/converse-headless.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=development --type=headless $(NPX) webpack --mode=development --type=headless
dist/converse-headless.min.js: src webpack.config.js stamp-npm @converse/headless dist/converse-headless.min.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=production --type=headless $(NPX) webpack --mode=production --type=headless
dist/converse-no-dependencies.js: src webpack.config.js stamp-npm @converse/headless dist/converse-no-dependencies.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=development --type=nodeps $(NPX) webpack --mode=development --type=nodeps
dist/converse-no-dependencies.min.js: src webpack.config.js stamp-npm @converse/headless dist/converse-no-dependencies.min.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=production --type=nodeps $(NPX) webpack --mode=production --type=nodeps
dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @converse/headless dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @converse/headless
./node_modules/.bin/npx webpack --mode=development --type=nodeps --lang=es2015 $(NPX) webpack --mode=development --type=nodeps --lang=es2015
@converse/headless: src/headless @converse/headless: src/headless
@ -202,7 +202,13 @@ dist/converse-no-dependencies-es2015.js: src webpack.config.js stamp-npm @conver
dist:: build dist:: build
.PHONY: build .PHONY: build
build:: dev css $(BUILDS) build:: dev css $(BUILDS) locale.zip css/webfonts.zip
css/webfonts.zip: css/webfonts/*
zip -r css/webfonts.zip css/webfonts
locales.zip:
zip -r locale.zip locale --exclude *.pot --exclude *.po
######################################################################## ########################################################################
## Tests ## Tests

View File

@ -34,7 +34,7 @@
</div> </div>
<div class="chat-body chatroom-body row no-gutters"> <div class="chat-body chatroom-body row no-gutters">
<div class="chat-area"> <div class="chat-area col-md-9 col-8">
<div class="chat-content"> <div class="chat-content">
<div class="message date-separator"> <div class="message date-separator">
<hr class="separator"> <hr class="separator">

View File

@ -1625,9 +1625,9 @@
})); }));
it("will render Openstreetmap-URL from geo-URI", it("will render Openstreetmap-URL from geo-URI",
mock.initConverseWithPromises( mock.initConverseWithPromises(
null, ['rosterGroupsFetched', 'chatBoxesFetched'], {}, null, ['rosterGroupsFetched', 'chatBoxesFetched'], {},
function (done, _converse) { function (done, _converse) {
test_utils.createContacts(_converse, 'current'); test_utils.createContacts(_converse, 'current');
_converse.emit('rosterContactsFetched'); _converse.emit('rosterContactsFetched');