Release 10.1.5
Found another bug while trying to make the release. Running `npm run nodeps` last breaks dynamic importing of the DayJS translations. I'm not sure why, I think maybe because of broken `.map` files. The fix for now is to move the js-po files out of the way, and then copy them back in after running `npm run build`. Hopefully all of this won't be necessary with gettext 0.22 which should support template literals
This commit is contained in:
parent
5e02b9bd5d
commit
c30569dfd3
14
Makefile
14
Makefile
@ -205,12 +205,16 @@ src/headless/dist/converse-headless.min.js: src webpack/webpack.common.js node_m
|
|||||||
|
|
||||||
dist:: node_modules src/* | dist/website.css dist/website.min.css
|
dist:: node_modules src/* | dist/website.css dist/website.min.css
|
||||||
npm run headless
|
npm run headless
|
||||||
npm run build
|
# Ideally this should just be `npm run nodeps`.
|
||||||
# This step is necessary to properly generate JSON files from the .po
|
# The additional steps are necessary to properly generate JSON files from
|
||||||
# files. The nodeps config uses preset-env with IE11 to turn all template
|
# the .po files. The nodeps config uses preset-env with IE11 to turn all
|
||||||
# literals into old JS strings, which is required because gettext 0.21
|
# template literals into old JS strings, which is required because
|
||||||
# doesn't support template literals.
|
# gettext 0.21 doesn't support template literals.
|
||||||
npm run nodeps
|
npm run nodeps
|
||||||
|
mkdir tmp && mv dist/locales tmp
|
||||||
|
npm run build
|
||||||
|
cp tmp/locales/*-po.js dist/locales/
|
||||||
|
rm -rf tmp
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:: dist
|
install:: dist
|
||||||
|
Loading…
Reference in New Issue
Block a user