diff options
Diffstat (limited to 'packages')
-rwxr-xr-x[-rw-r--r--] | packages/taler-wallet-webextension/build-fast-with-linaria.mjs | 1 | ||||
-rwxr-xr-x | packages/taler-wallet-webextension/clean_and_build.sh | 22 | ||||
-rwxr-xr-x | packages/taler-wallet-webextension/esbuild.sh | 18 | ||||
-rw-r--r-- | packages/taler-wallet-webextension/package.json | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | packages/taler-wallet-webextension/serve-esbuild.mjs | 1 |
5 files changed, 20 insertions, 24 deletions
diff --git a/packages/taler-wallet-webextension/build-fast-with-linaria.mjs b/packages/taler-wallet-webextension/build-fast-with-linaria.mjs index 37f6349e2..77106a4f6 100644..100755 --- a/packages/taler-wallet-webextension/build-fast-with-linaria.mjs +++ b/packages/taler-wallet-webextension/build-fast-with-linaria.mjs @@ -1,3 +1,4 @@ +#!/usr/bin/env node import linaria from '@linaria/esbuild' import esbuild from 'esbuild' diff --git a/packages/taler-wallet-webextension/clean_and_build.sh b/packages/taler-wallet-webextension/clean_and_build.sh index 22abb212f..2662f8b2d 100755 --- a/packages/taler-wallet-webextension/clean_and_build.sh +++ b/packages/taler-wallet-webextension/clean_and_build.sh @@ -1,6 +1,18 @@ -#!/usr/bin/env bash -# This file is in the public domain. +#!/bin/bash + set -e -[ "also-wallet" == "$1" ] && { pnpm -C ../taler-wallet-core/ compile || exit 1; } -[ "also-util" == "$1" ] && { pnpm -C ../taler-util/ prepare || exit 1; } -pnpm clean && pnpm compile && rm -rf extension/ && ./pack.sh + +#rm -rf dist lib tsconfig.tsbuildinfo .linaria-cache + +echo typecheck and bundle... +node build-fast-with-linaria.mjs & +pnpm tsc --noEmit & +wait -n +wait -n + +echo testing... +pnpm test -- -R dot + +echo packing... +rm -rf extension/ +./pack.sh diff --git a/packages/taler-wallet-webextension/esbuild.sh b/packages/taler-wallet-webextension/esbuild.sh deleted file mode 100755 index 2662f8b2d..000000000 --- a/packages/taler-wallet-webextension/esbuild.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -set -e - -#rm -rf dist lib tsconfig.tsbuildinfo .linaria-cache - -echo typecheck and bundle... -node build-fast-with-linaria.mjs & -pnpm tsc --noEmit & -wait -n -wait -n - -echo testing... -pnpm test -- -R dot - -echo packing... -rm -rf extension/ -./pack.sh diff --git a/packages/taler-wallet-webextension/package.json b/packages/taler-wallet-webextension/package.json index 909b27d03..1293c2b26 100644 --- a/packages/taler-wallet-webextension/package.json +++ b/packages/taler-wallet-webextension/package.json @@ -11,7 +11,7 @@ "clean": "rimraf dist lib tsconfig.tsbuildinfo", "test": "mocha --enable-source-maps 'dist/**/*.test.js'", "test:coverage": "nyc pnpm test", - "compile": "rollup -c -m", + "compile": "tsc && ./build-fast-with-linaria.mjs", "compile:test": "rollup -c rollup.config.test.js -m", "prepare": "rollup -c -m", "pretty": "prettier --write src", diff --git a/packages/taler-wallet-webextension/serve-esbuild.mjs b/packages/taler-wallet-webextension/serve-esbuild.mjs index 0fa2723ae..51e0fd523 100644..100755 --- a/packages/taler-wallet-webextension/serve-esbuild.mjs +++ b/packages/taler-wallet-webextension/serve-esbuild.mjs @@ -1,3 +1,4 @@ +#!/usr/bin/env node import linaria from '@linaria/esbuild' import esbuild from 'esbuild' |