diff options
author | Sebastian <sebasjm@gmail.com> | 2021-08-23 16:51:49 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-08-23 16:52:33 -0300 |
commit | 67e511d719cbc3e7f2b391a8d6914406caa2fb24 (patch) | |
tree | 0dc25e6c26ba0acc4c2aa217e1d30bfb1112268d /contrib/build-fast.sh | |
parent | 39cbad89bbed61487a973e4df92084da1b0dc728 (diff) | |
download | wallet-core-67e511d719cbc3e7f2b391a8d6914406caa2fb24.tar.xz |
updated build fast for web
Diffstat (limited to 'contrib/build-fast.sh')
-rwxr-xr-x | contrib/build-fast.sh | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/contrib/build-fast.sh b/contrib/build-fast.sh deleted file mode 100755 index b73041e74..000000000 --- a/contrib/build-fast.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -set -eu -set -x - -export NODE_PATH=vendor:build - -function build_idb() { - rm -rf packages/idb-bridge/node_modules - idb_dir=build/@gnu-taler/idb-bridge - mkdir -p $idb_dir - esbuild --platform=node --bundle packages/idb-bridge/src/index.ts > $idb_dir/index.js -} - -function build_taler_util() { - taler_util_dir=build/@gnu-taler/taler-util - mkdir -p $taler_util_dir - esbuild --platform=node --bundle packages/taler-util/src/index.ts > $taler_util_dir/index.js -} - -function build_fflate() { - fflate_dir=build/fflate - mkdir -p $fflate_dir - esbuild --platform=node --bundle vendor/fflate/src/index.ts > $fflate_dir/index.js -} - -function build_ct() { - ct_dir=build/cancellationtoken - mkdir -p $ct_dir - esbuild --target=es6 --platform=node --bundle vendor/cancellationtoken/src/index.ts > $ct_dir/index.js -} - -function build_wallet_core() { - taler_wallet_core_dir=build/@gnu-taler/taler-wallet-core - - rm -rf packages/taler-wallet-core/node_modules - rm -rf packages/taler-wallet-core/lib - rm -rf packages/taler-wallet-core/dist - - mkdir -p $taler_wallet_core_dir - esbuild --platform=node --bundle packages/taler-wallet-core/src/index.node.ts > $taler_wallet_core_dir/index.js -} - -function build_wallet_embedded() { - taler_wallet_embedded_dir=build/@gnu-taler/taler-wallet-embedded - - mkdir -p $taler_wallet_embedded_dir - esbuild --platform=node --bundle packages/taler-wallet-embedded/src/index.ts > $taler_wallet_embedded_dir/taler-wallet-embedded.js -} - -function build_wallet_cli() { - taler_wallet_cli_dir=build/@gnu-taler/taler-wallet-cli - mkdir -p $taler_wallet_cli_dir - - rm -rf packages/taler-wallet-cli/node_modules - rm -rf packages/taler-wallet-cli/lib - rm -rf packages/taler-wallet-cli/dist - - esbuild --platform=node --bundle packages/taler-wallet-cli/src/index.ts > $taler_wallet_cli_dir/index.js - cp $taler_wallet_cli_dir/index.js $taler_wallet_cli_dir/taler-wallet-cli.js -} - - -build_idb -build_taler_util -build_fflate -build_wallet_core -build_wallet_embedded -build_ct -build_wallet_cli |