vize 0.64.0 → 0.66.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 +22 -4
- package/dist/cli.mjs +680 -7
- package/dist/cli.mjs.map +1 -1
- package/package.json +9 -9
- package/src/cli.ts +1190 -8
package/README.md
CHANGED
|
@@ -3,11 +3,16 @@
|
|
|
3
3
|
The `vize` npm package provides:
|
|
4
4
|
|
|
5
5
|
- shared config utilities (`defineConfig`, `loadConfig`)
|
|
6
|
+
- the native `vize build` command
|
|
7
|
+
- the native `vize fmt` command
|
|
6
8
|
- the native `vize lint` command
|
|
9
|
+
- the native `vize check` command for package scripts
|
|
10
|
+
- `vize ready` for `fmt --write -> lint -> check -> build`
|
|
11
|
+
- `vize upgrade` for updating the npm package
|
|
7
12
|
|
|
8
13
|
For Vite integration, pair it with `@vizejs/vite-plugin`.
|
|
9
|
-
For the full Rust-native CLI (`
|
|
10
|
-
binary with `cargo install vize`.
|
|
14
|
+
For the full Rust-native CLI (`lsp`, `ide`, project-backed `check`, and `check-server`), install
|
|
15
|
+
the Rust `vize` binary with `cargo install vize`.
|
|
11
16
|
|
|
12
17
|
Need `vp` first? Install Vite+ once from the [Vite+ install guide](https://viteplus.dev/guide/install).
|
|
13
18
|
|
|
@@ -19,11 +24,15 @@ vp install -D vize
|
|
|
19
24
|
|
|
20
25
|
## CLI
|
|
21
26
|
|
|
22
|
-
The npm CLI
|
|
27
|
+
The npm CLI exposes the common package-script commands:
|
|
23
28
|
|
|
24
29
|
```bash
|
|
30
|
+
vp exec vize build src
|
|
31
|
+
vp exec vize fmt --write src
|
|
25
32
|
vp exec vize lint src
|
|
26
|
-
vp exec vize
|
|
33
|
+
vp exec vize check
|
|
34
|
+
vp exec vize ready src
|
|
35
|
+
vp exec vize upgrade
|
|
27
36
|
```
|
|
28
37
|
|
|
29
38
|
Shared config discovery is supported for the npm CLI:
|
|
@@ -41,11 +50,20 @@ export default defineConfig({
|
|
|
41
50
|
linter: {
|
|
42
51
|
preset: "opinionated",
|
|
43
52
|
},
|
|
53
|
+
typeChecker: {
|
|
54
|
+
strict: true,
|
|
55
|
+
},
|
|
44
56
|
});
|
|
45
57
|
```
|
|
46
58
|
|
|
47
59
|
Override config discovery with `--config`, or disable it with `--no-config`.
|
|
48
60
|
|
|
61
|
+
`vize check` in the npm package uses the packaged NAPI checker so it can run from `package.json`
|
|
62
|
+
scripts after installing `vize`. Use the Rust CLI when you need Corsa project diagnostics across
|
|
63
|
+
Vue, TS, TSX, and `.d.ts` inputs.
|
|
64
|
+
|
|
65
|
+
`vize ready` runs `fmt --write`, `lint`, `check`, and `build` in that order.
|
|
66
|
+
|
|
49
67
|
## Programmatic Config Helpers
|
|
50
68
|
|
|
51
69
|
```ts
|