From 9cd27ed0dee549ba5bda0db518d0bac72b4bc580 Mon Sep 17 00:00:00 2001
From: "Steven R. Loomis"
Date: Thu, 28 Mar 2024 16:30:50 -0500
Subject: [PATCH] CLDR-17481 add instructions to Test.html, run.sh not needed
---
tools/cldr-apps/js/package.json | 1 +
tools/cldr-apps/js/test/Test.html | 17 +++++++----------
tools/cldr-apps/js/test/run.sh | 8 --------
3 files changed, 8 insertions(+), 18 deletions(-)
delete mode 100644 tools/cldr-apps/js/test/run.sh
diff --git a/tools/cldr-apps/js/package.json b/tools/cldr-apps/js/package.json
index e6869cf6cde..878115d7959 100644
--- a/tools/cldr-apps/js/package.json
+++ b/tools/cldr-apps/js/package.json
@@ -5,6 +5,7 @@
"main": "index.js",
"scripts": {
"build-test": "webpack --config webpack-test.config.js",
+ "watch-test": "npm run build-test -- --watch",
"test": "npm run nonbrowser-test && npm run browser-test",
"nonbrowser-test": "mocha --reporter spec test/nonbrowser/test-*.mjs",
"browser-test": "npm run build-test && mocha-headless-chrome -f test/Test.html",
diff --git a/tools/cldr-apps/js/test/Test.html b/tools/cldr-apps/js/test/Test.html
index a94a14431c0..d98bcbcb2c6 100644
--- a/tools/cldr-apps/js/test/Test.html
+++ b/tools/cldr-apps/js/test/Test.html
@@ -16,17 +16,14 @@
"
>
CLDR SurveyTool JavaScript Tests
-
-
- Important: run with run.sh; open the browser console to check
+
+ - in the 'js' directory, run
npm i
to install
+ - To rebuild, run
npm run build-test
+ - If you want to continuously compile, keep
npm run watch-test
(control-C to cancel)
+ - open the browser console to check
for errors/warnings that are otherwise invisible!
-
+
+
References:
-
diff --git a/tools/cldr-apps/js/test/run.sh b/tools/cldr-apps/js/test/run.sh
deleted file mode 100644
index 236dcec19e2..00000000000
--- a/tools/cldr-apps/js/test/run.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# This needs to be run from the cldr folder
-# Optionally, to run this as cldrtestjs, you may have in .bash_profile:
-# alias cldrtestjs='cd [path/to/cldr] && sh tools/cldr-apps/js-unittest/run.sh'
-cd tools/cldr-apps/js
-npm run build-test
-cd ../../..
-npx http-server -p 8008 -o tools/cldr-apps/js/test/Test.html