webanvil 0.0.19 → 0.0.20
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 +24 -20
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ What it includes
|
|
|
66
66
|
| Tracked output cleanup | `wa clean` | WebAnvil |
|
|
67
67
|
| Static checks | `wa check` | Oxfmt, Oxlint, TypeScript Native, or svelte-check |
|
|
68
68
|
| Tests | `wa test` | Vitest |
|
|
69
|
-
| Browser tests | `wa e2e` | Playwright Test
|
|
69
|
+
| Browser tests | `wa e2e` | Playwright Test; project-installed browser |
|
|
70
70
|
| Linting | `wa lint` | Oxlint |
|
|
71
71
|
| Formatting | `wa format` | Oxfmt |
|
|
72
72
|
| Type checking | `wa typecheck` | TypeScript Native or svelte-check |
|
|
@@ -166,8 +166,8 @@ export default defineConfig({
|
|
|
166
166
|
|
|
167
167
|
### Storybook
|
|
168
168
|
|
|
169
|
-
WebAnvil includes Storybook, the supported Vite framework adapters, Vitest's
|
|
170
|
-
browser support
|
|
169
|
+
WebAnvil includes Storybook, the supported Vite framework adapters, and Vitest's
|
|
170
|
+
browser support. It exposes that exact Storybook release as a
|
|
171
171
|
peer dependency, so package-manager-installed addons resolve against the same
|
|
172
172
|
runtime. Add a Storybook configuration, addons, and your project's normal
|
|
173
173
|
framework dependencies.
|
|
@@ -206,8 +206,10 @@ configure Storybook. Storybook does not open a browser by default; pass `--open`
|
|
|
206
206
|
to open it. The package build still owns `--out-dir`.
|
|
207
207
|
|
|
208
208
|
Set `storybook.test: false` to exclude Storybook stories, including `play`
|
|
209
|
-
functions, from `wa test`.
|
|
210
|
-
|
|
209
|
+
functions, from `wa test`. Projects running Storybook browser tests must install
|
|
210
|
+
Chromium for WebAnvil's Playwright 1.58.2 toolchain. Run
|
|
211
|
+
`npx playwright@1.58.2 install chromium`, or add
|
|
212
|
+
`@playwright/browser-chromium@1.58.2` to the project and allow its install script.
|
|
211
213
|
Storybook tests use WebAnvil's bundled Vitest and browser provider as one
|
|
212
214
|
version-matched toolchain.
|
|
213
215
|
|
|
@@ -346,17 +348,17 @@ preflights the engines it can dispatch before `webanvil.config.*` is loaded or
|
|
|
346
348
|
its plugins are evaluated, so a declared command engine that is missing, has
|
|
347
349
|
invalid package identity, or is outside the supported range fails first.
|
|
348
350
|
|
|
349
|
-
| Tool
|
|
350
|
-
|
|
|
351
|
-
| Vite
|
|
352
|
-
| Vitest
|
|
353
|
-
| Playwright Test
|
|
354
|
-
| Storybook
|
|
355
|
-
| Rolldown
|
|
356
|
-
| Oxlint
|
|
357
|
-
| Oxfmt
|
|
358
|
-
| TypeScript (declarations)
|
|
359
|
-
| TypeScript Native (`tsgo`)
|
|
351
|
+
| Tool | Supported project/workspace versions | Exact WebAnvil fallback |
|
|
352
|
+
| -------------------------- | ------------------------------------ | ----------------------- |
|
|
353
|
+
| Vite | `>=8.1.5 <9` | `8.1.5` |
|
|
354
|
+
| Vitest | Bundled only | `4.1.11` |
|
|
355
|
+
| Playwright Test | Bundled only | `1.58.2` |
|
|
356
|
+
| Storybook | `>=10.5.9 <11` | `10.5.9` |
|
|
357
|
+
| Rolldown | `>=1.2.0 <2` | `1.2.0` |
|
|
358
|
+
| Oxlint | `>=1.75.0 <2` | `1.75.0` |
|
|
359
|
+
| Oxfmt | `>=0.60.0 <0.61` | `0.60.0` |
|
|
360
|
+
| TypeScript (declarations) | `>=5 <7.1.0` | `6.0.3` |
|
|
361
|
+
| TypeScript Native (`tsgo`) | `>=7.0.0-dev.20260707.2 <7.0.0` | `7.0.0-dev.20260707.2` |
|
|
360
362
|
|
|
361
363
|
When a tool is first used, the CLI reports its package, version, and source, for
|
|
362
364
|
example `Using rolldown 1.2.0 (project)` or
|
|
@@ -555,12 +557,14 @@ describe("home page", () => {
|
|
|
555
557
|
```
|
|
556
558
|
|
|
557
559
|
The generated configuration provides a `chromium` project, so `wa e2e --project
|
|
558
|
-
chromium` works without a Playwright config
|
|
559
|
-
for an interactive run. WebAnvil ships
|
|
560
|
-
|
|
560
|
+
chromium` works without a Playwright config after the project installs Chromium.
|
|
561
|
+
Use `--headed`, `--debug`, or `--ui` for an interactive run. WebAnvil ships
|
|
562
|
+
Playwright Test, while the project supplies the browser binary and its system
|
|
563
|
+
libraries. Install the matching browser locally with
|
|
564
|
+
`npx playwright@1.58.2 install chromium`. On Linux CI, install both with:
|
|
561
565
|
|
|
562
566
|
```sh
|
|
563
|
-
npx playwright install --with-deps chromium
|
|
567
|
+
npx playwright@1.58.2 install --with-deps chromium
|
|
564
568
|
```
|
|
565
569
|
|
|
566
570
|
For advanced configuration, add `playwright.config.*`. WebAnvil then delegates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webanvil",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
4
4
|
"description": "A unified CLI for building, testing, linting, formatting, and type-checking JavaScript and TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build-tool",
|
|
@@ -120,7 +120,6 @@
|
|
|
120
120
|
"check": "npm run typecheck && npm run lint && npm run format:check && npm test"
|
|
121
121
|
},
|
|
122
122
|
"dependencies": {
|
|
123
|
-
"@playwright/browser-chromium": "1.58.2",
|
|
124
123
|
"@playwright/test": "1.58.2",
|
|
125
124
|
"@storybook/addon-vitest": "10.5.9",
|
|
126
125
|
"@storybook/react-vite": "10.5.9",
|