gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: improve performance of 'make


From: gnunet
Subject: [taler-wallet-core] branch master updated: improve performance of 'make install'
Date: Tue, 08 Mar 2022 12:57:19 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 9c758d1f improve performance of 'make install'
9c758d1f is described below

commit 9c758d1fe9cc0f372a9f38fb757ede55b8ce5ac0
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Mar 8 12:56:30 2022 +0100

    improve performance of 'make install'
    
    We now only build workspace dependencies of taler-wallet-cli instead of
    the whole workspace.
---
 build-system/Makefile | 49 +++++++++++++++++++++++++++++++++++++------------
 1 file changed, 37 insertions(+), 12 deletions(-)

diff --git a/build-system/Makefile b/build-system/Makefile
index 92c3fefe..20c6ce88 100644
--- a/build-system/Makefile
+++ b/build-system/Makefile
@@ -1,8 +1,10 @@
 # This Makefile has been placed in the public domain.
 
 src = src
+poname = taler-wallet-webex
 
 tsc = node_modules/typescript/bin/tsc
+pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
 typedoc = node_modules/typedoc/bin/typedoc
 ava = node_modules/.bin/ava
 nyc = node_modules/nyc/bin/nyc.js
@@ -10,11 +12,6 @@ git-archive-all = 
./build-system/taler-build-scripts/archive-with-submodules/git
 
 include ./build-system/config.mk
 
-.PHONY: compile
-compile:
-       pnpm i -r --frozen-lockfile
-       pnpm run compile
-
 .PHONY: dist
 dist:
        $(git-archive-all) --include ./configure taler-wallet-$(shell git 
describe --tags --abbrev=0).tar.gz
@@ -25,7 +22,9 @@ dist-git:
        $(git-archive-all) --include ./configure taler-wallet-$(shell git 
describe --tags).tar.gz
 
 .PHONY: publish
-publish: compile
+publish:
+       pnpm i -r --frozen-lockfile
+       pnpm run compile
        pnpm publish -r --no-git-checks
 
 # make documentation from docstrings
@@ -42,24 +41,49 @@ submodules-update:
        git submodule update --recursive --remote
 
 .PHONY: check
-check: compile
+check:
+       pnpm i -r --frozen-lockfile
+       pnpm run compile
        pnpm run check
 
 .PHONY: webextensions
-webextension: compile
+webextension:
+       pnpm i -r --frozen-lockfile
+       pnpm run compile
        cd ./packages/taler-wallet-webextension/ && ./pack.sh
 
 .PHONY: webextension-dev-view
-webextension-dev-view: compile
+webextension-dev-view:
+       pnpm i -r --frozen-lockfile
+       pnpm run compile
        pnpm run --filter @gnu-taler/taler-wallet-webextension storybook
 
 .PHONY: integrationtests
 integrationtests: compile
+       pnpm i -r --frozen-lockfile
+       pnpm run compile
        ./packages/taler-integrationtests/testrunner '*'
 
 .PHONY: i18n
-i18n: compile 
-       pnpm run --filter @gnu-taler/taler-wallet-webextension i18n
+i18n: compile
+       # extract translatable strings
+       find $(src) \( -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
+         | xargs node $(pogen) \
+         | msguniq \
+         | msgmerge src/i18n/poheader - \
+         > src/i18n/$(poname).pot
+       # merge existing translations
+       @for pofile in src/i18n/*.po; do \
+         echo merging $$pofile; \
+         msgmerge -o $$pofile $$pofile src/i18n/$(poname).pot; \
+       done;
+       # generate .ts file containing all translations
+       cat src/i18n/strings-prelude > src/i18n/strings.ts
+       @for pofile in src/i18n/*.po; do \
+         echo appending $$pofile; \
+         ./contrib/po2ts $$pofile >> src/i18n/strings.ts; \
+       done;
+       ./node_modules/.bin/prettier --config .prettierrc --write 
src/i18n/strings.ts
 
 # Some commands are only available when ./configure has been run
 
@@ -71,7 +95,8 @@ install: warn-noprefix
 else
 install_target = $(prefix)/lib/taler-wallet-cli
 .PHONY: install
-install: compile
+install:
+       pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
        install -d $(prefix)/bin
        install -d $(install_target)/bin
        install -d $(install_target)/node_modules/taler-wallet-cli

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]