taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 732e018a332ee81a7428be487a70ecd727bcf225
parent 7d4548d490487f9475b87f449166441561d97bd3
Author: Sebastian <sebasjm@gmail.com>
Date:   Tue,  2 Jul 2024 14:17:25 -0300

update build script of challenger

Diffstat:
Mpackages/challenger-ui/build.mjs | 10----------
Dpackages/challenger-ui/create_must.sh | 25-------------------------
Mpackages/challenger-ui/package.json | 2+-
3 files changed, 1 insertion(+), 36 deletions(-)

diff --git a/packages/challenger-ui/build.mjs b/packages/challenger-ui/build.mjs @@ -25,16 +25,6 @@ await build({ base: "src", files: [ "src/index.html", - "src/attempts-exhausted.html", - "src/enter-address-form.html", - "src/enter-email-form.html", - "src/enter-file-access-form.html", - "src/enter-phone-form.html", - "src/enter-tan-form.html", - "src/internal-error.html", - "src/invalid-pin.html", - "src/invalid-request.html", - "src/validation-unknown.html", ] }], }, diff --git a/packages/challenger-ui/create_must.sh b/packages/challenger-ui/create_must.sh @@ -1,25 +0,0 @@ -#!/bin/bash -# This file is in the public domain. - -# After the compilation succeeded -# some changes needs to be made -# in the html/js files to match the -# what the service expects - -cd dist/prod - -for file in *.html; do - - # 1. remove the js reference used for dev - sed /main.js/d -i $file - - # 2. change the location of css since - #challenger backend wants them in the root path - sed 's/="main.css"/="..\/main.css"/' -i $file - - # 3. rename the extension to must template - mv $file ${file:0:-5}.en.must -done - -#delete unused files -rm *.js *.map diff --git a/packages/challenger-ui/package.json b/packages/challenger-ui/package.json @@ -7,7 +7,7 @@ "description": "UI for GNU Challenger.", "type": "module", "scripts": { - "build": "./build.mjs && ./create_must.sh", + "build": "./build.mjs", "check": "tsc", "compile": "tsc && ./build.mjs", "test": "./test.mjs && mocha --require source-map-support/register 'dist/test/**/*.test.js' 'dist/test/**/test.js'",