aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-07-02 14:17:25 -0300
committerSebastian <sebasjm@gmail.com>2024-07-02 14:17:25 -0300
commit732e018a332ee81a7428be487a70ecd727bcf225 (patch)
tree3bf3a208794c505e26903e32b8c5b0306f17d2a8 /packages
parent7d4548d490487f9475b87f449166441561d97bd3 (diff)
downloadwallet-core-732e018a332ee81a7428be487a70ecd727bcf225.tar.xz
update build script of challenger
Diffstat (limited to 'packages')
-rwxr-xr-xpackages/challenger-ui/build.mjs10
-rwxr-xr-xpackages/challenger-ui/create_must.sh25
-rw-r--r--packages/challenger-ui/package.json2
3 files changed, 1 insertions, 36 deletions
diff --git a/packages/challenger-ui/build.mjs b/packages/challenger-ui/build.mjs
index 166647f79..2e116d214 100755
--- 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
deleted file mode 100755
index a4d78b2cc..000000000
--- a/packages/challenger-ui/create_must.sh
+++ /dev/null
@@ -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
index d4d047326..b52175b39 100644
--- 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'",