ebt-vue3 2.36.75 → 2.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +41 -0
- package/package.json +2 -2
- package/test/idb-sutta.mjs +4 -3
package/Makefile
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.PHONY: test install build dev help commit
|
|
2
|
+
|
|
3
|
+
test:
|
|
4
|
+
npm run test
|
|
5
|
+
|
|
6
|
+
install:
|
|
7
|
+
npm install
|
|
8
|
+
|
|
9
|
+
build:
|
|
10
|
+
npm run build
|
|
11
|
+
|
|
12
|
+
dev:
|
|
13
|
+
npm run dev
|
|
14
|
+
|
|
15
|
+
commit:
|
|
16
|
+
@if [ ! -f .commit-msg ]; then \
|
|
17
|
+
echo "Error: .commit-msg file not found"; \
|
|
18
|
+
exit 1; \
|
|
19
|
+
fi
|
|
20
|
+
@echo ""
|
|
21
|
+
@echo "Commit message:"
|
|
22
|
+
@echo "==============="
|
|
23
|
+
@cat .commit-msg
|
|
24
|
+
@echo "==============="
|
|
25
|
+
@echo ""
|
|
26
|
+
@read -p "Approve commit? (y/n) " -n 1 -r; \
|
|
27
|
+
echo ""; \
|
|
28
|
+
if [[ $$REPLY =~ ^[Yy]$$ ]]; then \
|
|
29
|
+
git add -A && git commit -F .commit-msg && rm .commit-msg; \
|
|
30
|
+
else \
|
|
31
|
+
echo "Commit cancelled"; \
|
|
32
|
+
exit 1; \
|
|
33
|
+
fi
|
|
34
|
+
|
|
35
|
+
help:
|
|
36
|
+
@echo "Available targets:"
|
|
37
|
+
@echo " make test - Run tests"
|
|
38
|
+
@echo " make install - Install dependencies"
|
|
39
|
+
@echo " make build - Build the project"
|
|
40
|
+
@echo " make dev - Start development server"
|
|
41
|
+
@echo " make commit - Review and approve commit from .commit-msg file"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ebt-vue3",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.38.0",
|
|
4
4
|
"description": "Vue3 Library for SuttaCentral Voice EBT-Sites",
|
|
5
5
|
"author": "Karl Lew",
|
|
6
6
|
"scripts": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"mock-local-storage": "^1.0.4",
|
|
77
77
|
"node-fetch": "^3.2.10",
|
|
78
78
|
"prettier": "^3.3.3",
|
|
79
|
-
"scv-bilara": "^3.
|
|
79
|
+
"scv-bilara": "^3.180.0",
|
|
80
80
|
"should": "^13.2.3",
|
|
81
81
|
"supertest": "^7.0.0",
|
|
82
82
|
"typescript": "^5.9.3",
|
package/test/idb-sutta.mjs
CHANGED
|
@@ -368,7 +368,8 @@ const TESTMLDOC_EN = {
|
|
|
368
368
|
);
|
|
369
369
|
should(dstSutta.segments.length).equal(4);
|
|
370
370
|
});
|
|
371
|
-
it("
|
|
371
|
+
it("TESTTESThighlightExamples()", async function() {
|
|
372
|
+
this.timeout(5000); // Examples.replaceAll requires time to load/process data
|
|
372
373
|
logger.logLevel = "error";
|
|
373
374
|
let suttaBefore = IdbSutta.create(TESTMLDOC_EN);
|
|
374
375
|
let suttaAfter = IdbSutta.create(TESTMLDOC_EN);
|
|
@@ -377,8 +378,8 @@ const TESTMLDOC_EN = {
|
|
|
377
378
|
let [ before0, before1, before2 ] = suttaBefore.segments;
|
|
378
379
|
let [ after0, after1, after2 ] = suttaAfter.segments;
|
|
379
380
|
should.deepEqual(after0, before0);
|
|
380
|
-
should.deepEqual(after1.ref, before1.ref);
|
|
381
|
-
should.deepEqual(after1[lang],
|
|
381
|
+
should.deepEqual(after1.ref, before1.ref);
|
|
382
|
+
should.deepEqual(after1[lang],
|
|
382
383
|
'testsuid:1.1-en <span class="ebt-example">apex</span>.');
|
|
383
384
|
should.deepEqual(after2, before2);
|
|
384
385
|
});
|