nudojs 1.0.0-beta.0 → 1.0.0-beta.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 +9 -19
- package/dist/index.d.ts +1 -0
- package/dist/index.js +278255 -0
- package/package.json +23 -6
- package/bin/nudo.mjs +0 -10
package/README.md
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
# nudojs
|
|
2
2
|
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
> **欢迎重回 JS 世界.** — Nudo 不限制你的 JS 表达,只忠实反映中间量与结果,并提供比类型更精确的契约校验。
|
|
3
|
+
> **欢迎重回 JS 世界.** — Nudo 不限制你的 JS 表达,只忠实反映中间量与结果,并提供比类型更精确的契约校验。
|
|
6
4
|
> Welcome back to JavaScript. Your JS stays JS — observe intermediates, enforce contracts sharper than types.
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> The bare npm name `nudo` was unavailable, so this package is published as **`nudojs`**. The installed command is still `nudo`.
|
|
6
|
+
The **`nudo`** CLI of the Nudo type inference engine for JavaScript.
|
|
11
7
|
|
|
12
8
|
```bash
|
|
13
9
|
npm i -g nudojs
|
|
@@ -18,19 +14,13 @@ nudo test file.js
|
|
|
18
14
|
npx nudojs check file.js
|
|
19
15
|
```
|
|
20
16
|
|
|
21
|
-
Primary verbs: `check` · `test` · `contract` · `export` · `health`.
|
|
22
|
-
|
|
23
|
-
> **Version heads-up.** `nudojs` is a thin installer shell — **its version number is not the engine version.** `nudojs@0.x` wraps `@nudojs/cli@3.x`; engine packages (`@nudojs/core`, …) version independently. Run `nudo --version` to see the engine CLI you actually have. Full policy: [docs/versioning.md](https://github.com/nudojs/nudo/blob/main/docs/versioning.md).
|
|
17
|
+
Primary verbs: `check` · `test` · `contract` · `export` · `health`. `migrate` is the one-way TypeScript retirement gate.
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- [`@nudojs/parser`](https://github.com/nudojs/nudo/tree/main/packages/parser) — Babel-based parser and `@nudo:` directive extraction
|
|
30
|
-
- [`@nudojs/service`](https://github.com/nudojs/nudo/tree/main/packages/service) — analyzer orchestration, Abs-native evaluator API (`@nudojs/service/evaluator`), dts generation, harvest
|
|
31
|
-
- [`@nudojs/env`](https://github.com/nudojs/nudo/tree/main/packages/env) — ES / Web / Node API type definitions
|
|
19
|
+
```text
|
|
20
|
+
nudojs <version>
|
|
21
|
+
@nudojs/core <version> # when resolvable
|
|
22
|
+
```
|
|
32
23
|
|
|
33
|
-
>
|
|
24
|
+
> **Migration:** `@nudojs/cli` is a deprecated stub that forwards here. Install `nudojs` only.
|
|
34
25
|
|
|
35
|
-
Full documentation
|
|
36
|
-
Playground: <https://nudojs.github.io/nudo/playground>
|
|
26
|
+
Full documentation: <https://nudojs.github.io/nudo/>
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env node
|