Commit 44e7275d authored by Johan Oudinet's avatar Johan Oudinet Committed by JC Brand

Makefile: Fix .min.css filename and include headless variant in assets

Also include the unminified versions for people who wants to modify
them.
parent 50168061
...@@ -100,10 +100,14 @@ release: ...@@ -100,10 +100,14 @@ release:
make po2json make po2json
make build make build
mkdir -p 'converse-assets-$(VERSION)' mkdir -p 'converse-assets-$(VERSION)'
$(INSTALL) -D dist/converse.js 'converse-assets-$(VERSION)/converse.js'
$(INSTALL) -D dist/converse.min.js 'converse-assets-$(VERSION)/converse.min.js' $(INSTALL) -D dist/converse.min.js 'converse-assets-$(VERSION)/converse.min.js'
$(INSTALL) -D dist/converse.min.js.map 'converse-assets-$(VERSION)/converse.min.js.map' $(INSTALL) -D dist/converse.min.js.map 'converse-assets-$(VERSION)/converse.min.js.map'
$(INSTALL) -D css/converse.min.css \ $(INSTALL) -D dist/converse-headless.js 'converse-assets-$(VERSION)/converse-headless.js'
'converse-assets-$(VERSION)/css/converse.css' $(INSTALL) -D dist/converse-headless.min.js 'converse-assets-$(VERSION)/converse-headless.min.js'
$(INSTALL) -D dist/converse-headless.min.js.map 'converse-assets-$(VERSION)/converse-headless.min.js.map'
$(INSTALL) -D css/converse.css 'converse-assets-$(VERSION)/css/converse.css'
$(INSTALL) -D css/converse.min.css 'converse-assets-$(VERSION)/css/converse.min.css'
cp -r css/webfonts 'converse-assets-$(VERSION)/css/' cp -r css/webfonts 'converse-assets-$(VERSION)/css/'
cp -r sounds 'converse-assets-$(VERSION)/' cp -r sounds 'converse-assets-$(VERSION)/'
find locale -type f -name '*.json' \ find locale -type f -name '*.json' \
...@@ -125,7 +129,7 @@ stamp-npm: $(LERNA) package.json package-lock.json src/headless/package.json ...@@ -125,7 +129,7 @@ stamp-npm: $(LERNA) package.json package-lock.json src/headless/package.json
.PHONY: clean .PHONY: clean
clean: clean:
rm -rf node_modules stamp-npm rm -rf node_modules stamp-npm
rm -f dist/*.min.js rm -f dist/*.min.js*
rm -f css/*.min.css rm -f css/*.min.css
rm -f css/*.map rm -f css/*.map
rm -f css/*.zip rm -f css/*.zip
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment