@modern-js/main-doc 0.0.0-next-1686828255168 → 0.0.0-next-1686834137560

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/CHANGELOG.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # @modern-js/main-doc
2
2
 
3
- ## 0.0.0-next-1686828255168
3
+ ## 0.0.0-next-1686834137560
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [4d4dca08f6]
8
- - @modern-js/builder-doc@0.0.0-next-1686828255168
7
+ - Updated dependencies [4d4dca08f]
8
+ - @modern-js/builder-doc@0.0.0-next-1686834137560
9
9
 
10
10
  ## 2.23.0
11
11
 
@@ -11,10 +11,10 @@ Before using this option, you need to install and register the `@modern-js/plugi
11
11
  # npm
12
12
  npm add @modern-js/plugin-proxy -D
13
13
 
14
- #yarn
14
+ # yarn
15
15
  yarn add @modern-js/plugin-proxy -D
16
16
 
17
- #pnpm
17
+ # pnpm
18
18
  pnpm add @modern-js/plugin-proxy -D
19
19
  ```
20
20
 
@@ -8,14 +8,10 @@ sidebar_position: 1
8
8
  - **Type:** `'babel-jest' | 'ts-jest'`
9
9
  - **Default:** `babel-jest`
10
10
 
11
- :::caution Caution
12
- First you need to enable the "Unit Test" function using [new](/apis/app/commands#modern-new) command.
11
+ First need to run `new` command to enable [Unit Test / Integration Test] features.
13
12
 
14
- :::
15
-
16
- Configure the compiler for source code when executing tests: [babel-jest](https://www.npmjs.com/package/babel-jest) or [ts-jest](https://github.com/kulshekhar/ts-jest). `babel-jest` is used by default.
17
-
18
- :::info Additional information
19
- `Babel-jest` can also compile TS files, but there is no type error. If you need to check the TS type when running tests, then use `ts-jest`.
13
+ Configure the compilation tool used during test execution. By default, `babel-jest` is used. You can configure it to use either [babel-jest](https://www.npmjs.com/package/babel-jest) or [ts-jest](https://github.com/kulshekhar/ts-jest).
20
14
 
15
+ :::info Additional
16
+ `babel-jest` can compile TypeScript files but does not perform type checking. If you want to perform type checking on your TypeScript files while running test cases, you can use `ts-jest`.
21
17
  :::
@@ -8,9 +8,12 @@ sidebar_position: 1
8
8
  - **类型:** `'babel-jest' | 'ts-jest'`
9
9
  - **默认值:** `babel-jest`
10
10
 
11
- 配置执行测试的时候对于源码的编译工具: [babel-jest](https://www.npmjs.com/package/babel-jest) 或 [ts-jest](https://github.com/kulshekhar/ts-jest)。默认使用 `babel-jest`。
11
+ :::caution Caution
12
+ 请先在当前应用项目根目录使用 [new](/apis/app/commands#modern-new) 启用测试功能。
13
+ :::
12
14
 
13
- :::info 补充信息
14
- `babel-jest` 也可以编译 TS 文件,但不会类型报错,如果你需要跑测试的时候对 TS 类型进行校验,那么请使用 `ts-jest`。
15
+ 配置执行测试时的编译工具,默认使用 `babel-jest`。可配置为 [babel-jest](https://www.npmjs.com/package/babel-jest) 或 [ts-jest](https://github.com/kulshekhar/ts-jest)。
15
16
 
17
+ :::info 补充信息
18
+ `babel-jest` 可以编译 TS 文件,但没有类型校验。如果你希望运行测试用例的时,能对 TS 类型进行校验,可以使用 `ts-jest`。
16
19
  :::
package/package.json CHANGED
@@ -15,14 +15,14 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-next-1686828255168",
18
+ "version": "0.0.0-next-1686834137560",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "peerDependencies": {
25
- "@modern-js/builder-doc": "0.0.0-next-1686828255168"
25
+ "@modern-js/builder-doc": "0.0.0-next-1686834137560"
26
26
  },
27
27
  "devDependencies": {
28
28
  "classnames": "^2",
@@ -34,9 +34,9 @@
34
34
  "fs-extra": "^10",
35
35
  "@types/node": "^16",
36
36
  "@types/fs-extra": "^9",
37
- "@modern-js/builder-doc": "0.0.0-next-1686828255168",
38
- "@modern-js/doc-tools": "0.0.0-next-1686828255168",
39
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1686828255168"
37
+ "@modern-js/builder-doc": "0.0.0-next-1686834137560",
38
+ "@modern-js/doc-tools": "0.0.0-next-1686834137560",
39
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1686834137560"
40
40
  },
41
41
  "scripts": {
42
42
  "dev": "modern dev",