diff --git a/Makefile b/Makefile index 035c385e9..66c2bf6c3 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,18 @@ backoffice-prebuilt: pnpm run --filter @gnu-taler/merchant-backoffice-ui... build ./copy-backoffice-into-prebuilt.sh +.PHONY: backend-prebuilt +backend-prebuilt: + pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backend-ui... + pnpm run --filter @gnu-taler/merchant-backend... build + ./copy-backend-into-prebuilt.sh + +.PHONY: demobank-prebuilt +demobank-prebuilt: + pnpm install --frozen-lockfile --filter @gnu-taler/merchant-ba... + pnpm run --filter @gnu-taler/demobank-ui... build + ./copy-demobank-into-prebuilt.sh + # make documentation from docstrings .PHONY: typedoc typedoc: diff --git a/copy-backend-into-rebuilt.sh b/copy-backend-into-prebuilt.sh similarity index 100% rename from copy-backend-into-rebuilt.sh rename to copy-backend-into-prebuilt.sh diff --git a/copy-demobank-into-prebuilt.sh b/copy-demobank-into-prebuilt.sh new file mode 100755 index 000000000..5927eac96 --- /dev/null +++ b/copy-demobank-into-prebuilt.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 + +for file in index.html index.js index.css; do + cp packages/demobank-ui/dist/$file prebuilt/demobank/ +done + diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json index 4dcbfa117..2013da1a4 100644 --- a/packages/taler-wallet-webextension/package.json +++ b/packages/taler-wallet-webextension/package.json @@ -13,7 +13,7 @@ "test": "pnpm compile && mocha --require source-map-support/register 'dist/**/*.test.js' 'dist/**/test.js'", "test:coverage": "nyc pnpm test", "compile": "tsc && ./build-fast-with-linaria.mjs", - "prepare": "pnpm compile", + "prepare": "tsc", "dev": "./dev.mjs", "pretty": "prettier --write src", "i18n:extract": "pogen extract", diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index 986354bad..0d873b61f 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -55,12 +55,6 @@ export function useComponentState({ ), }; } - // if (hook.hasError) { - // return { - // status: "loading-uri", - // error: hook, - // }; - // } const { contractTerms, diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index bc6678a21..f29c169d0 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -376,15 +376,15 @@ export function Application(): VNode { ( redirectTo(Pages.balance)} onSuccess={(tid: string) =>