@modern-js/main-doc 0.0.0-next-1681065075872 → 0.0.0-next-1681135597778

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,10 +1,12 @@
1
1
  # @modern-js/main-doc
2
2
 
3
- ## 0.0.0-next-1681065075872
3
+ ## 0.0.0-next-1681135597778
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - @modern-js/builder-doc@0.0.0-next-1681065075872
7
+ - Updated dependencies [1feacdc7d]
8
+ - Updated dependencies [348306d41]
9
+ - @modern-js/builder-doc@0.0.0-next-1681135597778
8
10
 
9
11
  ## 2.12.0
10
12
 
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_label: scriptLoading
3
+ ---
4
+
5
+ # html.scriptLoading
6
+
7
+ :::tip
8
+ This config is provided by Modern.js Builder, more detail can see [html.scriptLoading](https://modernjs.dev/builder/en/api/config-html.html#htmlscriptloading).
9
+ :::
10
+
11
+ import Main from '@modern-js/builder-doc/docs/en/config/html/scriptLoading.md';
12
+
13
+ <Main />
@@ -14,7 +14,7 @@ For example, when the configuration and directory structure is as follows:
14
14
  ```ts title="modern.config.ts"
15
15
  export default defineConfig({
16
16
  source: {
17
- disableEntryDirs: './src/one',
17
+ disableEntryDirs: ['./src/one'],
18
18
  },
19
19
  });
20
20
  ```
@@ -0,0 +1,13 @@
1
+ ---
2
+ sidebar_label: scriptLoading
3
+ ---
4
+
5
+ # html.scriptLoading
6
+
7
+ :::tip
8
+ 该配置由 Modern.js Builder 提供,更多信息可参考 [html.scriptLoading](https://modernjs.dev/builder/api/config-html.html#htmlscriptloading)。
9
+ :::
10
+
11
+ import Main from '@modern-js/builder-doc/docs/zh/config/html/scriptLoading.md';
12
+
13
+ <Main />
@@ -7,14 +7,14 @@ sidebar_label: disableEntryDirs
7
7
  - **类型:** `string[]`
8
8
  - **默认值:** `[]`
9
9
 
10
- 默认会根据 `src` 目录识别应用入口,可通过该选项禁止某些目录被识别为应用入口。
10
+ Modern.js 默认会根据 `src` 目录识别应用入口,你可以通过该选项禁止某些目录被识别为应用入口。
11
11
 
12
12
  例如,当配置与目录结构如下时:
13
13
 
14
14
  ```ts title="modern.config.ts"
15
15
  export default defineConfig({
16
16
  source: {
17
- disableEntryDirs: './src/one',
17
+ disableEntryDirs: ['./src/one'],
18
18
  },
19
19
  });
20
20
  ```
@@ -91,7 +91,7 @@ pnpm run release
91
91
  执行该命令时,将会依次判断 Monorepo 中所有的 packages 的版本是否在 NPM 中存在,如果不存在将会执行 `publish` 命令发布。
92
92
 
93
93
  :::warning
94
- 当 Monorepo 中包之间依赖关系使用 workspace 声明时,注意不要直接在 package 对应的子目录直接执行 `npm publish` 发布 package,使用 `relesae` 命令在发布时将会自动去除 workspace 声明,确保 NPM 包发布之后可用。
94
+ 当 Monorepo 中包之间依赖关系使用 workspace 声明时,注意不要直接在 package 对应的子目录直接执行 `npm publish` 发布 package,使用 `release` 命令在发布时将会自动去除 workspace 声明,确保 NPM 包发布之后可用。
95
95
 
96
96
  :::
97
97
 
@@ -133,7 +133,7 @@ pnpm run bump -- --ignore module-2 --ignore module-3
133
133
 
134
134
  ### release 命令参数
135
135
 
136
- - `--otp` 使用 `npm token` 执行 relesae 命令发布对应包
136
+ - `--otp` 使用 `npm token` 执行 release 命令发布对应包
137
137
 
138
138
  ```bash
139
139
  pnpm run relese -- --otp <token>
package/package.json CHANGED
@@ -11,13 +11,13 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-1681065075872",
14
+ "version": "0.0.0-next-1681135597778",
15
15
  "publishConfig": {
16
16
  "registry": "https://registry.npmjs.org/",
17
17
  "access": "public"
18
18
  },
19
19
  "peerDependencies": {
20
- "@modern-js/builder-doc": "0.0.0-next-1681065075872"
20
+ "@modern-js/builder-doc": "0.0.0-next-1681135597778"
21
21
  },
22
22
  "devDependencies": {
23
23
  "classnames": "^2",
@@ -29,9 +29,9 @@
29
29
  "fs-extra": "^10",
30
30
  "@types/node": "^16",
31
31
  "@types/fs-extra": "^9",
32
- "@modern-js/builder-doc": "0.0.0-next-1681065075872",
33
- "@modern-js/doc-tools": "0.0.0-next-1681065075872",
34
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1681065075872"
32
+ "@modern-js/builder-doc": "0.0.0-next-1681135597778",
33
+ "@modern-js/doc-tools": "0.0.0-next-1681135597778",
34
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-next-1681135597778"
35
35
  },
36
36
  "scripts": {
37
37
  "dev": "modern dev",