diff options
author | Sebastian <sebasjm@gmail.com> | 2021-01-30 12:35:55 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-02-01 17:07:22 -0300 |
commit | 4845ebddf6b525b349171001b4a37d3433e4913e (patch) | |
tree | e281d7c53be56a488d5d434d7bb4fe7a26dacc04 /packages/taler-wallet-webextension | |
parent | 69aaaefce30331bf40141e33d0e0aeae40708443 (diff) |
0006728: set up wallet CI pipeline for WebExtension build
This commit split in three main things:
* added deploy-webext to upload the extension zipfile
* put scope into the npm packages to be able to deploy them
* added deploy-npm to deploy related npm packages
Also, fixing bug on `make clean`. Some packages where not
being deleting tsconfig.tsbuildinfo and making subsequent
`make` fail
Diffstat (limited to 'packages/taler-wallet-webextension')
15 files changed, 17 insertions, 17 deletions
diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json index 8ac5f7451..b9a35eb1b 100644 --- a/packages/taler-wallet-webextension/package.json +++ b/packages/taler-wallet-webextension/package.json @@ -1,5 +1,5 @@ { - "name": "taler-wallet-webextension", + "name": "@gnu-taler/taler-wallet-webextension", "version": "0.8.1-dev.2", "description": "GNU Taler Wallet browser extension", "main": "./build/index.js", @@ -13,7 +13,7 @@ }, "dependencies": { "moment": "^2.29.1", - "taler-wallet-core": "workspace:*", + "@gnu-taler/taler-wallet-core": "workspace:*", "tslib": "^2.1.0" }, "devDependencies": { diff --git a/packages/taler-wallet-webextension/src/browserCryptoWorkerFactory.ts b/packages/taler-wallet-webextension/src/browserCryptoWorkerFactory.ts index a0a440574..a8315dc6d 100644 --- a/packages/taler-wallet-webextension/src/browserCryptoWorkerFactory.ts +++ b/packages/taler-wallet-webextension/src/browserCryptoWorkerFactory.ts @@ -19,7 +19,7 @@ * @author Florian Dold */ -import type { CryptoWorker, CryptoWorkerFactory } from "taler-wallet-core"; +import type { CryptoWorker, CryptoWorkerFactory } from "@gnu-taler/taler-wallet-core"; export class BrowserCryptoWorkerFactory implements CryptoWorkerFactory { startWorker(): CryptoWorker { diff --git a/packages/taler-wallet-webextension/src/browserHttpLib.ts b/packages/taler-wallet-webextension/src/browserHttpLib.ts index 08364e404..c71e34174 100644 --- a/packages/taler-wallet-webextension/src/browserHttpLib.ts +++ b/packages/taler-wallet-webextension/src/browserHttpLib.ts @@ -25,8 +25,8 @@ import { HttpResponse, Headers, bytesToString, -} from "taler-wallet-core"; -import { TalerErrorCode } from "taler-wallet-core"; +} from "@gnu-taler/taler-wallet-core"; +import { TalerErrorCode } from "@gnu-taler/taler-wallet-core"; const logger = new Logger("browserHttpLib"); diff --git a/packages/taler-wallet-webextension/src/browserWorkerEntry.ts b/packages/taler-wallet-webextension/src/browserWorkerEntry.ts index cb13582a2..8ab22e23b 100644 --- a/packages/taler-wallet-webextension/src/browserWorkerEntry.ts +++ b/packages/taler-wallet-webextension/src/browserWorkerEntry.ts @@ -22,7 +22,7 @@ * Imports. */ -import { CryptoImplementation, Logger } from "taler-wallet-core"; +import { CryptoImplementation, Logger } from "@gnu-taler/taler-wallet-core"; const logger = new Logger("browserWorkerEntry.ts"); diff --git a/packages/taler-wallet-webextension/src/i18n.tsx b/packages/taler-wallet-webextension/src/i18n.tsx index bd74316f6..86c712b8c 100644 --- a/packages/taler-wallet-webextension/src/i18n.tsx +++ b/packages/taler-wallet-webextension/src/i18n.tsx @@ -23,7 +23,7 @@ */ import React from "react"; -import * as i18nCore from "taler-wallet-core"; +import * as i18nCore from "@gnu-taler/taler-wallet-core"; /** * Convert template strings to a msgid */ diff --git a/packages/taler-wallet-webextension/src/pageEntryPoint.ts b/packages/taler-wallet-webextension/src/pageEntryPoint.ts index 0e2b67b5d..028ba1058 100644 --- a/packages/taler-wallet-webextension/src/pageEntryPoint.ts +++ b/packages/taler-wallet-webextension/src/pageEntryPoint.ts @@ -26,7 +26,7 @@ import { createWithdrawPage } from "./pages/withdraw"; import { createWelcomePage } from "./pages/welcome"; import { createPayPage } from "./pages/pay"; import { createRefundPage } from "./pages/refund"; -import { setupI18n } from "taler-wallet-core"; +import { setupI18n } from "@gnu-taler/taler-wallet-core"; import { createTipPage } from './pages/tip'; function main(): void { diff --git a/packages/taler-wallet-webextension/src/pages/pay.tsx b/packages/taler-wallet-webextension/src/pages/pay.tsx index ce3a59674..b5da04e31 100644 --- a/packages/taler-wallet-webextension/src/pages/pay.tsx +++ b/packages/taler-wallet-webextension/src/pages/pay.tsx @@ -38,7 +38,7 @@ import { ConfirmPayResultType, ConfirmPayResult, getJsonI18n, -} from "taler-wallet-core"; +} from "@gnu-taler/taler-wallet-core"; function TalerPayDialog({ talerPayUri }: { talerPayUri: string }): JSX.Element { const [payStatus, setPayStatus] = useState<PreparePayResult | undefined>(); diff --git a/packages/taler-wallet-webextension/src/pages/popup.tsx b/packages/taler-wallet-webextension/src/pages/popup.tsx index 9c8a8f75a..9071e46fd 100644 --- a/packages/taler-wallet-webextension/src/pages/popup.tsx +++ b/packages/taler-wallet-webextension/src/pages/popup.tsx @@ -38,7 +38,7 @@ import { TransactionType, AmountString, Timestamp, -} from "taler-wallet-core"; +} from "@gnu-taler/taler-wallet-core"; import { abbrev, renderAmount, PageLink } from "../renderHtml"; import * as wxApi from "../wxApi"; diff --git a/packages/taler-wallet-webextension/src/pages/refund.tsx b/packages/taler-wallet-webextension/src/pages/refund.tsx index 74c33c020..572aba8ed 100644 --- a/packages/taler-wallet-webextension/src/pages/refund.tsx +++ b/packages/taler-wallet-webextension/src/pages/refund.tsx @@ -23,7 +23,7 @@ import React, { useEffect, useState } from "react"; import * as wxApi from "../wxApi"; import { AmountView } from "../renderHtml"; -import { PurchaseDetails, ApplyRefundResponse, Amounts } from "taler-wallet-core"; +import { PurchaseDetails, ApplyRefundResponse, Amounts } from "@gnu-taler/taler-wallet-core"; function RefundStatusView(props: { talerRefundUri: string }): JSX.Element { const [applyResult, setApplyResult] = useState<ApplyRefundResponse>(); diff --git a/packages/taler-wallet-webextension/src/pages/tip.tsx b/packages/taler-wallet-webextension/src/pages/tip.tsx index 6f57854d2..29c07cfe9 100644 --- a/packages/taler-wallet-webextension/src/pages/tip.tsx +++ b/packages/taler-wallet-webextension/src/pages/tip.tsx @@ -22,7 +22,7 @@ import * as React from "react"; import { useEffect, useState } from "react"; -import { PrepareTipResult } from "taler-wallet-core"; +import { PrepareTipResult } from "@gnu-taler/taler-wallet-core"; import { AmountView } from "../renderHtml"; import * as wxApi from "../wxApi"; diff --git a/packages/taler-wallet-webextension/src/pages/welcome.tsx b/packages/taler-wallet-webextension/src/pages/welcome.tsx index 00d8ae6c7..fb4af573d 100644 --- a/packages/taler-wallet-webextension/src/pages/welcome.tsx +++ b/packages/taler-wallet-webextension/src/pages/welcome.tsx @@ -26,7 +26,7 @@ import { PageLink } from "../renderHtml"; import * as wxApi from "../wxApi"; import { getPermissionsApi } from "../compat"; import { extendedPermissions } from "../permissions"; -import { WalletDiagnostics } from "taler-wallet-core"; +import { WalletDiagnostics } from "@gnu-taler/taler-wallet-core"; function Diagnostics(): JSX.Element | null { const [timedOut, setTimedOut] = useState(false); diff --git a/packages/taler-wallet-webextension/src/pages/withdraw.tsx b/packages/taler-wallet-webextension/src/pages/withdraw.tsx index 72b3a1050..02758fd93 100644 --- a/packages/taler-wallet-webextension/src/pages/withdraw.tsx +++ b/packages/taler-wallet-webextension/src/pages/withdraw.tsx @@ -31,7 +31,7 @@ import { onUpdateNotification, getWithdrawalDetailsForUri, } from "../wxApi"; -import { WithdrawUriInfoResponse } from "taler-wallet-core"; +import { WithdrawUriInfoResponse } from "@gnu-taler/taler-wallet-core"; function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element { const [details, setDetails] = useState<WithdrawUriInfoResponse | undefined>(); diff --git a/packages/taler-wallet-webextension/src/renderHtml.tsx b/packages/taler-wallet-webextension/src/renderHtml.tsx index fcf64b6d5..c18c5c199 100644 --- a/packages/taler-wallet-webextension/src/renderHtml.tsx +++ b/packages/taler-wallet-webextension/src/renderHtml.tsx @@ -23,7 +23,7 @@ /** * Imports. */ -import { AmountJson, Amounts, stringifyTimestamp, ExchangeWithdrawDetails } from "taler-wallet-core"; +import { AmountJson, Amounts, stringifyTimestamp, ExchangeWithdrawDetails } from "@gnu-taler/taler-wallet-core"; import * as i18n from "./i18n"; import React from "react"; diff --git a/packages/taler-wallet-webextension/src/wxApi.ts b/packages/taler-wallet-webextension/src/wxApi.ts index 0434bb6d3..3c01dfe96 100644 --- a/packages/taler-wallet-webextension/src/wxApi.ts +++ b/packages/taler-wallet-webextension/src/wxApi.ts @@ -36,7 +36,7 @@ import { PrepareTipRequest, PrepareTipResult, AcceptTipRequest, -} from "taler-wallet-core"; +} from "@gnu-taler/taler-wallet-core"; export interface ExtendedPermissionsResponse { newValue: boolean; diff --git a/packages/taler-wallet-webextension/src/wxBackend.ts b/packages/taler-wallet-webextension/src/wxBackend.ts index 95cd5f021..64dd25fb8 100644 --- a/packages/taler-wallet-webextension/src/wxBackend.ts +++ b/packages/taler-wallet-webextension/src/wxBackend.ts @@ -40,7 +40,7 @@ import { WalletDiagnostics, CoreApiResponseSuccess, Stores, -} from "taler-wallet-core"; +} from "@gnu-taler/taler-wallet-core"; import { BrowserHttpLib } from "./browserHttpLib"; import { BrowserCryptoWorkerFactory } from "./browserCryptoWorkerFactory"; |