Sfoglia il codice sorgente

Use `npm run build` for the `dist` GNU Make recipe

JC Brand 3 settimane fa
parent
commit
c3b2fb7edd
1 ha cambiato i file con 2 aggiunte e 12 eliminazioni
  1. 2 12
      Makefile

+ 2 - 12
Makefile

@@ -199,20 +199,10 @@ src/headless/dist/converse-headless.js: src rspack/rspack.common.js node_modules
 	npm run dev:headless
 
 src/headless/dist/converse-headless.min.js: src rspack/rspack.common.js node_modules @converse/headless
-	npm run headless
+	npm run build:headless
 
 dist:: node_modules src/**/* | dist/website.css dist/website.min.css
-	npm run headless
-	# Ideally this should just be `npm run build`.
-	# The additional steps are necessary to properly generate JSON chunk files
-	# from the .po files. The nodeps config uses preset-env with IE11.
-	# Somehow this is necessary.
-	npm run nodeps
-	$(eval TMPD := $(shell mktemp -d))
-	mv dist/locales $(TMPD) && \
-	npm run build && \
-	mv $(TMPD)/locales/*-po.js dist/locales/ && \
-	rm -rf $(TMPD)
+	npm run build
 
 .PHONY: install
 install:: dist