diff options
Diffstat (limited to 'packages')
-rwxr-xr-x | packages/challenger-ui/build.mjs | 10 | ||||
-rwxr-xr-x | packages/challenger-ui/create_must.sh | 25 | ||||
-rw-r--r-- | packages/challenger-ui/package.json | 2 |
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'", |