cm-chessboard 8.15.0 → 8.15.2
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/README.md +6 -6
- package/package.json +3 -4
package/README.md
CHANGED
|
@@ -438,12 +438,12 @@ When `movePieceForm` is enabled, press **Shift+Option+E** (Mac) or **Shift+Alt+E
|
|
|
438
438
|
|
|
439
439
|
The unit tests use the tiny [Teevi](https://github.com/shaack/teevi) framework and run in a real browser.
|
|
440
440
|
|
|
441
|
-
- **In the browser (no install needed):** open [`test/index.html`](test/index.html) directly
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
441
|
+
- **In the browser (no install needed):** open [`test/index.html`](test/index.html) directly.
|
|
442
|
+
- **Headless:** `npm test` runs the same suite in headless Chrome via the `teevi` command and exits non-zero on
|
|
443
|
+
failure, which is handy for CI. To keep cm-chessboard dependency-free, [puppeteer](https://pptr.dev) is **not** a
|
|
444
|
+
project dependency; install it **globally** for this: `npm install -g puppeteer`. The runner starts its own static
|
|
445
|
+
server, so nothing else is required. `TEEVI_TIMEOUT` (ms, default 30000) raises the limit for slow machines, and a
|
|
446
|
+
test that hangs fails after 10 seconds with its name, see `teevi.run({timeout})` in `test/index.html`.
|
|
447
447
|
|
|
448
448
|
## Usage with JS Frameworks
|
|
449
449
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cm-chessboard",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.2",
|
|
4
4
|
"description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chess",
|
|
@@ -22,8 +22,7 @@
|
|
|
22
22
|
"LICENSE"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"test": "
|
|
26
|
-
"test:headless": "node test/headless.mjs",
|
|
25
|
+
"test": "teevi",
|
|
27
26
|
"test:package": "node test/package.mjs"
|
|
28
27
|
},
|
|
29
28
|
"repository": {
|
|
@@ -37,6 +36,6 @@
|
|
|
37
36
|
},
|
|
38
37
|
"homepage": "https://github.com/shaack/cm-chessboard#readme",
|
|
39
38
|
"devDependencies": {
|
|
40
|
-
"teevi": "^2.
|
|
39
|
+
"teevi": "^2.7.0"
|
|
41
40
|
}
|
|
42
41
|
}
|