@willbooster/wb 22.23.2 → 22.25.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/README.md +19 -0
- package/dist/index.js +50 -50
- package/dist/slidevTextlint-B49X6oR5.js +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -165,6 +165,11 @@ unfiltered `test/e2e-additional` script. Playwright-specific options still go
|
|
|
165
165
|
after `--` in `wb test`; supply the name filter only once, before `--`.
|
|
166
166
|
Use `--grep-invert` for inverse Playwright name filters across versions.
|
|
167
167
|
|
|
168
|
+
Before running Playwright against an app that wb starts itself (on CI, or without a `webServer`
|
|
169
|
+
block), wb waits until the app answers an HTTP request. The request goes to the path of the first
|
|
170
|
+
`webServer.url` in `playwright.config.ts` when that is a string or template literal ending in a
|
|
171
|
+
plain path (`/api/ping` for `` `${baseURL}/api/ping` ``), and to the root path otherwise.
|
|
172
|
+
|
|
168
173
|
When a test command of `wb test` or a phase of `wb test-on-ci` exits, wb sends `SIGTERM` to the
|
|
169
174
|
processes it started that are still running (e.g. a build that a timed-out test left behind) and
|
|
170
175
|
lists them. wb finds them by polling the process tree every second, so a process whose parent
|
|
@@ -215,6 +220,20 @@ fails verification.
|
|
|
215
220
|
wb uses its own `code-gauge` and code-gauge's default thresholds; a `code-gauge.config.json` in the
|
|
216
221
|
repository overrides them.
|
|
217
222
|
|
|
223
|
+
## Japanese spacing in Markdown
|
|
224
|
+
|
|
225
|
+
`wb lint --format` (and so the pre-commit hook and `wb verify`) removes the spaces between Japanese
|
|
226
|
+
and half-width alphanumeric characters in the plain text of Markdown paragraphs, lists, tables, and
|
|
227
|
+
inline links, e.g. `この 2 つの LLM` becomes `この2つのLLM`, before oxfmt formats them. Everything
|
|
228
|
+
else keeps its spacing: code, blockquotes (which often cite external text verbatim), headings (whose
|
|
229
|
+
anchors links must keep matching), reference links (whose text must keep matching their
|
|
230
|
+
definitions), image alt text, HTML tags and their attributes, HTML blocks without blank lines, and
|
|
231
|
+
link titles, as well as the spaces next to inline code, outside bold or italic spans, and around
|
|
232
|
+
half-width parentheses. Text between HTML tags that a blank line separates from them (e.g. inside
|
|
233
|
+
`<details>`) is a paragraph and gets fixed. It covers the `*.md` files that Git tracks or does not
|
|
234
|
+
ignore, except test fixtures and the paths matched by a `.textlintignore` in any directory, with
|
|
235
|
+
gitignore syntax relative to that directory. It fixes text only and never fails `wb lint`.
|
|
236
|
+
|
|
218
237
|
## Slidev checks
|
|
219
238
|
|
|
220
239
|
`wb slidev-check` checks slide text with textlint, then checks rendered Slidev decks.
|