@modern-js/module-tools-docs 2.0.1 → 2.0.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.
Files changed (192) hide show
  1. package/doc_build/html/main/index.html +16 -0
  2. package/doc_build/route.json +10 -0
  3. package/doc_build/static/css/main.css +3370 -0
  4. package/doc_build/static/css/main.css.map +1 -0
  5. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +85 -0
  6. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -0
  7. package/doc_build/static/js/async/api_.js +56 -0
  8. package/doc_build/static/js/async/api_.js.map +1 -0
  9. package/doc_build/static/js/async/api_config_build-config.js +11309 -0
  10. package/doc_build/static/js/async/api_config_build-config.js.map +1 -0
  11. package/doc_build/static/js/async/api_config_build-preset.js +7849 -0
  12. package/doc_build/static/js/async/api_config_build-preset.js.map +1 -0
  13. package/doc_build/static/js/async/api_config_design-system.js +48708 -0
  14. package/doc_build/static/js/async/api_config_design-system.js.map +1 -0
  15. package/doc_build/static/js/async/api_config_plugins.js +1492 -0
  16. package/doc_build/static/js/async/api_config_plugins.js.map +1 -0
  17. package/doc_build/static/js/async/api_config_testing.js +2130 -0
  18. package/doc_build/static/js/async/api_config_testing.js.map +1 -0
  19. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js +14394 -0
  20. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js.map +1 -0
  21. package/doc_build/static/js/async/en_.js +85 -0
  22. package/doc_build/static/js/async/en_.js.map +1 -0
  23. package/doc_build/static/js/async/en_api_.js +55 -0
  24. package/doc_build/static/js/async/en_api_.js.map +1 -0
  25. package/doc_build/static/js/async/en_api_config_build-config.js +8363 -0
  26. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
  27. package/doc_build/static/js/async/en_api_config_build-preset.js +7845 -0
  28. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
  29. package/doc_build/static/js/async/en_api_config_design-system.js +16345 -0
  30. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
  31. package/doc_build/static/js/async/en_api_config_plugins.js +1492 -0
  32. package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
  33. package/doc_build/static/js/async/en_api_config_testing.js +2137 -0
  34. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
  35. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14362 -0
  36. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
  37. package/doc_build/static/js/async/en_guide_advance_asset.js +3997 -0
  38. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
  39. package/doc_build/static/js/async/en_guide_advance_build-umd.js +9861 -0
  40. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
  41. package/doc_build/static/js/async/en_guide_advance_copy.js +6539 -0
  42. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
  43. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3810 -0
  44. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
  45. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5046 -0
  46. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
  47. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +150 -0
  48. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
  49. package/doc_build/static/js/async/en_guide_advance_theme-config.js +2484 -0
  50. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
  51. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3671 -0
  52. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
  53. package/doc_build/static/js/async/en_guide_basic_command-preview.js +3961 -0
  54. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
  55. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +2970 -0
  56. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
  57. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2182 -0
  58. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
  59. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3892 -0
  60. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
  61. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +168 -0
  62. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
  63. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4762 -0
  64. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
  65. package/doc_build/static/js/async/en_guide_best-practices_components.js +21388 -0
  66. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
  67. package/doc_build/static/js/async/en_guide_intro_getting-started.js +1906 -0
  68. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
  69. package/doc_build/static/js/async/en_guide_intro_welcome.js +148 -0
  70. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
  71. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +92 -0
  72. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
  73. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2560 -0
  74. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
  75. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4177 -0
  76. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
  77. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3819 -0
  78. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
  79. package/doc_build/static/js/async/en_plugins_official-list_overview.js +70 -0
  80. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
  81. package/doc_build/static/js/async/guide_advance_asset.js +3997 -0
  82. package/doc_build/static/js/async/guide_advance_asset.js.map +1 -0
  83. package/doc_build/static/js/async/guide_advance_build-umd.js +9863 -0
  84. package/doc_build/static/js/async/guide_advance_build-umd.js.map +1 -0
  85. package/doc_build/static/js/async/guide_advance_copy.js +6539 -0
  86. package/doc_build/static/js/async/guide_advance_copy.js.map +1 -0
  87. package/doc_build/static/js/async/guide_advance_external-dependency.js +3812 -0
  88. package/doc_build/static/js/async/guide_advance_external-dependency.js.map +1 -0
  89. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js +5046 -0
  90. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js.map +1 -0
  91. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js +152 -0
  92. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +1 -0
  93. package/doc_build/static/js/async/guide_advance_theme-config.js +2475 -0
  94. package/doc_build/static/js/async/guide_advance_theme-config.js.map +1 -0
  95. package/doc_build/static/js/async/guide_basic_before-getting-started.js +3662 -0
  96. package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +1 -0
  97. package/doc_build/static/js/async/guide_basic_command-preview.js +3793 -0
  98. package/doc_build/static/js/async/guide_basic_command-preview.js.map +1 -0
  99. package/doc_build/static/js/async/guide_basic_modify-output-product.js +2949 -0
  100. package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +1 -0
  101. package/doc_build/static/js/async/guide_basic_publish-your-project.js +2243 -0
  102. package/doc_build/static/js/async/guide_basic_publish-your-project.js.map +1 -0
  103. package/doc_build/static/js/async/guide_basic_test-your-project.js +3892 -0
  104. package/doc_build/static/js/async/guide_basic_test-your-project.js.map +1 -0
  105. package/doc_build/static/js/async/guide_basic_use-micro-generator.js +172 -0
  106. package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +1 -0
  107. package/doc_build/static/js/async/guide_basic_using-storybook.js +4762 -0
  108. package/doc_build/static/js/async/guide_basic_using-storybook.js.map +1 -0
  109. package/doc_build/static/js/async/guide_best-practices_components.js +21088 -0
  110. package/doc_build/static/js/async/guide_best-practices_components.js.map +1 -0
  111. package/doc_build/static/js/async/guide_intro_getting-started.js +1782 -0
  112. package/doc_build/static/js/async/guide_intro_getting-started.js.map +1 -0
  113. package/doc_build/static/js/async/guide_intro_welcome.js +148 -0
  114. package/doc_build/static/js/async/guide_intro_welcome.js.map +1 -0
  115. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js +92 -0
  116. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +1 -0
  117. package/doc_build/static/js/async/index.js +85 -0
  118. package/doc_build/static/js/async/index.js.map +1 -0
  119. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +447 -0
  120. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
  121. package/doc_build/static/js/async/plugins_guide_getting-started.js +2608 -0
  122. package/doc_build/static/js/async/plugins_guide_getting-started.js.map +1 -0
  123. package/doc_build/static/js/async/plugins_guide_plugin-object.js +4173 -0
  124. package/doc_build/static/js/async/plugins_guide_plugin-object.js.map +1 -0
  125. package/doc_build/static/js/async/plugins_guide_setup-function.js +3819 -0
  126. package/doc_build/static/js/async/plugins_guide_setup-function.js.map +1 -0
  127. package/doc_build/static/js/async/plugins_official-list_overview.js +70 -0
  128. package/doc_build/static/js/async/plugins_official-list_overview.js.map +1 -0
  129. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +6656 -0
  130. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +1 -0
  131. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
  132. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +1 -0
  133. package/doc_build/static/js/builder-runtime.js +1375 -0
  134. package/doc_build/static/js/builder-runtime.js.map +1 -0
  135. package/doc_build/static/js/lib-lodash.js +4907 -0
  136. package/doc_build/static/js/lib-lodash.js.map +1 -0
  137. package/doc_build/static/js/lib-polyfill.js +24769 -0
  138. package/doc_build/static/js/lib-polyfill.js.map +1 -0
  139. package/doc_build/static/js/lib-react.js +39510 -0
  140. package/doc_build/static/js/lib-react.js.map +1 -0
  141. package/doc_build/static/js/main.js +9237 -0
  142. package/doc_build/static/js/main.js.map +1 -0
  143. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +8532 -0
  144. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -0
  145. package/docs/en/api/config/build-config.md +5 -5
  146. package/docs/en/api/plugin-api/plugin-hooks.md +1 -1
  147. package/docs/en/guide/advance/asset.mdx +1 -1
  148. package/docs/en/guide/advance/build-umd.mdx +3 -3
  149. package/docs/en/guide/advance/copy.md +5 -5
  150. package/docs/en/guide/advance/external-dependency.mdx +2 -2
  151. package/docs/en/guide/advance/in-depth-about-build.md +7 -7
  152. package/docs/en/guide/advance/in-depth-about-dev-command.md +1 -1
  153. package/docs/en/guide/advance/theme-config.mdx +2 -2
  154. package/docs/en/guide/basic/before-getting-started.md +1 -1
  155. package/docs/en/guide/basic/command-preview.md +2 -2
  156. package/docs/en/guide/basic/modify-output-product.md +23 -22
  157. package/docs/en/guide/basic/publish-your-project.md +4 -4
  158. package/docs/en/guide/basic/test-your-project.mdx +5 -3
  159. package/docs/en/guide/basic/use-micro-generator.md +9 -5
  160. package/docs/en/guide/basic/using-storybook.mdx +6 -4
  161. package/docs/en/guide/best-practices/components.mdx +103 -97
  162. package/docs/en/guide/intro/getting-started.md +2 -2
  163. package/docs/en/index.md +14 -17
  164. package/docs/en/plugins/guide/getting-started.mdx +2 -2
  165. package/docs/en/plugins/guide/setup-function.mdx +2 -2
  166. package/docs/zh/api/config/_category_.json +1 -1
  167. package/docs/zh/api/config/build-config.md +16 -5
  168. package/docs/zh/api/config/plugins.md +1 -1
  169. package/docs/zh/api/index.md +1 -0
  170. package/docs/zh/api/plugin-api/_category_.json +1 -1
  171. package/docs/zh/api/plugin-api/plugin-hooks.md +56 -55
  172. package/docs/zh/guide/advance/asset.mdx +1 -1
  173. package/docs/zh/guide/advance/build-umd.mdx +3 -3
  174. package/docs/zh/guide/advance/copy.md +5 -5
  175. package/docs/zh/guide/advance/external-dependency.mdx +3 -3
  176. package/docs/zh/guide/advance/in-depth-about-build.md +7 -7
  177. package/docs/zh/guide/advance/in-depth-about-dev-command.md +1 -1
  178. package/docs/zh/guide/advance/theme-config.mdx +2 -2
  179. package/docs/zh/guide/basic/before-getting-started.md +1 -1
  180. package/docs/zh/guide/basic/command-preview.md +2 -2
  181. package/docs/zh/guide/basic/modify-output-product.md +30 -30
  182. package/docs/zh/guide/basic/publish-your-project.md +4 -4
  183. package/docs/zh/guide/basic/test-your-project.mdx +5 -3
  184. package/docs/zh/guide/basic/use-micro-generator.md +5 -5
  185. package/docs/zh/guide/basic/using-storybook.mdx +6 -4
  186. package/docs/zh/guide/best-practices/components.mdx +10 -10
  187. package/docs/zh/guide/intro/getting-started.md +2 -2
  188. package/docs/zh/index.md +1 -1
  189. package/docs/zh/plugins/guide/getting-started.mdx +3 -3
  190. package/docs/zh/plugins/guide/setup-function.mdx +2 -2
  191. package/modern.config.ts +4 -3
  192. package/package.json +3 -3
@@ -0,0 +1,3793 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["guide_basic_command-preview"],{
3
+
4
+ /***/ "./docs/zh/guide/basic/command-preview.md":
5
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+ __webpack_require__.r(__webpack_exports__);
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "CH": function() { return /* binding */ CH; },
10
+ /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
+ /* harmony export */ "content": function() { return /* binding */ content; },
12
+ /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
+ /* harmony export */ "title": function() { return /* binding */ title; },
14
+ /* harmony export */ "toc": function() { return /* binding */ toc; }
15
+ /* harmony export */ });
16
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
17
+ /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
+ /*@jsxRuntime automatic @jsxImportSource react*/
19
+
20
+
21
+ var CH = {
22
+ annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
+ Code: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Code
24
+ };
25
+ var chCodeConfig = {
26
+ "staticMediaQuery": "not screen, (max-width: 768px)",
27
+ "theme": {
28
+ "name": "nord",
29
+ "type": "dark",
30
+ "semanticHighlighting": true,
31
+ "colors": {
32
+ "focusBorder": "#3b4252",
33
+ "foreground": "#d8dee9",
34
+ "activityBar.background": "#2e3440",
35
+ "activityBar.dropBackground": "#3b4252",
36
+ "activityBar.foreground": "#d8dee9",
37
+ "activityBar.activeBorder": "#88c0d0",
38
+ "activityBar.activeBackground": "#3b4252",
39
+ "activityBarBadge.background": "#88c0d0",
40
+ "activityBarBadge.foreground": "#2e3440",
41
+ "badge.foreground": "#2e3440",
42
+ "badge.background": "#88c0d0",
43
+ "button.background": "#88c0d0ee",
44
+ "button.foreground": "#2e3440",
45
+ "button.hoverBackground": "#88c0d0",
46
+ "button.secondaryBackground": "#434c5e",
47
+ "button.secondaryForeground": "#d8dee9",
48
+ "button.secondaryHoverBackground": "#4c566a",
49
+ "charts.red": "#bf616a",
50
+ "charts.blue": "#81a1c1",
51
+ "charts.yellow": "#ebcb8b",
52
+ "charts.orange": "#d08770",
53
+ "charts.green": "#a3be8c",
54
+ "charts.purple": "#b48ead",
55
+ "charts.foreground": "#d8dee9",
56
+ "charts.lines": "#88c0d0",
57
+ "debugConsole.infoForeground": "#88c0d0",
58
+ "debugConsole.warningForeground": "#ebcb8b",
59
+ "debugConsole.errorForeground": "#bf616a",
60
+ "debugConsole.sourceForeground": "#616e88",
61
+ "debugConsoleInputIcon.foreground": "#81a1c1",
62
+ "debugExceptionWidget.background": "#4c566a",
63
+ "debugExceptionWidget.border": "#2e3440",
64
+ "debugToolBar.background": "#3b4252",
65
+ "descriptionForeground": "#d8dee9e6",
66
+ "diffEditor.insertedTextBackground": "#81a1c133",
67
+ "diffEditor.removedTextBackground": "#bf616a4d",
68
+ "dropdown.background": "#3b4252",
69
+ "dropdown.border": "#3b4252",
70
+ "dropdown.foreground": "#d8dee9",
71
+ "editorActiveLineNumber.foreground": "#d8dee9cc",
72
+ "editorCursor.foreground": "#d8dee9",
73
+ "editorHint.border": "#ebcb8b00",
74
+ "editorHint.foreground": "#ebcb8b",
75
+ "editorIndentGuide.background": "#434c5eb3",
76
+ "editorIndentGuide.activeBackground": "#4c566a",
77
+ "editorInlayHint.background": "#434c5e",
78
+ "editorInlayHint.foreground": "#d8dee9",
79
+ "editorLineNumber.foreground": "#4c566a",
80
+ "editorLineNumber.activeForeground": "#d8dee9",
81
+ "editorWhitespace.foreground": "#4c566ab3",
82
+ "editorWidget.background": "#2e3440",
83
+ "editorWidget.border": "#3b4252",
84
+ "editor.background": "#2e3440",
85
+ "editor.foreground": "#d8dee9",
86
+ "editor.hoverHighlightBackground": "#3b4252",
87
+ "editor.findMatchBackground": "#88c0d066",
88
+ "editor.findMatchHighlightBackground": "#88c0d033",
89
+ "editor.findRangeHighlightBackground": "#88c0d033",
90
+ "editor.lineHighlightBackground": "#3b4252",
91
+ "editor.lineHighlightBorder": "#3b4252",
92
+ "editor.inactiveSelectionBackground": "#434c5ecc",
93
+ "editor.inlineValuesBackground": "#4c566a",
94
+ "editor.inlineValuesForeground": "#eceff4",
95
+ "editor.selectionBackground": "#434c5ecc",
96
+ "editor.selectionHighlightBackground": "#434c5ecc",
97
+ "editor.rangeHighlightBackground": "#434c5e52",
98
+ "editor.wordHighlightBackground": "#81a1c166",
99
+ "editor.wordHighlightStrongBackground": "#81a1c199",
100
+ "editor.stackFrameHighlightBackground": "#5e81ac",
101
+ "editor.focusedStackFrameHighlightBackground": "#5e81ac",
102
+ "editorError.foreground": "#bf616a",
103
+ "editorError.border": "#bf616a00",
104
+ "editorWarning.foreground": "#ebcb8b",
105
+ "editorWarning.border": "#ebcb8b00",
106
+ "editorBracketMatch.background": "#2e344000",
107
+ "editorBracketMatch.border": "#88c0d0",
108
+ "editorBracketHighlight.foreground1": "#8fbcbb",
109
+ "editorBracketHighlight.foreground2": "#88c0d0",
110
+ "editorBracketHighlight.foreground3": "#81a1c1",
111
+ "editorBracketHighlight.foreground4": "#5e81ac",
112
+ "editorBracketHighlight.foreground5": "#8fbcbb",
113
+ "editorBracketHighlight.foreground6": "#88c0d0",
114
+ "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
115
+ "editorCodeLens.foreground": "#4c566a",
116
+ "editorGroup.background": "#2e3440",
117
+ "editorGroup.border": "#3b425201",
118
+ "editorGroup.dropBackground": "#3b425299",
119
+ "editorGroupHeader.border": "#3b425200",
120
+ "editorGroupHeader.noTabsBackground": "#2e3440",
121
+ "editorGroupHeader.tabsBackground": "#2e3440",
122
+ "editorGroupHeader.tabsBorder": "#3b425200",
123
+ "editorGutter.background": "#2e3440",
124
+ "editorGutter.modifiedBackground": "#ebcb8b",
125
+ "editorGutter.addedBackground": "#a3be8c",
126
+ "editorGutter.deletedBackground": "#bf616a",
127
+ "editorHoverWidget.background": "#3b4252",
128
+ "editorHoverWidget.border": "#3b4252",
129
+ "editorLink.activeForeground": "#88c0d0",
130
+ "editorMarkerNavigation.background": "#5e81acc0",
131
+ "editorMarkerNavigationError.background": "#bf616ac0",
132
+ "editorMarkerNavigationWarning.background": "#ebcb8bc0",
133
+ "editorOverviewRuler.border": "#3b4252",
134
+ "editorOverviewRuler.currentContentForeground": "#3b4252",
135
+ "editorOverviewRuler.incomingContentForeground": "#3b4252",
136
+ "editorOverviewRuler.findMatchForeground": "#88c0d066",
137
+ "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
138
+ "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
139
+ "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
140
+ "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
141
+ "editorOverviewRuler.modifiedForeground": "#ebcb8b",
142
+ "editorOverviewRuler.addedForeground": "#a3be8c",
143
+ "editorOverviewRuler.deletedForeground": "#bf616a",
144
+ "editorOverviewRuler.errorForeground": "#bf616a",
145
+ "editorOverviewRuler.warningForeground": "#ebcb8b",
146
+ "editorOverviewRuler.infoForeground": "#81a1c1",
147
+ "editorRuler.foreground": "#434c5e",
148
+ "editorSuggestWidget.background": "#2e3440",
149
+ "editorSuggestWidget.border": "#3b4252",
150
+ "editorSuggestWidget.foreground": "#d8dee9",
151
+ "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
152
+ "editorSuggestWidget.highlightForeground": "#88c0d0",
153
+ "editorSuggestWidget.selectedBackground": "#434c5e",
154
+ "editorSuggestWidget.selectedForeground": "#d8dee9",
155
+ "extensionButton.prominentForeground": "#d8dee9",
156
+ "extensionButton.prominentBackground": "#434c5e",
157
+ "extensionButton.prominentHoverBackground": "#4c566a",
158
+ "errorForeground": "#bf616a",
159
+ "gitDecoration.modifiedResourceForeground": "#ebcb8b",
160
+ "gitDecoration.deletedResourceForeground": "#bf616a",
161
+ "gitDecoration.untrackedResourceForeground": "#a3be8c",
162
+ "gitDecoration.ignoredResourceForeground": "#d8dee966",
163
+ "gitDecoration.conflictingResourceForeground": "#5e81ac",
164
+ "gitDecoration.submoduleResourceForeground": "#8fbcbb",
165
+ "gitDecoration.stageDeletedResourceForeground": "#bf616a",
166
+ "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
167
+ "input.background": "#3b4252",
168
+ "input.foreground": "#d8dee9",
169
+ "input.placeholderForeground": "#d8dee999",
170
+ "input.border": "#3b4252",
171
+ "inputOption.activeBackground": "#5e81ac",
172
+ "inputOption.activeBorder": "#5e81ac",
173
+ "inputOption.activeForeground": "#eceff4",
174
+ "inputValidation.errorBackground": "#bf616a",
175
+ "inputValidation.errorBorder": "#bf616a",
176
+ "inputValidation.infoBackground": "#81a1c1",
177
+ "inputValidation.infoBorder": "#81a1c1",
178
+ "inputValidation.warningBackground": "#d08770",
179
+ "inputValidation.warningBorder": "#d08770",
180
+ "keybindingLabel.background": "#4c566a",
181
+ "keybindingLabel.border": "#4c566a",
182
+ "keybindingLabel.bottomBorder": "#4c566a",
183
+ "keybindingLabel.foreground": "#d8dee9",
184
+ "list.activeSelectionBackground": "#88c0d0",
185
+ "list.activeSelectionForeground": "#2e3440",
186
+ "list.inactiveSelectionBackground": "#434c5e",
187
+ "list.inactiveSelectionForeground": "#d8dee9",
188
+ "list.inactiveFocusBackground": "#434c5ecc",
189
+ "list.hoverForeground": "#eceff4",
190
+ "list.focusForeground": "#d8dee9",
191
+ "list.focusBackground": "#88c0d099",
192
+ "list.focusHighlightForeground": "#eceff4",
193
+ "list.hoverBackground": "#3b4252",
194
+ "list.dropBackground": "#88c0d099",
195
+ "list.highlightForeground": "#88c0d0",
196
+ "list.errorForeground": "#bf616a",
197
+ "list.warningForeground": "#ebcb8b",
198
+ "merge.currentHeaderBackground": "#81a1c166",
199
+ "merge.currentContentBackground": "#81a1c14d",
200
+ "merge.incomingHeaderBackground": "#8fbcbb66",
201
+ "merge.incomingContentBackground": "#8fbcbb4d",
202
+ "merge.border": "#3b425200",
203
+ "minimap.background": "#2e3440",
204
+ "minimap.errorHighlight": "#bf616acc",
205
+ "minimap.findMatchHighlight": "#88c0d0",
206
+ "minimap.selectionHighlight": "#88c0d0cc",
207
+ "minimap.warningHighlight": "#ebcb8bcc",
208
+ "minimapGutter.addedBackground": "#a3be8c",
209
+ "minimapGutter.deletedBackground": "#bf616a",
210
+ "minimapGutter.modifiedBackground": "#ebcb8b",
211
+ "minimapSlider.activeBackground": "#434c5eaa",
212
+ "minimapSlider.background": "#434c5e99",
213
+ "minimapSlider.hoverBackground": "#434c5eaa",
214
+ "notification.background": "#3b4252",
215
+ "notification.buttonBackground": "#434c5e",
216
+ "notification.buttonForeground": "#d8dee9",
217
+ "notification.buttonHoverBackground": "#4c566a",
218
+ "notification.errorBackground": "#bf616a",
219
+ "notification.errorForeground": "#2e3440",
220
+ "notification.foreground": "#d8dee9",
221
+ "notification.infoBackground": "#88c0d0",
222
+ "notification.infoForeground": "#2e3440",
223
+ "notification.warningBackground": "#ebcb8b",
224
+ "notification.warningForeground": "#2e3440",
225
+ "notificationCenter.border": "#3b425200",
226
+ "notificationCenterHeader.background": "#2e3440",
227
+ "notificationCenterHeader.foreground": "#88c0d0",
228
+ "notificationLink.foreground": "#88c0d0",
229
+ "notifications.background": "#3b4252",
230
+ "notifications.border": "#2e3440",
231
+ "notifications.foreground": "#d8dee9",
232
+ "notificationToast.border": "#3b425200",
233
+ "panel.background": "#2e3440",
234
+ "panel.border": "#3b4252",
235
+ "panelTitle.activeBorder": "#88c0d000",
236
+ "panelTitle.activeForeground": "#88c0d0",
237
+ "panelTitle.inactiveForeground": "#d8dee9",
238
+ "peekView.border": "#4c566a",
239
+ "peekViewEditor.background": "#2e3440",
240
+ "peekViewEditorGutter.background": "#2e3440",
241
+ "peekViewEditor.matchHighlightBackground": "#88c0d04d",
242
+ "peekViewResult.background": "#2e3440",
243
+ "peekViewResult.fileForeground": "#88c0d0",
244
+ "peekViewResult.lineForeground": "#d8dee966",
245
+ "peekViewResult.matchHighlightBackground": "#88c0d0cc",
246
+ "peekViewResult.selectionBackground": "#434c5e",
247
+ "peekViewResult.selectionForeground": "#d8dee9",
248
+ "peekViewTitle.background": "#3b4252",
249
+ "peekViewTitleDescription.foreground": "#d8dee9",
250
+ "peekViewTitleLabel.foreground": "#88c0d0",
251
+ "pickerGroup.border": "#3b4252",
252
+ "pickerGroup.foreground": "#88c0d0",
253
+ "progressBar.background": "#88c0d0",
254
+ "quickInputList.focusBackground": "#88c0d0",
255
+ "quickInputList.focusForeground": "#2e3440",
256
+ "sash.hoverBorder": "#88c0d0",
257
+ "scrollbar.shadow": "#00000066",
258
+ "scrollbarSlider.activeBackground": "#434c5eaa",
259
+ "scrollbarSlider.background": "#434c5e99",
260
+ "scrollbarSlider.hoverBackground": "#434c5eaa",
261
+ "selection.background": "#88c0d099",
262
+ "sideBar.background": "#2e3440",
263
+ "sideBar.foreground": "#d8dee9",
264
+ "sideBar.border": "#3b4252",
265
+ "sideBarSectionHeader.background": "#3b4252",
266
+ "sideBarSectionHeader.foreground": "#d8dee9",
267
+ "sideBarTitle.foreground": "#d8dee9",
268
+ "statusBar.background": "#3b4252",
269
+ "statusBar.debuggingBackground": "#5e81ac",
270
+ "statusBar.debuggingForeground": "#d8dee9",
271
+ "statusBar.noFolderForeground": "#d8dee9",
272
+ "statusBar.noFolderBackground": "#3b4252",
273
+ "statusBar.foreground": "#d8dee9",
274
+ "statusBarItem.activeBackground": "#4c566a",
275
+ "statusBarItem.hoverBackground": "#434c5e",
276
+ "statusBarItem.prominentBackground": "#3b4252",
277
+ "statusBarItem.prominentHoverBackground": "#434c5e",
278
+ "statusBarItem.errorBackground": "#3b4252",
279
+ "statusBarItem.errorForeground": "#bf616a",
280
+ "statusBarItem.warningBackground": "#ebcb8b",
281
+ "statusBarItem.warningForeground": "#2e3440",
282
+ "statusBar.border": "#3b425200",
283
+ "tab.activeBackground": "#3b4252",
284
+ "tab.activeForeground": "#d8dee9",
285
+ "tab.border": "#3b425200",
286
+ "tab.activeBorder": "#88c0d000",
287
+ "tab.unfocusedActiveBorder": "#88c0d000",
288
+ "tab.inactiveBackground": "#2e3440",
289
+ "tab.inactiveForeground": "#d8dee966",
290
+ "tab.unfocusedActiveForeground": "#d8dee999",
291
+ "tab.unfocusedInactiveForeground": "#d8dee966",
292
+ "tab.hoverBackground": "#3b4252cc",
293
+ "tab.unfocusedHoverBackground": "#3b4252b3",
294
+ "tab.hoverBorder": "#88c0d000",
295
+ "tab.unfocusedHoverBorder": "#88c0d000",
296
+ "tab.activeBorderTop": "#88c0d000",
297
+ "tab.unfocusedActiveBorderTop": "#88c0d000",
298
+ "tab.lastPinnedBorder": "#4c566a",
299
+ "terminal.background": "#2e3440",
300
+ "terminal.foreground": "#d8dee9",
301
+ "terminal.ansiBlack": "#3b4252",
302
+ "terminal.ansiRed": "#bf616a",
303
+ "terminal.ansiGreen": "#a3be8c",
304
+ "terminal.ansiYellow": "#ebcb8b",
305
+ "terminal.ansiBlue": "#81a1c1",
306
+ "terminal.ansiMagenta": "#b48ead",
307
+ "terminal.ansiCyan": "#88c0d0",
308
+ "terminal.ansiWhite": "#e5e9f0",
309
+ "terminal.ansiBrightBlack": "#4c566a",
310
+ "terminal.ansiBrightRed": "#bf616a",
311
+ "terminal.ansiBrightGreen": "#a3be8c",
312
+ "terminal.ansiBrightYellow": "#ebcb8b",
313
+ "terminal.ansiBrightBlue": "#81a1c1",
314
+ "terminal.ansiBrightMagenta": "#b48ead",
315
+ "terminal.ansiBrightCyan": "#8fbcbb",
316
+ "terminal.ansiBrightWhite": "#eceff4",
317
+ "terminal.tab.activeBorder": "#88c0d0",
318
+ "textBlockQuote.background": "#3b4252",
319
+ "textBlockQuote.border": "#81a1c1",
320
+ "textCodeBlock.background": "#4c566a",
321
+ "textLink.activeForeground": "#88c0d0",
322
+ "textLink.foreground": "#88c0d0",
323
+ "textPreformat.foreground": "#8fbcbb",
324
+ "textSeparator.foreground": "#eceff4",
325
+ "titleBar.activeBackground": "#2e3440",
326
+ "titleBar.activeForeground": "#d8dee9",
327
+ "titleBar.border": "#2e344000",
328
+ "titleBar.inactiveBackground": "#2e3440",
329
+ "titleBar.inactiveForeground": "#d8dee966",
330
+ "tree.indentGuidesStroke": "#616e88",
331
+ "walkThrough.embeddedEditorBackground": "#2e3440",
332
+ "welcomePage.buttonBackground": "#434c5e",
333
+ "welcomePage.buttonHoverBackground": "#4c566a",
334
+ "widget.shadow": "#00000066"
335
+ },
336
+ "tokenColors": [{
337
+ "settings": {
338
+ "foreground": "#d8dee9ff",
339
+ "background": "#2e3440ff"
340
+ }
341
+ }, {
342
+ "scope": "emphasis",
343
+ "settings": {
344
+ "fontStyle": "italic"
345
+ }
346
+ }, {
347
+ "scope": "strong",
348
+ "settings": {
349
+ "fontStyle": "bold"
350
+ }
351
+ }, {
352
+ "name": "Comment",
353
+ "scope": "comment",
354
+ "settings": {
355
+ "foreground": "#616E88"
356
+ }
357
+ }, {
358
+ "name": "Constant Character",
359
+ "scope": "constant.character",
360
+ "settings": {
361
+ "foreground": "#EBCB8B"
362
+ }
363
+ }, {
364
+ "name": "Constant Character Escape",
365
+ "scope": "constant.character.escape",
366
+ "settings": {
367
+ "foreground": "#EBCB8B"
368
+ }
369
+ }, {
370
+ "name": "Constant Language",
371
+ "scope": "constant.language",
372
+ "settings": {
373
+ "foreground": "#81A1C1"
374
+ }
375
+ }, {
376
+ "name": "Constant Numeric",
377
+ "scope": "constant.numeric",
378
+ "settings": {
379
+ "foreground": "#B48EAD"
380
+ }
381
+ }, {
382
+ "name": "Constant Regexp",
383
+ "scope": "constant.regexp",
384
+ "settings": {
385
+ "foreground": "#EBCB8B"
386
+ }
387
+ }, {
388
+ "name": "Entity Name Class/Type",
389
+ "scope": ["entity.name.class", "entity.name.type.class"],
390
+ "settings": {
391
+ "foreground": "#8FBCBB"
392
+ }
393
+ }, {
394
+ "name": "Entity Name Function",
395
+ "scope": "entity.name.function",
396
+ "settings": {
397
+ "foreground": "#88C0D0"
398
+ }
399
+ }, {
400
+ "name": "Entity Name Tag",
401
+ "scope": "entity.name.tag",
402
+ "settings": {
403
+ "foreground": "#81A1C1"
404
+ }
405
+ }, {
406
+ "name": "Entity Other Attribute Name",
407
+ "scope": "entity.other.attribute-name",
408
+ "settings": {
409
+ "foreground": "#8FBCBB"
410
+ }
411
+ }, {
412
+ "name": "Entity Other Inherited Class",
413
+ "scope": "entity.other.inherited-class",
414
+ "settings": {
415
+ "fontStyle": "bold",
416
+ "foreground": "#8FBCBB"
417
+ }
418
+ }, {
419
+ "name": "Invalid Deprecated",
420
+ "scope": "invalid.deprecated",
421
+ "settings": {
422
+ "foreground": "#D8DEE9",
423
+ "background": "#EBCB8B"
424
+ }
425
+ }, {
426
+ "name": "Invalid Illegal",
427
+ "scope": "invalid.illegal",
428
+ "settings": {
429
+ "foreground": "#D8DEE9",
430
+ "background": "#BF616A"
431
+ }
432
+ }, {
433
+ "name": "Keyword",
434
+ "scope": "keyword",
435
+ "settings": {
436
+ "foreground": "#81A1C1"
437
+ }
438
+ }, {
439
+ "name": "Keyword Operator",
440
+ "scope": "keyword.operator",
441
+ "settings": {
442
+ "foreground": "#81A1C1"
443
+ }
444
+ }, {
445
+ "name": "Keyword Other New",
446
+ "scope": "keyword.other.new",
447
+ "settings": {
448
+ "foreground": "#81A1C1"
449
+ }
450
+ }, {
451
+ "name": "Markup Bold",
452
+ "scope": "markup.bold",
453
+ "settings": {
454
+ "fontStyle": "bold"
455
+ }
456
+ }, {
457
+ "name": "Markup Changed",
458
+ "scope": "markup.changed",
459
+ "settings": {
460
+ "foreground": "#EBCB8B"
461
+ }
462
+ }, {
463
+ "name": "Markup Deleted",
464
+ "scope": "markup.deleted",
465
+ "settings": {
466
+ "foreground": "#BF616A"
467
+ }
468
+ }, {
469
+ "name": "Markup Inserted",
470
+ "scope": "markup.inserted",
471
+ "settings": {
472
+ "foreground": "#A3BE8C"
473
+ }
474
+ }, {
475
+ "name": "Meta Preprocessor",
476
+ "scope": "meta.preprocessor",
477
+ "settings": {
478
+ "foreground": "#5E81AC"
479
+ }
480
+ }, {
481
+ "name": "Punctuation",
482
+ "scope": "punctuation",
483
+ "settings": {
484
+ "foreground": "#ECEFF4"
485
+ }
486
+ }, {
487
+ "name": "Punctuation Definition Parameters",
488
+ "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
489
+ "settings": {
490
+ "foreground": "#ECEFF4"
491
+ }
492
+ }, {
493
+ "name": "Punctuation Definition Tag",
494
+ "scope": "punctuation.definition.tag",
495
+ "settings": {
496
+ "foreground": "#81A1C1"
497
+ }
498
+ }, {
499
+ "name": "Punctuation Definition Comment",
500
+ "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
501
+ "settings": {
502
+ "foreground": "#616E88"
503
+ }
504
+ }, {
505
+ "name": "Punctuation Section",
506
+ "scope": "punctuation.section",
507
+ "settings": {
508
+ "foreground": "#ECEFF4"
509
+ }
510
+ }, {
511
+ "name": "Punctuation Section Embedded",
512
+ "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
513
+ "settings": {
514
+ "foreground": "#81A1C1"
515
+ }
516
+ }, {
517
+ "name": "Punctuation Terminator",
518
+ "scope": "punctuation.terminator",
519
+ "settings": {
520
+ "foreground": "#81A1C1"
521
+ }
522
+ }, {
523
+ "name": "Punctuation Variable",
524
+ "scope": "punctuation.definition.variable",
525
+ "settings": {
526
+ "foreground": "#81A1C1"
527
+ }
528
+ }, {
529
+ "name": "Storage",
530
+ "scope": "storage",
531
+ "settings": {
532
+ "foreground": "#81A1C1"
533
+ }
534
+ }, {
535
+ "name": "String",
536
+ "scope": "string",
537
+ "settings": {
538
+ "foreground": "#A3BE8C"
539
+ }
540
+ }, {
541
+ "name": "String Regexp",
542
+ "scope": "string.regexp",
543
+ "settings": {
544
+ "foreground": "#EBCB8B"
545
+ }
546
+ }, {
547
+ "name": "Support Class",
548
+ "scope": "support.class",
549
+ "settings": {
550
+ "foreground": "#8FBCBB"
551
+ }
552
+ }, {
553
+ "name": "Support Constant",
554
+ "scope": "support.constant",
555
+ "settings": {
556
+ "foreground": "#81A1C1"
557
+ }
558
+ }, {
559
+ "name": "Support Function",
560
+ "scope": "support.function",
561
+ "settings": {
562
+ "foreground": "#88C0D0"
563
+ }
564
+ }, {
565
+ "name": "Support Function Construct",
566
+ "scope": "support.function.construct",
567
+ "settings": {
568
+ "foreground": "#81A1C1"
569
+ }
570
+ }, {
571
+ "name": "Support Type",
572
+ "scope": "support.type",
573
+ "settings": {
574
+ "foreground": "#8FBCBB"
575
+ }
576
+ }, {
577
+ "name": "Support Type Exception",
578
+ "scope": "support.type.exception",
579
+ "settings": {
580
+ "foreground": "#8FBCBB"
581
+ }
582
+ }, {
583
+ "name": "Token Debug",
584
+ "scope": "token.debug-token",
585
+ "settings": {
586
+ "foreground": "#b48ead"
587
+ }
588
+ }, {
589
+ "name": "Token Error",
590
+ "scope": "token.error-token",
591
+ "settings": {
592
+ "foreground": "#bf616a"
593
+ }
594
+ }, {
595
+ "name": "Token Info",
596
+ "scope": "token.info-token",
597
+ "settings": {
598
+ "foreground": "#88c0d0"
599
+ }
600
+ }, {
601
+ "name": "Token Warning",
602
+ "scope": "token.warn-token",
603
+ "settings": {
604
+ "foreground": "#ebcb8b"
605
+ }
606
+ }, {
607
+ "name": "Variable",
608
+ "scope": "variable.other",
609
+ "settings": {
610
+ "foreground": "#D8DEE9"
611
+ }
612
+ }, {
613
+ "name": "Variable Language",
614
+ "scope": "variable.language",
615
+ "settings": {
616
+ "foreground": "#81A1C1"
617
+ }
618
+ }, {
619
+ "name": "Variable Parameter",
620
+ "scope": "variable.parameter",
621
+ "settings": {
622
+ "foreground": "#D8DEE9"
623
+ }
624
+ }, {
625
+ "name": "[C/CPP] Punctuation Separator Pointer-Access",
626
+ "scope": "punctuation.separator.pointer-access.c",
627
+ "settings": {
628
+ "foreground": "#81A1C1"
629
+ }
630
+ }, {
631
+ "name": "[C/CPP] Meta Preprocessor Include",
632
+ "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
633
+ "settings": {
634
+ "foreground": "#8FBCBB"
635
+ }
636
+ }, {
637
+ "name": "[C/CPP] Conditional Directive",
638
+ "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
639
+ "settings": {
640
+ "foreground": "#5E81AC",
641
+ "fontStyle": "bold"
642
+ }
643
+ }, {
644
+ "name": "[CSS] Constant Other Color RGB Value",
645
+ "scope": "source.css constant.other.color.rgb-value",
646
+ "settings": {
647
+ "foreground": "#B48EAD"
648
+ }
649
+ }, {
650
+ "name": "[CSS](Function) Meta Property-Value",
651
+ "scope": "source.css meta.property-value",
652
+ "settings": {
653
+ "foreground": "#88C0D0"
654
+ }
655
+ }, {
656
+ "name": "[CSS] Media Queries",
657
+ "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
658
+ "settings": {
659
+ "foreground": "#D08770"
660
+ }
661
+ }, {
662
+ "name": "[CSS] Punctuation Definition Keyword",
663
+ "scope": "source.css punctuation.definition.keyword",
664
+ "settings": {
665
+ "foreground": "#81A1C1"
666
+ }
667
+ }, {
668
+ "name": "[CSS] Support Type Property Name",
669
+ "scope": "source.css support.type.property-name",
670
+ "settings": {
671
+ "foreground": "#D8DEE9"
672
+ }
673
+ }, {
674
+ "name": "[diff] Meta Range Context",
675
+ "scope": "source.diff meta.diff.range.context",
676
+ "settings": {
677
+ "foreground": "#8FBCBB"
678
+ }
679
+ }, {
680
+ "name": "[diff] Meta Header From-File",
681
+ "scope": "source.diff meta.diff.header.from-file",
682
+ "settings": {
683
+ "foreground": "#8FBCBB"
684
+ }
685
+ }, {
686
+ "name": "[diff] Punctuation Definition From-File",
687
+ "scope": "source.diff punctuation.definition.from-file",
688
+ "settings": {
689
+ "foreground": "#8FBCBB"
690
+ }
691
+ }, {
692
+ "name": "[diff] Punctuation Definition Range",
693
+ "scope": "source.diff punctuation.definition.range",
694
+ "settings": {
695
+ "foreground": "#8FBCBB"
696
+ }
697
+ }, {
698
+ "name": "[diff] Punctuation Definition Separator",
699
+ "scope": "source.diff punctuation.definition.separator",
700
+ "settings": {
701
+ "foreground": "#81A1C1"
702
+ }
703
+ }, {
704
+ "name": "[Elixir](JakeBecker.elixir-ls) module names",
705
+ "scope": "entity.name.type.module.elixir",
706
+ "settings": {
707
+ "foreground": "#8FBCBB"
708
+ }
709
+ }, {
710
+ "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
711
+ "scope": "variable.other.readwrite.module.elixir",
712
+ "settings": {
713
+ "foreground": "#D8DEE9",
714
+ "fontStyle": "bold"
715
+ }
716
+ }, {
717
+ "name": "[Elixir](JakeBecker.elixir-ls) atoms",
718
+ "scope": "constant.other.symbol.elixir",
719
+ "settings": {
720
+ "foreground": "#D8DEE9",
721
+ "fontStyle": "bold"
722
+ }
723
+ }, {
724
+ "name": "[Elixir](JakeBecker.elixir-ls) modules",
725
+ "scope": "variable.other.constant.elixir",
726
+ "settings": {
727
+ "foreground": "#8FBCBB"
728
+ }
729
+ }, {
730
+ "name": "[Go] String Format Placeholder",
731
+ "scope": "source.go constant.other.placeholder.go",
732
+ "settings": {
733
+ "foreground": "#EBCB8B"
734
+ }
735
+ }, {
736
+ "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
737
+ "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
738
+ "settings": {
739
+ "foreground": "#81A1C1"
740
+ }
741
+ }, {
742
+ "name": "[Java](JavaDoc) Constant Other",
743
+ "scope": "source.java constant.other",
744
+ "settings": {
745
+ "foreground": "#D8DEE9"
746
+ }
747
+ }, {
748
+ "name": "[Java](JavaDoc) Keyword Other Documentation",
749
+ "scope": "source.java keyword.other.documentation",
750
+ "settings": {
751
+ "foreground": "#8FBCBB"
752
+ }
753
+ }, {
754
+ "name": "[Java](JavaDoc) Keyword Other Documentation Author",
755
+ "scope": "source.java keyword.other.documentation.author.javadoc",
756
+ "settings": {
757
+ "foreground": "#8FBCBB"
758
+ }
759
+ }, {
760
+ "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
761
+ "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
762
+ "settings": {
763
+ "foreground": "#8FBCBB"
764
+ }
765
+ }, {
766
+ "name": "[Java](JavaDoc) Keyword Other Documentation See",
767
+ "scope": "source.java keyword.other.documentation.see.javadoc",
768
+ "settings": {
769
+ "foreground": "#8FBCBB"
770
+ }
771
+ }, {
772
+ "name": "[Java] Meta Method-Call",
773
+ "scope": "source.java meta.method-call meta.method",
774
+ "settings": {
775
+ "foreground": "#88C0D0"
776
+ }
777
+ }, {
778
+ "name": "[Java](JavaDoc) Meta Tag Template Link",
779
+ "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
780
+ "settings": {
781
+ "foreground": "#8FBCBB"
782
+ }
783
+ }, {
784
+ "name": "[Java](JavaDoc) Meta Tag Template Value",
785
+ "scope": "source.java meta.tag.template.value.javadoc",
786
+ "settings": {
787
+ "foreground": "#88C0D0"
788
+ }
789
+ }, {
790
+ "name": "[Java](JavaDoc) Punctuation Definition Keyword",
791
+ "scope": "source.java punctuation.definition.keyword.javadoc",
792
+ "settings": {
793
+ "foreground": "#8FBCBB"
794
+ }
795
+ }, {
796
+ "name": "[Java](JavaDoc) Punctuation Definition Tag",
797
+ "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
798
+ "settings": {
799
+ "foreground": "#616E88"
800
+ }
801
+ }, {
802
+ "name": "[Java] Storage Modifier Import",
803
+ "scope": "source.java storage.modifier.import",
804
+ "settings": {
805
+ "foreground": "#8FBCBB"
806
+ }
807
+ }, {
808
+ "name": "[Java] Storage Modifier Package",
809
+ "scope": "source.java storage.modifier.package",
810
+ "settings": {
811
+ "foreground": "#8FBCBB"
812
+ }
813
+ }, {
814
+ "name": "[Java] Storage Type",
815
+ "scope": "source.java storage.type",
816
+ "settings": {
817
+ "foreground": "#8FBCBB"
818
+ }
819
+ }, {
820
+ "name": "[Java] Storage Type Annotation",
821
+ "scope": "source.java storage.type.annotation",
822
+ "settings": {
823
+ "foreground": "#D08770"
824
+ }
825
+ }, {
826
+ "name": "[Java] Storage Type Generic",
827
+ "scope": "source.java storage.type.generic",
828
+ "settings": {
829
+ "foreground": "#8FBCBB"
830
+ }
831
+ }, {
832
+ "name": "[Java] Storage Type Primitive",
833
+ "scope": "source.java storage.type.primitive",
834
+ "settings": {
835
+ "foreground": "#81A1C1"
836
+ }
837
+ }, {
838
+ "name": "[JavaScript] Decorator",
839
+ "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
840
+ "settings": {
841
+ "foreground": "#D08770"
842
+ }
843
+ }, {
844
+ "name": "[JavaScript] Meta Object-Literal Key",
845
+ "scope": "source.js meta.object-literal.key",
846
+ "settings": {
847
+ "foreground": "#88C0D0"
848
+ }
849
+ }, {
850
+ "name": "[JavaScript](JSDoc) Storage Type Class",
851
+ "scope": "source.js storage.type.class.jsdoc",
852
+ "settings": {
853
+ "foreground": "#8FBCBB"
854
+ }
855
+ }, {
856
+ "name": "[JavaScript] String Template Literals Punctuation",
857
+ "scope": ["source.js string.quoted.template punctuation.quasi.element.begin", "source.js string.quoted.template punctuation.quasi.element.end", "source.js string.template punctuation.definition.template-expression"],
858
+ "settings": {
859
+ "foreground": "#81A1C1"
860
+ }
861
+ }, {
862
+ "name": "[JavaScript] Interpolated String Template Punctuation Functions",
863
+ "scope": "source.js string.quoted.template meta.method-call.with-arguments",
864
+ "settings": {
865
+ "foreground": "#ECEFF4"
866
+ }
867
+ }, {
868
+ "name": "[JavaScript] String Template Literal Variable",
869
+ "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
870
+ "settings": {
871
+ "foreground": "#D8DEE9"
872
+ }
873
+ }, {
874
+ "name": "[JavaScript] Support Type Primitive",
875
+ "scope": "source.js support.type.primitive",
876
+ "settings": {
877
+ "foreground": "#81A1C1"
878
+ }
879
+ }, {
880
+ "name": "[JavaScript] Variable Other Object",
881
+ "scope": "source.js variable.other.object",
882
+ "settings": {
883
+ "foreground": "#D8DEE9"
884
+ }
885
+ }, {
886
+ "name": "[JavaScript] Variable Other Read-Write Alias",
887
+ "scope": "source.js variable.other.readwrite.alias",
888
+ "settings": {
889
+ "foreground": "#8FBCBB"
890
+ }
891
+ }, {
892
+ "name": "[JavaScript] Parentheses in Template Strings",
893
+ "scope": ["source.js meta.embedded.line meta.brace.square", "source.js meta.embedded.line meta.brace.round", "source.js string.quoted.template meta.brace.square", "source.js string.quoted.template meta.brace.round"],
894
+ "settings": {
895
+ "foreground": "#ECEFF4"
896
+ }
897
+ }, {
898
+ "name": "[HTML] Constant Character Entity",
899
+ "scope": "text.html.basic constant.character.entity.html",
900
+ "settings": {
901
+ "foreground": "#EBCB8B"
902
+ }
903
+ }, {
904
+ "name": "[HTML] Constant Other Inline-Data",
905
+ "scope": "text.html.basic constant.other.inline-data",
906
+ "settings": {
907
+ "foreground": "#D08770",
908
+ "fontStyle": "italic"
909
+ }
910
+ }, {
911
+ "name": "[HTML] Meta Tag SGML Doctype",
912
+ "scope": "text.html.basic meta.tag.sgml.doctype",
913
+ "settings": {
914
+ "foreground": "#5E81AC"
915
+ }
916
+ }, {
917
+ "name": "[HTML] Punctuation Definition Entity",
918
+ "scope": "text.html.basic punctuation.definition.entity",
919
+ "settings": {
920
+ "foreground": "#81A1C1"
921
+ }
922
+ }, {
923
+ "name": "[INI] Entity Name Section Group-Title",
924
+ "scope": "source.properties entity.name.section.group-title.ini",
925
+ "settings": {
926
+ "foreground": "#88C0D0"
927
+ }
928
+ }, {
929
+ "name": "[INI] Punctuation Separator Key-Value",
930
+ "scope": "source.properties punctuation.separator.key-value.ini",
931
+ "settings": {
932
+ "foreground": "#81A1C1"
933
+ }
934
+ }, {
935
+ "name": "[Markdown] Markup Fenced Code Block",
936
+ "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
937
+ "settings": {
938
+ "foreground": "#8FBCBB"
939
+ }
940
+ }, {
941
+ "name": "[Markdown] Markup Heading",
942
+ "scope": "markup.heading",
943
+ "settings": {
944
+ "foreground": "#88C0D0"
945
+ }
946
+ }, {
947
+ "name": "[Markdown] Markup Inline",
948
+ "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
949
+ "settings": {
950
+ "foreground": "#8FBCBB"
951
+ }
952
+ }, {
953
+ "name": "[Markdown] Markup Italic",
954
+ "scope": "text.html.markdown markup.italic",
955
+ "settings": {
956
+ "fontStyle": "italic"
957
+ }
958
+ }, {
959
+ "name": "[Markdown] Markup Link",
960
+ "scope": "text.html.markdown markup.underline.link",
961
+ "settings": {
962
+ "fontStyle": "underline"
963
+ }
964
+ }, {
965
+ "name": "[Markdown] Markup List Numbered/Unnumbered",
966
+ "scope": "text.html.markdown beginning.punctuation.definition.list",
967
+ "settings": {
968
+ "foreground": "#81A1C1"
969
+ }
970
+ }, {
971
+ "name": "[Markdown] Markup Quote Punctuation Definition",
972
+ "scope": "text.html.markdown beginning.punctuation.definition.quote",
973
+ "settings": {
974
+ "foreground": "#8FBCBB"
975
+ }
976
+ }, {
977
+ "name": "[Markdown] Markup Quote Punctuation Definition",
978
+ "scope": "text.html.markdown markup.quote",
979
+ "settings": {
980
+ "foreground": "#616E88"
981
+ }
982
+ }, {
983
+ "name": "[Markdown] Markup Math Constant",
984
+ "scope": "text.html.markdown constant.character.math.tex",
985
+ "settings": {
986
+ "foreground": "#81A1C1"
987
+ }
988
+ }, {
989
+ "name": "[Markdown] Markup Math Definition Marker",
990
+ "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
991
+ "settings": {
992
+ "foreground": "#5E81AC"
993
+ }
994
+ }, {
995
+ "name": "[Markdown] Markup Math Function Definition Marker",
996
+ "scope": "text.html.markdown punctuation.definition.function.math.tex",
997
+ "settings": {
998
+ "foreground": "#88C0D0"
999
+ }
1000
+ }, {
1001
+ "name": "[Markdown] Markup Math Operator",
1002
+ "scope": "text.html.markdown punctuation.math.operator.latex",
1003
+ "settings": {
1004
+ "foreground": "#81A1C1"
1005
+ }
1006
+ }, {
1007
+ "name": "[Markdown] Punctuation Definition Heading",
1008
+ "scope": "text.html.markdown punctuation.definition.heading",
1009
+ "settings": {
1010
+ "foreground": "#81A1C1"
1011
+ }
1012
+ }, {
1013
+ "name": "[Markdown] Punctuation Definition Constant/String",
1014
+ "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1015
+ "settings": {
1016
+ "foreground": "#81A1C1"
1017
+ }
1018
+ }, {
1019
+ "name": "[Markdown] String Other Link Description/Title",
1020
+ "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1021
+ "settings": {
1022
+ "foreground": "#88C0D0"
1023
+ }
1024
+ }, {
1025
+ "name": "[Perl] Perl Sigils",
1026
+ "scope": "source.perl punctuation.definition.variable",
1027
+ "settings": {
1028
+ "foreground": "#D8DEE9"
1029
+ }
1030
+ }, {
1031
+ "name": "[PHP] Meta Function-Call Object",
1032
+ "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1033
+ "settings": {
1034
+ "foreground": "#88C0D0"
1035
+ }
1036
+ }, {
1037
+ "name": "[Python] Decorator",
1038
+ "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1039
+ "settings": {
1040
+ "foreground": "#D08770"
1041
+ }
1042
+ }, {
1043
+ "name": "[Python] Function Call",
1044
+ "scope": "source.python meta.function-call.generic",
1045
+ "settings": {
1046
+ "foreground": "#88C0D0"
1047
+ }
1048
+ }, {
1049
+ "name": "[Python] Support Type",
1050
+ "scope": "source.python support.type",
1051
+ "settings": {
1052
+ "foreground": "#88C0D0"
1053
+ }
1054
+ }, {
1055
+ "name": "[Python] Function Parameter",
1056
+ "scope": ["source.python variable.parameter.function.language"],
1057
+ "settings": {
1058
+ "foreground": "#D8DEE9"
1059
+ }
1060
+ }, {
1061
+ "name": "[Python] Function Parameter Special",
1062
+ "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1063
+ "settings": {
1064
+ "foreground": "#81A1C1"
1065
+ }
1066
+ }, {
1067
+ "name": "[Rust] Entity types",
1068
+ "scope": "source.rust entity.name.type",
1069
+ "settings": {
1070
+ "foreground": "#8FBCBB"
1071
+ }
1072
+ }, {
1073
+ "name": "[Rust] Macro",
1074
+ "scope": "source.rust meta.macro entity.name.function",
1075
+ "settings": {
1076
+ "fontStyle": "bold",
1077
+ "foreground": "#88C0D0"
1078
+ }
1079
+ }, {
1080
+ "name": "[Rust] Attributes",
1081
+ "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1082
+ "settings": {
1083
+ "foreground": "#5E81AC"
1084
+ }
1085
+ }, {
1086
+ "name": "[Rust] Traits",
1087
+ "scope": "source.rust entity.name.type.trait",
1088
+ "settings": {
1089
+ "fontStyle": "bold"
1090
+ }
1091
+ }, {
1092
+ "name": "[Rust] Interpolation Bracket Curly",
1093
+ "scope": "source.rust punctuation.definition.interpolation",
1094
+ "settings": {
1095
+ "foreground": "#EBCB8B"
1096
+ }
1097
+ }, {
1098
+ "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1099
+ "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1100
+ "settings": {
1101
+ "foreground": "#81A1C1"
1102
+ }
1103
+ }, {
1104
+ "name": "[SCSS] Variable Interpolation",
1105
+ "scope": "source.css.scss variable.interpolation",
1106
+ "settings": {
1107
+ "foreground": "#D8DEE9",
1108
+ "fontStyle": "italic"
1109
+ }
1110
+ }, {
1111
+ "name": "[TypeScript] Decorators",
1112
+ "scope": ["source.ts punctuation.decorator", "source.ts meta.decorator variable.other.readwrite", "source.ts meta.decorator entity.name.function", "source.tsx punctuation.decorator", "source.tsx meta.decorator variable.other.readwrite", "source.tsx meta.decorator entity.name.function"],
1113
+ "settings": {
1114
+ "foreground": "#D08770"
1115
+ }
1116
+ }, {
1117
+ "name": "[TypeScript] Object-literal keys",
1118
+ "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1119
+ "settings": {
1120
+ "foreground": "#D8DEE9"
1121
+ }
1122
+ }, {
1123
+ "name": "[TypeScript] Object-literal functions",
1124
+ "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1125
+ "settings": {
1126
+ "foreground": "#88C0D0"
1127
+ }
1128
+ }, {
1129
+ "name": "[TypeScript] Type/Class",
1130
+ "scope": ["source.ts support.class", "source.ts support.type", "source.ts entity.name.type", "source.ts entity.name.class", "source.tsx support.class", "source.tsx support.type", "source.tsx entity.name.type", "source.tsx entity.name.class"],
1131
+ "settings": {
1132
+ "foreground": "#8FBCBB"
1133
+ }
1134
+ }, {
1135
+ "name": "[TypeScript] Static Class Support",
1136
+ "scope": ["source.ts support.constant.math", "source.ts support.constant.dom", "source.ts support.constant.json", "source.tsx support.constant.math", "source.tsx support.constant.dom", "source.tsx support.constant.json"],
1137
+ "settings": {
1138
+ "foreground": "#8FBCBB"
1139
+ }
1140
+ }, {
1141
+ "name": "[TypeScript] Variables",
1142
+ "scope": ["source.ts support.variable", "source.tsx support.variable"],
1143
+ "settings": {
1144
+ "foreground": "#D8DEE9"
1145
+ }
1146
+ }, {
1147
+ "name": "[TypeScript] Parentheses in Template Strings",
1148
+ "scope": ["source.ts meta.embedded.line meta.brace.square", "source.ts meta.embedded.line meta.brace.round", "source.tsx meta.embedded.line meta.brace.square", "source.tsx meta.embedded.line meta.brace.round"],
1149
+ "settings": {
1150
+ "foreground": "#ECEFF4"
1151
+ }
1152
+ }, {
1153
+ "name": "[XML] Entity Name Tag Namespace",
1154
+ "scope": "text.xml entity.name.tag.namespace",
1155
+ "settings": {
1156
+ "foreground": "#8FBCBB"
1157
+ }
1158
+ }, {
1159
+ "name": "[XML] Keyword Other Doctype",
1160
+ "scope": "text.xml keyword.other.doctype",
1161
+ "settings": {
1162
+ "foreground": "#5E81AC"
1163
+ }
1164
+ }, {
1165
+ "name": "[XML] Meta Tag Preprocessor",
1166
+ "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1167
+ "settings": {
1168
+ "foreground": "#5E81AC"
1169
+ }
1170
+ }, {
1171
+ "name": "[XML] Entity Name Tag Namespace",
1172
+ "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1173
+ "settings": {
1174
+ "foreground": "#D08770",
1175
+ "fontStyle": "italic"
1176
+ }
1177
+ }, {
1178
+ "name": "[YAML] Entity Name Tag",
1179
+ "scope": "source.yaml entity.name.tag",
1180
+ "settings": {
1181
+ "foreground": "#8FBCBB"
1182
+ }
1183
+ }]
1184
+ },
1185
+ "autoImport": true,
1186
+ "showCopyButton": true,
1187
+ "skipLanguages": [],
1188
+ "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/basic/command-preview.md"
1189
+ };
1190
+ var frontmatter = {
1191
+ "sidebar_position": 2
1192
+ };
1193
+ var toc = [{
1194
+ "id": "modern-build",
1195
+ "text": "modern build",
1196
+ "depth": 2
1197
+ }, {
1198
+ "id": "modern-new",
1199
+ "text": "modern new",
1200
+ "depth": 2
1201
+ }, {
1202
+ "id": "modern-dev",
1203
+ "text": "modern dev",
1204
+ "depth": 2
1205
+ }, {
1206
+ "id": "modern-test",
1207
+ "text": "modern test",
1208
+ "depth": 2
1209
+ }, {
1210
+ "id": "modern-lint",
1211
+ "text": "modern lint",
1212
+ "depth": 2
1213
+ }, {
1214
+ "id": "modern-change",
1215
+ "text": "modern change",
1216
+ "depth": 2
1217
+ }, {
1218
+ "id": "modern-pre",
1219
+ "text": "modern pre",
1220
+ "depth": 2
1221
+ }, {
1222
+ "id": "modern-bump",
1223
+ "text": "modern bump",
1224
+ "depth": 2
1225
+ }, {
1226
+ "id": "modern-release",
1227
+ "text": "modern release",
1228
+ "depth": 2
1229
+ }, {
1230
+ "id": "modern-gen-release-note",
1231
+ "text": "modern gen-release-note",
1232
+ "depth": 2
1233
+ }, {
1234
+ "id": "modern-upgrade",
1235
+ "text": "modern upgrade",
1236
+ "depth": 2
1237
+ }];
1238
+ var title = "\u547D\u4EE4\u9884\u89C8";
1239
+ var content = "\"---\\nsidebar_position: 2\\n---\\n\\n# 命令预览\\n\\n模块工程项目可以使用的命令:\\n\\n## `modern build`\\n\\n```bash\\nUsage: modern build [options]\\n\\n构建模块命令\\n\\nOptions:\\n -w, --watch 使用监听模式构建代码\\n --tsconfig [tsconfig] 指定 tsconfig.json 文件的路径 (default:\\n \\\"./tsconfig.json\\\")\\n --platform [platform] 构建所有或者指定平台的产物\\n --no-dts 关闭 DTS 类型文件生成和类型检查\\n --no-clear 关闭自动清除产物输出目录的行为\\n -h, --help 展示当前命令的信息\\n```\\n\\n当想要启动项目构建的时候,可以执行 `modern build` 命令。在使用这个命令的时候,我们可以:\\n\\n- 当想要以观察模式启动构建时,使用 `--watch` 选项。\\n- 当想要指定项目编译读取的 TypeScript 配置文件的路径时,使用 `build --tsconfig ./path/config.json` 选项。使用该选项后,会覆盖所有 [`buildConfig`](/api/config/build-config) 里 [`dts.tsconfigPath`](/api/config/build-config) 配置。\\n- 当需要关闭项目的 DTS 类型文件生成和类型检查行为时,可以使用 `--no-dts` 选项。**注意:类型文件的生成依赖类型检查的结果。如果关闭了类型检查,那么类型文件也不会生成**。\\n- 当需要关闭自动清除产物输出目录的行为时,可以使用 `--no-clear` 选项。\\n\\n除了以上,模块工程还支持 `platform` 构建模式,可以用于执行其他工具的构建任务。例如,目前官方支持在安装了 `@modern-js/plugin-storybook` 插件后,可以通过执行 `modern build --platform` 或者 `modern build --platform storybook` 命令启动 Storybook 构建任务生成 Storybook 产物。\\n\\n:::tip{title=注意}\\n在执行 Storybook 构建的时候,它需要读取项目的构建产物。因此**在执行 `modern build --platform` 命令启动 Storybook 构建的时候,要先执行一次 `modern build` 确保源码构建产物的存在**。\\n:::\\n\\n## `modern new`\\n\\n```bash\\nUsage: modern new [options]\\n\\n模块化工程方案中执行生成器\\n\\nOptions:\\n -d, --debug 开启 Debug 模式,打印调试日志信息 (default: false)\\n -c, --config <config> 生成器运行默认配置(JSON 字符串)\\n --dist-tag <tag> 生成器使用特殊的 npm Tag 版本\\n --registry 生成器运行过程中定制 npm Registry\\n -h, --help display help for command\\n```\\n\\n`modern new` 命令用于启动微生成器功能,它可以为项目启用默认没有提供的功能。\\n\\n目前可以开启的功能有:\\n\\n- Storybook 调试\\n- Tailwind CSS 支持\\n- Modern.js Runtime API\\n\\n关于这些功能,可以通过[【使用微生成器】](/guide/basic/use-micro-generator) 章节了解更多。\\n\\n## `modern dev`\\n\\n```bash\\nUsage: modern dev [options]\\n\\n本地开发命令\\n\\nOptions:\\n -h, --help display help for command\\n\\nCommands:\\n[dev-tools-subCommand]\\n```\\n\\n模块工程解决方案提供了使用调试工具的能力,可以通过 `modern dev` 命令来启动。不过要注意的是,默认情况下是没有提供调试相关的插件,因此此时执行 `modern dev` 会提示: _\\\"No dev tools found available\\\"_。\\n\\n目前官方支持的调试工具有 [Storybook](https://storybook.js.org/),因此在你执行 `modern new` 命令开启它后,就可以执行 `modern dev` 或者 `modern dev storybook` 执行它。\\n\\n## `modern test`\\n\\n```bash\\nUsage: modern test [options]\\n\\nOptions:\\n -h, --help display help for command\\n```\\n\\n`modern test` 命令会自动将 `src/tests/*.test.(js|ts|jsx|tsx)` 文件当做测试用例运行。\\n\\n## `modern lint`\\n\\n```bash\\nUsage: modern lint [options] [...files]\\n\\nlint and fix source files\\n\\nOptions:\\n --no-fix disable auto fix source file\\n -h, --help display help for command\\n```\\n\\n运行 [ESLint](https://eslint.org/) 检查代码语法情况。通常情况下,我们只需要在 `git commit` 阶段通过 [lint-staged](https://github.com/okonet/lint-staged) 检查本次提交修改的部分代码。\\n\\n- `--no-fix` 参数设置后可以关闭自动修复 lint 错误代码的能力。\\n\\n## `modern change`\\n\\n```bash\\nUsage: modern change [options]\\n\\n创建变更集\\n\\nOptions:\\n --empty 创建空变更集 (default: false)\\n --open 使用编辑器中打开创建的变更集 (default: false)\\n -h, --help display help for command\\n```\\n\\n`modern change` 命令用于生成 [changesets](https://github.com/changesets/changesets) 需要的 Markdown 文件。\\n\\n## `modern pre`\\n\\n```bash\\nUsage: modern pre [options] <enter|exit> [tag]\\n\\n进入和退出预发布模式\\n\\nOptions:\\n -h, --help display help for command\\n```\\n\\n可以使用 `modern pre` 命令在正式发布前[预发布](https://github.com/atlassian/changesets/blob/main/docs/prereleases.md)一个版本。\\n\\n## `modern bump`\\n\\n```bash\\nUsage: modern bump [options]\\n\\n使用变更集自动更新发布版本和变更日志\\n\\nOptions:\\n --canary 创建一个预发布版本进行测试 (default: false)\\n --preid <tag> 在对预发布版本进行版本控制时指定标识符 (default: \\\"next\\\")\\n --snapshot 创建一个特殊版本进行测试 (default: false)\\n -h, --help display help for command\\n```\\n\\n按照 [changesets](https://github.com/changesets/changesets) 生成的变更记录的 Markdown 文件修改 `package.json` 中的版本号, 同时生成 `CHANGELOG.md` 文件。\\n\\n## `modern release`\\n\\n```bash\\nUsage: modern release [options]\\n\\n发布 npm 包\\n\\nOptions:\\n --tag <tag> 发布 npm 包使用特定的 tag (default: \\\"\\\")\\n --ignore-scripts 发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo\\n 中使用 (default: \\\"\\\")\\n -h, --help display help for command\\n```\\n\\n`modern release` 命令可以将模块发布到 [npm Registry](https://www.npmjs.com/) 上。\\n\\n- `--tag` 参数可以指定发布时具体的 [dist tags](https://docs.npmjs.com/adding-dist-tags-to-packages)。\\n\\n## `modern gen-release-note`\\n\\n```bash\\nUsage: modern gen-release-note [options]\\n\\n根据当前仓库 changeset 信息生成 Release Note\\n\\nOptions:\\n --repo <repo> 仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js\\n --custom <cumtom> 自定义 Release Note 生成函数\\n -h, --help display help for command\\n```\\n\\n根据当前仓库的 changeset 信息自动生成 [Release Note](https://en.wikipedia.org/wiki/Release_notes)。\\n\\n:::tip{title=注意}\\n需要在 `bump` 命令之前执行。\\n:::\\n\\n## `modern upgrade`\\n\\n```bash\\nUsage: modern upgrade [options]\\n\\n升级 Modern.js 到最新版本\\n\\nOptions:\\n --registry <registry> 定制 npm registry (default: \\\"\\\")\\n -d,--debug 开启 Debug 模式,打印调试日志信息 (default: false)\\n --cwd <cwd> 项目路径 (default: \\\"\\\")\\n -h, --help display help for command\\n```\\n\\n`modern upgrade` 命令,用于升级项目 Modern.js 相关依赖至最新版本。\\n\\n在项目根目录下执行命令 `npx modern upgrade`,会默认将当前执行命令项目的 `package.json` 中的 Modern.js 相关依赖更新至最新版本。\\n\\n命令在 `@modern-js/module-tools` 版本 **>= 1.17.0** 提供,之前版本可使用 `npx @modern-js/upgrade` 进行升级。\\n\"";
1240
+ function _createMdxContent(props) {
1241
+ var _components = Object.assign({
1242
+ h1: "h1",
1243
+ a: "a",
1244
+ p: "p",
1245
+ h2: "h2",
1246
+ code: "code",
1247
+ ul: "ul",
1248
+ li: "li",
1249
+ strong: "strong",
1250
+ div: "div",
1251
+ em: "em"
1252
+ }, props.components);
1253
+ if (!CH) _missingMdxReference("CH", false, "11:1-24:4");
1254
+ if (!CH.Code) _missingMdxReference("CH.Code", true, "11:1-24:4");
1255
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1256
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1257
+ id: "命令预览",
1258
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1259
+ className: "header-anchor",
1260
+ "aria-hidden": "true",
1261
+ href: "#命令预览",
1262
+ children: "#"
1263
+ }), "命令预览"]
1264
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1265
+ children: "模块工程项目可以使用的命令:"
1266
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1267
+ id: "modern-build",
1268
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1269
+ className: "header-anchor",
1270
+ "aria-hidden": "true",
1271
+ href: "#modern-build",
1272
+ children: "#"
1273
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1274
+ children: "modern build"
1275
+ })]
1276
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1277
+ codeConfig: chCodeConfig,
1278
+ northPanel: {
1279
+ "tabs": [""],
1280
+ "active": "",
1281
+ "heightRatio": 1
1282
+ },
1283
+ files: [{
1284
+ "name": "",
1285
+ "focus": "",
1286
+ "code": {
1287
+ "lines": [{
1288
+ "tokens": [{
1289
+ "content": "Usage: modern build ",
1290
+ "props": {
1291
+ "style": {
1292
+ "color": "#D8DEE9FF"
1293
+ }
1294
+ }
1295
+ }, {
1296
+ "content": "[",
1297
+ "props": {
1298
+ "style": {
1299
+ "color": "#ECEFF4"
1300
+ }
1301
+ }
1302
+ }, {
1303
+ "content": "options",
1304
+ "props": {
1305
+ "style": {
1306
+ "color": "#D8DEE9FF"
1307
+ }
1308
+ }
1309
+ }, {
1310
+ "content": "]",
1311
+ "props": {
1312
+ "style": {
1313
+ "color": "#ECEFF4"
1314
+ }
1315
+ }
1316
+ }]
1317
+ }, {
1318
+ "tokens": []
1319
+ }, {
1320
+ "tokens": [{
1321
+ "content": "构建模块命令",
1322
+ "props": {
1323
+ "style": {
1324
+ "color": "#D8DEE9FF"
1325
+ }
1326
+ }
1327
+ }]
1328
+ }, {
1329
+ "tokens": []
1330
+ }, {
1331
+ "tokens": [{
1332
+ "content": "Options:",
1333
+ "props": {
1334
+ "style": {
1335
+ "color": "#D8DEE9FF"
1336
+ }
1337
+ }
1338
+ }]
1339
+ }, {
1340
+ "tokens": [{
1341
+ "content": " -w, --watch 使用监听模式构建代码",
1342
+ "props": {
1343
+ "style": {
1344
+ "color": "#D8DEE9FF"
1345
+ }
1346
+ }
1347
+ }]
1348
+ }, {
1349
+ "tokens": [{
1350
+ "content": " --tsconfig ",
1351
+ "props": {
1352
+ "style": {
1353
+ "color": "#D8DEE9FF"
1354
+ }
1355
+ }
1356
+ }, {
1357
+ "content": "[",
1358
+ "props": {
1359
+ "style": {
1360
+ "color": "#ECEFF4"
1361
+ }
1362
+ }
1363
+ }, {
1364
+ "content": "tsconfig",
1365
+ "props": {
1366
+ "style": {
1367
+ "color": "#D8DEE9FF"
1368
+ }
1369
+ }
1370
+ }, {
1371
+ "content": "]",
1372
+ "props": {
1373
+ "style": {
1374
+ "color": "#ECEFF4"
1375
+ }
1376
+ }
1377
+ }, {
1378
+ "content": " 指定 tsconfig.json 文件的路径 ",
1379
+ "props": {
1380
+ "style": {
1381
+ "color": "#D8DEE9FF"
1382
+ }
1383
+ }
1384
+ }, {
1385
+ "content": "(",
1386
+ "props": {
1387
+ "style": {
1388
+ "color": "#ECEFF4"
1389
+ }
1390
+ }
1391
+ }, {
1392
+ "content": "default:",
1393
+ "props": {
1394
+ "style": {
1395
+ "color": "#D8DEE9FF"
1396
+ }
1397
+ }
1398
+ }]
1399
+ }, {
1400
+ "tokens": [{
1401
+ "content": " ",
1402
+ "props": {
1403
+ "style": {
1404
+ "color": "#D8DEE9FF"
1405
+ }
1406
+ }
1407
+ }, {
1408
+ "content": "\"",
1409
+ "props": {
1410
+ "style": {
1411
+ "color": "#ECEFF4"
1412
+ }
1413
+ }
1414
+ }, {
1415
+ "content": "./tsconfig.json",
1416
+ "props": {
1417
+ "style": {
1418
+ "color": "#A3BE8C"
1419
+ }
1420
+ }
1421
+ }, {
1422
+ "content": "\"",
1423
+ "props": {
1424
+ "style": {
1425
+ "color": "#ECEFF4"
1426
+ }
1427
+ }
1428
+ }, {
1429
+ "content": ")",
1430
+ "props": {
1431
+ "style": {
1432
+ "color": "#ECEFF4"
1433
+ }
1434
+ }
1435
+ }]
1436
+ }, {
1437
+ "tokens": [{
1438
+ "content": " --platform ",
1439
+ "props": {
1440
+ "style": {
1441
+ "color": "#D8DEE9FF"
1442
+ }
1443
+ }
1444
+ }, {
1445
+ "content": "[",
1446
+ "props": {
1447
+ "style": {
1448
+ "color": "#ECEFF4"
1449
+ }
1450
+ }
1451
+ }, {
1452
+ "content": "platform",
1453
+ "props": {
1454
+ "style": {
1455
+ "color": "#D8DEE9FF"
1456
+ }
1457
+ }
1458
+ }, {
1459
+ "content": "]",
1460
+ "props": {
1461
+ "style": {
1462
+ "color": "#ECEFF4"
1463
+ }
1464
+ }
1465
+ }, {
1466
+ "content": " 构建所有或者指定平台的产物",
1467
+ "props": {
1468
+ "style": {
1469
+ "color": "#D8DEE9FF"
1470
+ }
1471
+ }
1472
+ }]
1473
+ }, {
1474
+ "tokens": [{
1475
+ "content": " --no-dts 关闭 DTS 类型文件生成和类型检查",
1476
+ "props": {
1477
+ "style": {
1478
+ "color": "#D8DEE9FF"
1479
+ }
1480
+ }
1481
+ }]
1482
+ }, {
1483
+ "tokens": [{
1484
+ "content": " --no-clear 关闭自动清除产物输出目录的行为",
1485
+ "props": {
1486
+ "style": {
1487
+ "color": "#D8DEE9FF"
1488
+ }
1489
+ }
1490
+ }]
1491
+ }, {
1492
+ "tokens": [{
1493
+ "content": " -h, --help 展示当前命令的信息",
1494
+ "props": {
1495
+ "style": {
1496
+ "color": "#D8DEE9FF"
1497
+ }
1498
+ }
1499
+ }]
1500
+ }],
1501
+ "lang": "bash"
1502
+ },
1503
+ "annotations": []
1504
+ }]
1505
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1506
+ children: ["当想要启动项目构建的时候,可以执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1507
+ children: "modern build"
1508
+ }), " 命令。在使用这个命令的时候,我们可以:"]
1509
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1510
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1511
+ children: ["当想要以观察模式启动构建时,使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1512
+ children: "--watch"
1513
+ }), " 选项。"]
1514
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1515
+ children: ["当想要指定项目编译读取的 TypeScript 配置文件的路径时,使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1516
+ children: "build --tsconfig ./path/config.json"
1517
+ }), " 选项。使用该选项后,会覆盖所有 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1518
+ href: "/api/config/build-config.html",
1519
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1520
+ children: "buildConfig"
1521
+ })
1522
+ }), " 里 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1523
+ href: "/api/config/build-config.html",
1524
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1525
+ children: "dts.tsconfigPath"
1526
+ })
1527
+ }), " 配置。"]
1528
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1529
+ children: ["当需要关闭项目的 DTS 类型文件生成和类型检查行为时,可以使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1530
+ children: "--no-dts"
1531
+ }), " 选项。", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1532
+ children: "注意:类型文件的生成依赖类型检查的结果。如果关闭了类型检查,那么类型文件也不会生成"
1533
+ }), "。"]
1534
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1535
+ children: ["当需要关闭自动清除产物输出目录的行为时,可以使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1536
+ children: "--no-clear"
1537
+ }), " 选项。"]
1538
+ }), "\n"]
1539
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1540
+ children: ["除了以上,模块工程还支持 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1541
+ children: "platform"
1542
+ }), " 构建模式,可以用于执行其他工具的构建任务。例如,目前官方支持在安装了 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1543
+ children: "@modern-js/plugin-storybook"
1544
+ }), " 插件后,可以通过执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1545
+ children: "modern build --platform"
1546
+ }), " 或者 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1547
+ children: "modern build --platform storybook"
1548
+ }), " 命令启动 Storybook 构建任务生成 Storybook 产物。"]
1549
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1550
+ className: "modern-directive tip",
1551
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1552
+ className: "modern-directive-title",
1553
+ children: "注意"
1554
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
1555
+ className: "island-directive-content",
1556
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1557
+ children: ["在执行 Storybook 构建的时候,它需要读取项目的构建产物。因此", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
1558
+ children: ["在执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1559
+ children: "modern build --platform"
1560
+ }), " 命令启动 Storybook 构建的时候,要先执行一次 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1561
+ children: "modern build"
1562
+ }), " 确保源码构建产物的存在"]
1563
+ }), "。"]
1564
+ })
1565
+ })]
1566
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1567
+ id: "modern-new",
1568
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1569
+ className: "header-anchor",
1570
+ "aria-hidden": "true",
1571
+ href: "#modern-new",
1572
+ children: "#"
1573
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1574
+ children: "modern new"
1575
+ })]
1576
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1577
+ codeConfig: chCodeConfig,
1578
+ northPanel: {
1579
+ "tabs": [""],
1580
+ "active": "",
1581
+ "heightRatio": 1
1582
+ },
1583
+ files: [{
1584
+ "name": "",
1585
+ "focus": "",
1586
+ "code": {
1587
+ "lines": [{
1588
+ "tokens": [{
1589
+ "content": "Usage: modern new ",
1590
+ "props": {
1591
+ "style": {
1592
+ "color": "#D8DEE9FF"
1593
+ }
1594
+ }
1595
+ }, {
1596
+ "content": "[",
1597
+ "props": {
1598
+ "style": {
1599
+ "color": "#ECEFF4"
1600
+ }
1601
+ }
1602
+ }, {
1603
+ "content": "options",
1604
+ "props": {
1605
+ "style": {
1606
+ "color": "#D8DEE9FF"
1607
+ }
1608
+ }
1609
+ }, {
1610
+ "content": "]",
1611
+ "props": {
1612
+ "style": {
1613
+ "color": "#ECEFF4"
1614
+ }
1615
+ }
1616
+ }]
1617
+ }, {
1618
+ "tokens": []
1619
+ }, {
1620
+ "tokens": [{
1621
+ "content": "模块化工程方案中执行生成器",
1622
+ "props": {
1623
+ "style": {
1624
+ "color": "#D8DEE9FF"
1625
+ }
1626
+ }
1627
+ }]
1628
+ }, {
1629
+ "tokens": []
1630
+ }, {
1631
+ "tokens": [{
1632
+ "content": "Options:",
1633
+ "props": {
1634
+ "style": {
1635
+ "color": "#D8DEE9FF"
1636
+ }
1637
+ }
1638
+ }]
1639
+ }, {
1640
+ "tokens": [{
1641
+ "content": " -d, --debug 开启 Debug 模式,打印调试日志信息 ",
1642
+ "props": {
1643
+ "style": {
1644
+ "color": "#D8DEE9FF"
1645
+ }
1646
+ }
1647
+ }, {
1648
+ "content": "(",
1649
+ "props": {
1650
+ "style": {
1651
+ "color": "#ECEFF4"
1652
+ }
1653
+ }
1654
+ }, {
1655
+ "content": "default: false",
1656
+ "props": {
1657
+ "style": {
1658
+ "color": "#D8DEE9FF"
1659
+ }
1660
+ }
1661
+ }, {
1662
+ "content": ")",
1663
+ "props": {
1664
+ "style": {
1665
+ "color": "#ECEFF4"
1666
+ }
1667
+ }
1668
+ }]
1669
+ }, {
1670
+ "tokens": [{
1671
+ "content": " -c, --config ",
1672
+ "props": {
1673
+ "style": {
1674
+ "color": "#D8DEE9FF"
1675
+ }
1676
+ }
1677
+ }, {
1678
+ "content": "<",
1679
+ "props": {
1680
+ "style": {
1681
+ "color": "#81A1C1"
1682
+ }
1683
+ }
1684
+ }, {
1685
+ "content": "config",
1686
+ "props": {
1687
+ "style": {
1688
+ "color": "#D8DEE9FF"
1689
+ }
1690
+ }
1691
+ }, {
1692
+ "content": ">",
1693
+ "props": {
1694
+ "style": {
1695
+ "color": "#81A1C1"
1696
+ }
1697
+ }
1698
+ }, {
1699
+ "content": " 生成器运行默认配置",
1700
+ "props": {
1701
+ "style": {
1702
+ "color": "#D8DEE9FF"
1703
+ }
1704
+ }
1705
+ }, {
1706
+ "content": "(",
1707
+ "props": {
1708
+ "style": {
1709
+ "color": "#ECEFF4"
1710
+ }
1711
+ }
1712
+ }, {
1713
+ "content": "JSON 字符串",
1714
+ "props": {
1715
+ "style": {
1716
+ "color": "#D8DEE9FF"
1717
+ }
1718
+ }
1719
+ }, {
1720
+ "content": ")",
1721
+ "props": {
1722
+ "style": {
1723
+ "color": "#ECEFF4"
1724
+ }
1725
+ }
1726
+ }]
1727
+ }, {
1728
+ "tokens": [{
1729
+ "content": " --dist-tag ",
1730
+ "props": {
1731
+ "style": {
1732
+ "color": "#D8DEE9FF"
1733
+ }
1734
+ }
1735
+ }, {
1736
+ "content": "<",
1737
+ "props": {
1738
+ "style": {
1739
+ "color": "#81A1C1"
1740
+ }
1741
+ }
1742
+ }, {
1743
+ "content": "tag",
1744
+ "props": {
1745
+ "style": {
1746
+ "color": "#D8DEE9FF"
1747
+ }
1748
+ }
1749
+ }, {
1750
+ "content": ">",
1751
+ "props": {
1752
+ "style": {
1753
+ "color": "#81A1C1"
1754
+ }
1755
+ }
1756
+ }, {
1757
+ "content": " 生成器使用特殊的 npm Tag 版本",
1758
+ "props": {
1759
+ "style": {
1760
+ "color": "#D8DEE9FF"
1761
+ }
1762
+ }
1763
+ }]
1764
+ }, {
1765
+ "tokens": [{
1766
+ "content": " --registry 生成器运行过程中定制 npm Registry",
1767
+ "props": {
1768
+ "style": {
1769
+ "color": "#D8DEE9FF"
1770
+ }
1771
+ }
1772
+ }]
1773
+ }, {
1774
+ "tokens": [{
1775
+ "content": " -h, --help display ",
1776
+ "props": {
1777
+ "style": {
1778
+ "color": "#D8DEE9FF"
1779
+ }
1780
+ }
1781
+ }, {
1782
+ "content": "help",
1783
+ "props": {
1784
+ "style": {
1785
+ "color": "#88C0D0"
1786
+ }
1787
+ }
1788
+ }, {
1789
+ "content": " ",
1790
+ "props": {
1791
+ "style": {
1792
+ "color": "#D8DEE9FF"
1793
+ }
1794
+ }
1795
+ }, {
1796
+ "content": "for",
1797
+ "props": {
1798
+ "style": {
1799
+ "color": "#81A1C1"
1800
+ }
1801
+ }
1802
+ }, {
1803
+ "content": " ",
1804
+ "props": {
1805
+ "style": {
1806
+ "color": "#D8DEE9FF"
1807
+ }
1808
+ }
1809
+ }, {
1810
+ "content": "command",
1811
+ "props": {
1812
+ "style": {
1813
+ "color": "#88C0D0"
1814
+ }
1815
+ }
1816
+ }]
1817
+ }],
1818
+ "lang": "bash"
1819
+ },
1820
+ "annotations": []
1821
+ }]
1822
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1823
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1824
+ children: "modern new"
1825
+ }), " 命令用于启动微生成器功能,它可以为项目启用默认没有提供的功能。"]
1826
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1827
+ children: "目前可以开启的功能有:"
1828
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1829
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1830
+ children: "Storybook 调试"
1831
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1832
+ children: "Tailwind CSS 支持"
1833
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1834
+ children: "Modern.js Runtime API"
1835
+ }), "\n"]
1836
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1837
+ children: ["关于这些功能,可以通过", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1838
+ href: "/guide/basic/use-micro-generator.html",
1839
+ children: "【使用微生成器】"
1840
+ }), " 章节了解更多。"]
1841
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1842
+ id: "modern-dev",
1843
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1844
+ className: "header-anchor",
1845
+ "aria-hidden": "true",
1846
+ href: "#modern-dev",
1847
+ children: "#"
1848
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1849
+ children: "modern dev"
1850
+ })]
1851
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1852
+ codeConfig: chCodeConfig,
1853
+ northPanel: {
1854
+ "tabs": [""],
1855
+ "active": "",
1856
+ "heightRatio": 1
1857
+ },
1858
+ files: [{
1859
+ "name": "",
1860
+ "focus": "",
1861
+ "code": {
1862
+ "lines": [{
1863
+ "tokens": [{
1864
+ "content": "Usage: modern dev ",
1865
+ "props": {
1866
+ "style": {
1867
+ "color": "#D8DEE9FF"
1868
+ }
1869
+ }
1870
+ }, {
1871
+ "content": "[",
1872
+ "props": {
1873
+ "style": {
1874
+ "color": "#ECEFF4"
1875
+ }
1876
+ }
1877
+ }, {
1878
+ "content": "options",
1879
+ "props": {
1880
+ "style": {
1881
+ "color": "#D8DEE9FF"
1882
+ }
1883
+ }
1884
+ }, {
1885
+ "content": "]",
1886
+ "props": {
1887
+ "style": {
1888
+ "color": "#ECEFF4"
1889
+ }
1890
+ }
1891
+ }]
1892
+ }, {
1893
+ "tokens": []
1894
+ }, {
1895
+ "tokens": [{
1896
+ "content": "本地开发命令",
1897
+ "props": {
1898
+ "style": {
1899
+ "color": "#D8DEE9FF"
1900
+ }
1901
+ }
1902
+ }]
1903
+ }, {
1904
+ "tokens": []
1905
+ }, {
1906
+ "tokens": [{
1907
+ "content": "Options:",
1908
+ "props": {
1909
+ "style": {
1910
+ "color": "#D8DEE9FF"
1911
+ }
1912
+ }
1913
+ }]
1914
+ }, {
1915
+ "tokens": [{
1916
+ "content": " -h, --help display ",
1917
+ "props": {
1918
+ "style": {
1919
+ "color": "#D8DEE9FF"
1920
+ }
1921
+ }
1922
+ }, {
1923
+ "content": "help",
1924
+ "props": {
1925
+ "style": {
1926
+ "color": "#88C0D0"
1927
+ }
1928
+ }
1929
+ }, {
1930
+ "content": " ",
1931
+ "props": {
1932
+ "style": {
1933
+ "color": "#D8DEE9FF"
1934
+ }
1935
+ }
1936
+ }, {
1937
+ "content": "for",
1938
+ "props": {
1939
+ "style": {
1940
+ "color": "#81A1C1"
1941
+ }
1942
+ }
1943
+ }, {
1944
+ "content": " ",
1945
+ "props": {
1946
+ "style": {
1947
+ "color": "#D8DEE9FF"
1948
+ }
1949
+ }
1950
+ }, {
1951
+ "content": "command",
1952
+ "props": {
1953
+ "style": {
1954
+ "color": "#88C0D0"
1955
+ }
1956
+ }
1957
+ }]
1958
+ }, {
1959
+ "tokens": []
1960
+ }, {
1961
+ "tokens": [{
1962
+ "content": "Commands:",
1963
+ "props": {
1964
+ "style": {
1965
+ "color": "#D8DEE9FF"
1966
+ }
1967
+ }
1968
+ }]
1969
+ }, {
1970
+ "tokens": [{
1971
+ "content": "[",
1972
+ "props": {
1973
+ "style": {
1974
+ "color": "#ECEFF4"
1975
+ }
1976
+ }
1977
+ }, {
1978
+ "content": "dev-tools-subCommand",
1979
+ "props": {
1980
+ "style": {
1981
+ "color": "#D8DEE9FF"
1982
+ }
1983
+ }
1984
+ }, {
1985
+ "content": "]",
1986
+ "props": {
1987
+ "style": {
1988
+ "color": "#ECEFF4"
1989
+ }
1990
+ }
1991
+ }]
1992
+ }],
1993
+ "lang": "bash"
1994
+ },
1995
+ "annotations": []
1996
+ }]
1997
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1998
+ children: ["模块工程解决方案提供了使用调试工具的能力,可以通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1999
+ children: "modern dev"
2000
+ }), " 命令来启动。不过要注意的是,默认情况下是没有提供调试相关的插件,因此此时执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2001
+ children: "modern dev"
2002
+ }), " 会提示: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
2003
+ children: "\"No dev tools found available\""
2004
+ }), "。"]
2005
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2006
+ children: ["目前官方支持的调试工具有 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2007
+ href: "https://storybook.js.org/",
2008
+ children: "Storybook"
2009
+ }), ",因此在你执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2010
+ children: "modern new"
2011
+ }), " 命令开启它后,就可以执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2012
+ children: "modern dev"
2013
+ }), " 或者 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2014
+ children: "modern dev storybook"
2015
+ }), " 执行它。"]
2016
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2017
+ id: "modern-test",
2018
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2019
+ className: "header-anchor",
2020
+ "aria-hidden": "true",
2021
+ href: "#modern-test",
2022
+ children: "#"
2023
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2024
+ children: "modern test"
2025
+ })]
2026
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2027
+ codeConfig: chCodeConfig,
2028
+ northPanel: {
2029
+ "tabs": [""],
2030
+ "active": "",
2031
+ "heightRatio": 1
2032
+ },
2033
+ files: [{
2034
+ "name": "",
2035
+ "focus": "",
2036
+ "code": {
2037
+ "lines": [{
2038
+ "tokens": [{
2039
+ "content": "Usage: modern ",
2040
+ "props": {
2041
+ "style": {
2042
+ "color": "#D8DEE9FF"
2043
+ }
2044
+ }
2045
+ }, {
2046
+ "content": "test",
2047
+ "props": {
2048
+ "style": {
2049
+ "color": "#88C0D0"
2050
+ }
2051
+ }
2052
+ }, {
2053
+ "content": " ",
2054
+ "props": {
2055
+ "style": {
2056
+ "color": "#D8DEE9FF"
2057
+ }
2058
+ }
2059
+ }, {
2060
+ "content": "[",
2061
+ "props": {
2062
+ "style": {
2063
+ "color": "#ECEFF4"
2064
+ }
2065
+ }
2066
+ }, {
2067
+ "content": "options",
2068
+ "props": {
2069
+ "style": {
2070
+ "color": "#D8DEE9FF"
2071
+ }
2072
+ }
2073
+ }, {
2074
+ "content": "]",
2075
+ "props": {
2076
+ "style": {
2077
+ "color": "#ECEFF4"
2078
+ }
2079
+ }
2080
+ }]
2081
+ }, {
2082
+ "tokens": []
2083
+ }, {
2084
+ "tokens": [{
2085
+ "content": "Options:",
2086
+ "props": {
2087
+ "style": {
2088
+ "color": "#D8DEE9FF"
2089
+ }
2090
+ }
2091
+ }]
2092
+ }, {
2093
+ "tokens": [{
2094
+ "content": " -h, --help display ",
2095
+ "props": {
2096
+ "style": {
2097
+ "color": "#D8DEE9FF"
2098
+ }
2099
+ }
2100
+ }, {
2101
+ "content": "help",
2102
+ "props": {
2103
+ "style": {
2104
+ "color": "#88C0D0"
2105
+ }
2106
+ }
2107
+ }, {
2108
+ "content": " ",
2109
+ "props": {
2110
+ "style": {
2111
+ "color": "#D8DEE9FF"
2112
+ }
2113
+ }
2114
+ }, {
2115
+ "content": "for",
2116
+ "props": {
2117
+ "style": {
2118
+ "color": "#81A1C1"
2119
+ }
2120
+ }
2121
+ }, {
2122
+ "content": " ",
2123
+ "props": {
2124
+ "style": {
2125
+ "color": "#D8DEE9FF"
2126
+ }
2127
+ }
2128
+ }, {
2129
+ "content": "command",
2130
+ "props": {
2131
+ "style": {
2132
+ "color": "#88C0D0"
2133
+ }
2134
+ }
2135
+ }]
2136
+ }],
2137
+ "lang": "bash"
2138
+ },
2139
+ "annotations": []
2140
+ }]
2141
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2142
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2143
+ children: "modern test"
2144
+ }), " 命令会自动将 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2145
+ children: "src/tests/*.test.(js|ts|jsx|tsx)"
2146
+ }), " 文件当做测试用例运行。"]
2147
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2148
+ id: "modern-lint",
2149
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2150
+ className: "header-anchor",
2151
+ "aria-hidden": "true",
2152
+ href: "#modern-lint",
2153
+ children: "#"
2154
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2155
+ children: "modern lint"
2156
+ })]
2157
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2158
+ codeConfig: chCodeConfig,
2159
+ northPanel: {
2160
+ "tabs": [""],
2161
+ "active": "",
2162
+ "heightRatio": 1
2163
+ },
2164
+ files: [{
2165
+ "name": "",
2166
+ "focus": "",
2167
+ "code": {
2168
+ "lines": [{
2169
+ "tokens": [{
2170
+ "content": "Usage: modern lint ",
2171
+ "props": {
2172
+ "style": {
2173
+ "color": "#D8DEE9FF"
2174
+ }
2175
+ }
2176
+ }, {
2177
+ "content": "[",
2178
+ "props": {
2179
+ "style": {
2180
+ "color": "#ECEFF4"
2181
+ }
2182
+ }
2183
+ }, {
2184
+ "content": "options",
2185
+ "props": {
2186
+ "style": {
2187
+ "color": "#D8DEE9FF"
2188
+ }
2189
+ }
2190
+ }, {
2191
+ "content": "]",
2192
+ "props": {
2193
+ "style": {
2194
+ "color": "#ECEFF4"
2195
+ }
2196
+ }
2197
+ }, {
2198
+ "content": " ",
2199
+ "props": {
2200
+ "style": {
2201
+ "color": "#D8DEE9FF"
2202
+ }
2203
+ }
2204
+ }, {
2205
+ "content": "[",
2206
+ "props": {
2207
+ "style": {
2208
+ "color": "#ECEFF4"
2209
+ }
2210
+ }
2211
+ }, {
2212
+ "content": "...files",
2213
+ "props": {
2214
+ "style": {
2215
+ "color": "#D8DEE9FF"
2216
+ }
2217
+ }
2218
+ }, {
2219
+ "content": "]",
2220
+ "props": {
2221
+ "style": {
2222
+ "color": "#ECEFF4"
2223
+ }
2224
+ }
2225
+ }]
2226
+ }, {
2227
+ "tokens": []
2228
+ }, {
2229
+ "tokens": [{
2230
+ "content": "lint and fix ",
2231
+ "props": {
2232
+ "style": {
2233
+ "color": "#D8DEE9FF"
2234
+ }
2235
+ }
2236
+ }, {
2237
+ "content": "source",
2238
+ "props": {
2239
+ "style": {
2240
+ "color": "#88C0D0"
2241
+ }
2242
+ }
2243
+ }, {
2244
+ "content": " files",
2245
+ "props": {
2246
+ "style": {
2247
+ "color": "#D8DEE9FF"
2248
+ }
2249
+ }
2250
+ }]
2251
+ }, {
2252
+ "tokens": []
2253
+ }, {
2254
+ "tokens": [{
2255
+ "content": "Options:",
2256
+ "props": {
2257
+ "style": {
2258
+ "color": "#D8DEE9FF"
2259
+ }
2260
+ }
2261
+ }]
2262
+ }, {
2263
+ "tokens": [{
2264
+ "content": " --no-fix disable auto fix ",
2265
+ "props": {
2266
+ "style": {
2267
+ "color": "#D8DEE9FF"
2268
+ }
2269
+ }
2270
+ }, {
2271
+ "content": "source",
2272
+ "props": {
2273
+ "style": {
2274
+ "color": "#88C0D0"
2275
+ }
2276
+ }
2277
+ }, {
2278
+ "content": " file",
2279
+ "props": {
2280
+ "style": {
2281
+ "color": "#D8DEE9FF"
2282
+ }
2283
+ }
2284
+ }]
2285
+ }, {
2286
+ "tokens": [{
2287
+ "content": " -h, --help display ",
2288
+ "props": {
2289
+ "style": {
2290
+ "color": "#D8DEE9FF"
2291
+ }
2292
+ }
2293
+ }, {
2294
+ "content": "help",
2295
+ "props": {
2296
+ "style": {
2297
+ "color": "#88C0D0"
2298
+ }
2299
+ }
2300
+ }, {
2301
+ "content": " ",
2302
+ "props": {
2303
+ "style": {
2304
+ "color": "#D8DEE9FF"
2305
+ }
2306
+ }
2307
+ }, {
2308
+ "content": "for",
2309
+ "props": {
2310
+ "style": {
2311
+ "color": "#81A1C1"
2312
+ }
2313
+ }
2314
+ }, {
2315
+ "content": " ",
2316
+ "props": {
2317
+ "style": {
2318
+ "color": "#D8DEE9FF"
2319
+ }
2320
+ }
2321
+ }, {
2322
+ "content": "command",
2323
+ "props": {
2324
+ "style": {
2325
+ "color": "#88C0D0"
2326
+ }
2327
+ }
2328
+ }]
2329
+ }],
2330
+ "lang": "bash"
2331
+ },
2332
+ "annotations": []
2333
+ }]
2334
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2335
+ children: ["运行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2336
+ href: "https://eslint.org/",
2337
+ children: "ESLint"
2338
+ }), " 检查代码语法情况。通常情况下,我们只需要在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2339
+ children: "git commit"
2340
+ }), " 阶段通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2341
+ href: "https://github.com/okonet/lint-staged",
2342
+ children: "lint-staged"
2343
+ }), " 检查本次提交修改的部分代码。"]
2344
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2345
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2346
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2347
+ children: "--no-fix"
2348
+ }), " 参数设置后可以关闭自动修复 lint 错误代码的能力。"]
2349
+ }), "\n"]
2350
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2351
+ id: "modern-change",
2352
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2353
+ className: "header-anchor",
2354
+ "aria-hidden": "true",
2355
+ href: "#modern-change",
2356
+ children: "#"
2357
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2358
+ children: "modern change"
2359
+ })]
2360
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2361
+ codeConfig: chCodeConfig,
2362
+ northPanel: {
2363
+ "tabs": [""],
2364
+ "active": "",
2365
+ "heightRatio": 1
2366
+ },
2367
+ files: [{
2368
+ "name": "",
2369
+ "focus": "",
2370
+ "code": {
2371
+ "lines": [{
2372
+ "tokens": [{
2373
+ "content": "Usage: modern change ",
2374
+ "props": {
2375
+ "style": {
2376
+ "color": "#D8DEE9FF"
2377
+ }
2378
+ }
2379
+ }, {
2380
+ "content": "[",
2381
+ "props": {
2382
+ "style": {
2383
+ "color": "#ECEFF4"
2384
+ }
2385
+ }
2386
+ }, {
2387
+ "content": "options",
2388
+ "props": {
2389
+ "style": {
2390
+ "color": "#D8DEE9FF"
2391
+ }
2392
+ }
2393
+ }, {
2394
+ "content": "]",
2395
+ "props": {
2396
+ "style": {
2397
+ "color": "#ECEFF4"
2398
+ }
2399
+ }
2400
+ }]
2401
+ }, {
2402
+ "tokens": []
2403
+ }, {
2404
+ "tokens": [{
2405
+ "content": "创建变更集",
2406
+ "props": {
2407
+ "style": {
2408
+ "color": "#D8DEE9FF"
2409
+ }
2410
+ }
2411
+ }]
2412
+ }, {
2413
+ "tokens": []
2414
+ }, {
2415
+ "tokens": [{
2416
+ "content": "Options:",
2417
+ "props": {
2418
+ "style": {
2419
+ "color": "#D8DEE9FF"
2420
+ }
2421
+ }
2422
+ }]
2423
+ }, {
2424
+ "tokens": [{
2425
+ "content": " --empty 创建空变更集 ",
2426
+ "props": {
2427
+ "style": {
2428
+ "color": "#D8DEE9FF"
2429
+ }
2430
+ }
2431
+ }, {
2432
+ "content": "(",
2433
+ "props": {
2434
+ "style": {
2435
+ "color": "#ECEFF4"
2436
+ }
2437
+ }
2438
+ }, {
2439
+ "content": "default: false",
2440
+ "props": {
2441
+ "style": {
2442
+ "color": "#D8DEE9FF"
2443
+ }
2444
+ }
2445
+ }, {
2446
+ "content": ")",
2447
+ "props": {
2448
+ "style": {
2449
+ "color": "#ECEFF4"
2450
+ }
2451
+ }
2452
+ }]
2453
+ }, {
2454
+ "tokens": [{
2455
+ "content": " --open 使用编辑器中打开创建的变更集 ",
2456
+ "props": {
2457
+ "style": {
2458
+ "color": "#D8DEE9FF"
2459
+ }
2460
+ }
2461
+ }, {
2462
+ "content": "(",
2463
+ "props": {
2464
+ "style": {
2465
+ "color": "#ECEFF4"
2466
+ }
2467
+ }
2468
+ }, {
2469
+ "content": "default: false",
2470
+ "props": {
2471
+ "style": {
2472
+ "color": "#D8DEE9FF"
2473
+ }
2474
+ }
2475
+ }, {
2476
+ "content": ")",
2477
+ "props": {
2478
+ "style": {
2479
+ "color": "#ECEFF4"
2480
+ }
2481
+ }
2482
+ }]
2483
+ }, {
2484
+ "tokens": [{
2485
+ "content": " -h, --help display ",
2486
+ "props": {
2487
+ "style": {
2488
+ "color": "#D8DEE9FF"
2489
+ }
2490
+ }
2491
+ }, {
2492
+ "content": "help",
2493
+ "props": {
2494
+ "style": {
2495
+ "color": "#88C0D0"
2496
+ }
2497
+ }
2498
+ }, {
2499
+ "content": " ",
2500
+ "props": {
2501
+ "style": {
2502
+ "color": "#D8DEE9FF"
2503
+ }
2504
+ }
2505
+ }, {
2506
+ "content": "for",
2507
+ "props": {
2508
+ "style": {
2509
+ "color": "#81A1C1"
2510
+ }
2511
+ }
2512
+ }, {
2513
+ "content": " ",
2514
+ "props": {
2515
+ "style": {
2516
+ "color": "#D8DEE9FF"
2517
+ }
2518
+ }
2519
+ }, {
2520
+ "content": "command",
2521
+ "props": {
2522
+ "style": {
2523
+ "color": "#88C0D0"
2524
+ }
2525
+ }
2526
+ }]
2527
+ }],
2528
+ "lang": "bash"
2529
+ },
2530
+ "annotations": []
2531
+ }]
2532
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2533
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2534
+ children: "modern change"
2535
+ }), " 命令用于生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2536
+ href: "https://github.com/changesets/changesets",
2537
+ children: "changesets"
2538
+ }), " 需要的 Markdown 文件。"]
2539
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2540
+ id: "modern-pre",
2541
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2542
+ className: "header-anchor",
2543
+ "aria-hidden": "true",
2544
+ href: "#modern-pre",
2545
+ children: "#"
2546
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2547
+ children: "modern pre"
2548
+ })]
2549
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2550
+ codeConfig: chCodeConfig,
2551
+ northPanel: {
2552
+ "tabs": [""],
2553
+ "active": "",
2554
+ "heightRatio": 1
2555
+ },
2556
+ files: [{
2557
+ "name": "",
2558
+ "focus": "",
2559
+ "code": {
2560
+ "lines": [{
2561
+ "tokens": [{
2562
+ "content": "Usage: modern pre ",
2563
+ "props": {
2564
+ "style": {
2565
+ "color": "#D8DEE9FF"
2566
+ }
2567
+ }
2568
+ }, {
2569
+ "content": "[",
2570
+ "props": {
2571
+ "style": {
2572
+ "color": "#ECEFF4"
2573
+ }
2574
+ }
2575
+ }, {
2576
+ "content": "options",
2577
+ "props": {
2578
+ "style": {
2579
+ "color": "#D8DEE9FF"
2580
+ }
2581
+ }
2582
+ }, {
2583
+ "content": "]",
2584
+ "props": {
2585
+ "style": {
2586
+ "color": "#ECEFF4"
2587
+ }
2588
+ }
2589
+ }, {
2590
+ "content": " ",
2591
+ "props": {
2592
+ "style": {
2593
+ "color": "#D8DEE9FF"
2594
+ }
2595
+ }
2596
+ }, {
2597
+ "content": "<",
2598
+ "props": {
2599
+ "style": {
2600
+ "color": "#81A1C1"
2601
+ }
2602
+ }
2603
+ }, {
2604
+ "content": "enter",
2605
+ "props": {
2606
+ "style": {
2607
+ "color": "#D8DEE9FF"
2608
+ }
2609
+ }
2610
+ }, {
2611
+ "content": "|",
2612
+ "props": {
2613
+ "style": {
2614
+ "color": "#81A1C1"
2615
+ }
2616
+ }
2617
+ }, {
2618
+ "content": "exit",
2619
+ "props": {
2620
+ "style": {
2621
+ "color": "#D8DEE9FF"
2622
+ }
2623
+ }
2624
+ }, {
2625
+ "content": ">",
2626
+ "props": {
2627
+ "style": {
2628
+ "color": "#81A1C1"
2629
+ }
2630
+ }
2631
+ }, {
2632
+ "content": " ",
2633
+ "props": {
2634
+ "style": {
2635
+ "color": "#D8DEE9FF"
2636
+ }
2637
+ }
2638
+ }, {
2639
+ "content": "[",
2640
+ "props": {
2641
+ "style": {
2642
+ "color": "#ECEFF4"
2643
+ }
2644
+ }
2645
+ }, {
2646
+ "content": "tag",
2647
+ "props": {
2648
+ "style": {
2649
+ "color": "#D8DEE9FF"
2650
+ }
2651
+ }
2652
+ }, {
2653
+ "content": "]",
2654
+ "props": {
2655
+ "style": {
2656
+ "color": "#ECEFF4"
2657
+ }
2658
+ }
2659
+ }]
2660
+ }, {
2661
+ "tokens": []
2662
+ }, {
2663
+ "tokens": [{
2664
+ "content": "进入和退出预发布模式",
2665
+ "props": {
2666
+ "style": {
2667
+ "color": "#D8DEE9FF"
2668
+ }
2669
+ }
2670
+ }]
2671
+ }, {
2672
+ "tokens": []
2673
+ }, {
2674
+ "tokens": [{
2675
+ "content": "Options:",
2676
+ "props": {
2677
+ "style": {
2678
+ "color": "#D8DEE9FF"
2679
+ }
2680
+ }
2681
+ }]
2682
+ }, {
2683
+ "tokens": [{
2684
+ "content": " -h, --help display ",
2685
+ "props": {
2686
+ "style": {
2687
+ "color": "#D8DEE9FF"
2688
+ }
2689
+ }
2690
+ }, {
2691
+ "content": "help",
2692
+ "props": {
2693
+ "style": {
2694
+ "color": "#88C0D0"
2695
+ }
2696
+ }
2697
+ }, {
2698
+ "content": " ",
2699
+ "props": {
2700
+ "style": {
2701
+ "color": "#D8DEE9FF"
2702
+ }
2703
+ }
2704
+ }, {
2705
+ "content": "for",
2706
+ "props": {
2707
+ "style": {
2708
+ "color": "#81A1C1"
2709
+ }
2710
+ }
2711
+ }, {
2712
+ "content": " ",
2713
+ "props": {
2714
+ "style": {
2715
+ "color": "#D8DEE9FF"
2716
+ }
2717
+ }
2718
+ }, {
2719
+ "content": "command",
2720
+ "props": {
2721
+ "style": {
2722
+ "color": "#88C0D0"
2723
+ }
2724
+ }
2725
+ }]
2726
+ }],
2727
+ "lang": "bash"
2728
+ },
2729
+ "annotations": []
2730
+ }]
2731
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2732
+ children: ["可以使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2733
+ children: "modern pre"
2734
+ }), " 命令在正式发布前", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2735
+ href: "https://github.com/atlassian/changesets/blob/main/docs/prereleases.md",
2736
+ children: "预发布"
2737
+ }), "一个版本。"]
2738
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2739
+ id: "modern-bump",
2740
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2741
+ className: "header-anchor",
2742
+ "aria-hidden": "true",
2743
+ href: "#modern-bump",
2744
+ children: "#"
2745
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2746
+ children: "modern bump"
2747
+ })]
2748
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2749
+ codeConfig: chCodeConfig,
2750
+ northPanel: {
2751
+ "tabs": [""],
2752
+ "active": "",
2753
+ "heightRatio": 1
2754
+ },
2755
+ files: [{
2756
+ "name": "",
2757
+ "focus": "",
2758
+ "code": {
2759
+ "lines": [{
2760
+ "tokens": [{
2761
+ "content": "Usage: modern bump ",
2762
+ "props": {
2763
+ "style": {
2764
+ "color": "#D8DEE9FF"
2765
+ }
2766
+ }
2767
+ }, {
2768
+ "content": "[",
2769
+ "props": {
2770
+ "style": {
2771
+ "color": "#ECEFF4"
2772
+ }
2773
+ }
2774
+ }, {
2775
+ "content": "options",
2776
+ "props": {
2777
+ "style": {
2778
+ "color": "#D8DEE9FF"
2779
+ }
2780
+ }
2781
+ }, {
2782
+ "content": "]",
2783
+ "props": {
2784
+ "style": {
2785
+ "color": "#ECEFF4"
2786
+ }
2787
+ }
2788
+ }]
2789
+ }, {
2790
+ "tokens": []
2791
+ }, {
2792
+ "tokens": [{
2793
+ "content": "使用变更集自动更新发布版本和变更日志",
2794
+ "props": {
2795
+ "style": {
2796
+ "color": "#D8DEE9FF"
2797
+ }
2798
+ }
2799
+ }]
2800
+ }, {
2801
+ "tokens": []
2802
+ }, {
2803
+ "tokens": [{
2804
+ "content": "Options:",
2805
+ "props": {
2806
+ "style": {
2807
+ "color": "#D8DEE9FF"
2808
+ }
2809
+ }
2810
+ }]
2811
+ }, {
2812
+ "tokens": [{
2813
+ "content": " --canary 创建一个预发布版本进行测试 ",
2814
+ "props": {
2815
+ "style": {
2816
+ "color": "#D8DEE9FF"
2817
+ }
2818
+ }
2819
+ }, {
2820
+ "content": "(",
2821
+ "props": {
2822
+ "style": {
2823
+ "color": "#ECEFF4"
2824
+ }
2825
+ }
2826
+ }, {
2827
+ "content": "default: false",
2828
+ "props": {
2829
+ "style": {
2830
+ "color": "#D8DEE9FF"
2831
+ }
2832
+ }
2833
+ }, {
2834
+ "content": ")",
2835
+ "props": {
2836
+ "style": {
2837
+ "color": "#ECEFF4"
2838
+ }
2839
+ }
2840
+ }]
2841
+ }, {
2842
+ "tokens": [{
2843
+ "content": " --preid ",
2844
+ "props": {
2845
+ "style": {
2846
+ "color": "#D8DEE9FF"
2847
+ }
2848
+ }
2849
+ }, {
2850
+ "content": "<",
2851
+ "props": {
2852
+ "style": {
2853
+ "color": "#81A1C1"
2854
+ }
2855
+ }
2856
+ }, {
2857
+ "content": "tag",
2858
+ "props": {
2859
+ "style": {
2860
+ "color": "#D8DEE9FF"
2861
+ }
2862
+ }
2863
+ }, {
2864
+ "content": ">",
2865
+ "props": {
2866
+ "style": {
2867
+ "color": "#81A1C1"
2868
+ }
2869
+ }
2870
+ }, {
2871
+ "content": " 在对预发布版本进行版本控制时指定标识符 ",
2872
+ "props": {
2873
+ "style": {
2874
+ "color": "#D8DEE9FF"
2875
+ }
2876
+ }
2877
+ }, {
2878
+ "content": "(",
2879
+ "props": {
2880
+ "style": {
2881
+ "color": "#ECEFF4"
2882
+ }
2883
+ }
2884
+ }, {
2885
+ "content": "default: ",
2886
+ "props": {
2887
+ "style": {
2888
+ "color": "#D8DEE9FF"
2889
+ }
2890
+ }
2891
+ }, {
2892
+ "content": "\"",
2893
+ "props": {
2894
+ "style": {
2895
+ "color": "#ECEFF4"
2896
+ }
2897
+ }
2898
+ }, {
2899
+ "content": "next",
2900
+ "props": {
2901
+ "style": {
2902
+ "color": "#A3BE8C"
2903
+ }
2904
+ }
2905
+ }, {
2906
+ "content": "\"",
2907
+ "props": {
2908
+ "style": {
2909
+ "color": "#ECEFF4"
2910
+ }
2911
+ }
2912
+ }, {
2913
+ "content": ")",
2914
+ "props": {
2915
+ "style": {
2916
+ "color": "#ECEFF4"
2917
+ }
2918
+ }
2919
+ }]
2920
+ }, {
2921
+ "tokens": [{
2922
+ "content": " --snapshot 创建一个特殊版本进行测试 ",
2923
+ "props": {
2924
+ "style": {
2925
+ "color": "#D8DEE9FF"
2926
+ }
2927
+ }
2928
+ }, {
2929
+ "content": "(",
2930
+ "props": {
2931
+ "style": {
2932
+ "color": "#ECEFF4"
2933
+ }
2934
+ }
2935
+ }, {
2936
+ "content": "default: false",
2937
+ "props": {
2938
+ "style": {
2939
+ "color": "#D8DEE9FF"
2940
+ }
2941
+ }
2942
+ }, {
2943
+ "content": ")",
2944
+ "props": {
2945
+ "style": {
2946
+ "color": "#ECEFF4"
2947
+ }
2948
+ }
2949
+ }]
2950
+ }, {
2951
+ "tokens": [{
2952
+ "content": " -h, --help display ",
2953
+ "props": {
2954
+ "style": {
2955
+ "color": "#D8DEE9FF"
2956
+ }
2957
+ }
2958
+ }, {
2959
+ "content": "help",
2960
+ "props": {
2961
+ "style": {
2962
+ "color": "#88C0D0"
2963
+ }
2964
+ }
2965
+ }, {
2966
+ "content": " ",
2967
+ "props": {
2968
+ "style": {
2969
+ "color": "#D8DEE9FF"
2970
+ }
2971
+ }
2972
+ }, {
2973
+ "content": "for",
2974
+ "props": {
2975
+ "style": {
2976
+ "color": "#81A1C1"
2977
+ }
2978
+ }
2979
+ }, {
2980
+ "content": " ",
2981
+ "props": {
2982
+ "style": {
2983
+ "color": "#D8DEE9FF"
2984
+ }
2985
+ }
2986
+ }, {
2987
+ "content": "command",
2988
+ "props": {
2989
+ "style": {
2990
+ "color": "#88C0D0"
2991
+ }
2992
+ }
2993
+ }]
2994
+ }],
2995
+ "lang": "bash"
2996
+ },
2997
+ "annotations": []
2998
+ }]
2999
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3000
+ children: ["按照 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3001
+ href: "https://github.com/changesets/changesets",
3002
+ children: "changesets"
3003
+ }), " 生成的变更记录的 Markdown 文件修改 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3004
+ children: "package.json"
3005
+ }), " 中的版本号, 同时生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3006
+ children: "CHANGELOG.md"
3007
+ }), " 文件。"]
3008
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3009
+ id: "modern-release",
3010
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3011
+ className: "header-anchor",
3012
+ "aria-hidden": "true",
3013
+ href: "#modern-release",
3014
+ children: "#"
3015
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3016
+ children: "modern release"
3017
+ })]
3018
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3019
+ codeConfig: chCodeConfig,
3020
+ northPanel: {
3021
+ "tabs": [""],
3022
+ "active": "",
3023
+ "heightRatio": 1
3024
+ },
3025
+ files: [{
3026
+ "name": "",
3027
+ "focus": "",
3028
+ "code": {
3029
+ "lines": [{
3030
+ "tokens": [{
3031
+ "content": "Usage: modern release ",
3032
+ "props": {
3033
+ "style": {
3034
+ "color": "#D8DEE9FF"
3035
+ }
3036
+ }
3037
+ }, {
3038
+ "content": "[",
3039
+ "props": {
3040
+ "style": {
3041
+ "color": "#ECEFF4"
3042
+ }
3043
+ }
3044
+ }, {
3045
+ "content": "options",
3046
+ "props": {
3047
+ "style": {
3048
+ "color": "#D8DEE9FF"
3049
+ }
3050
+ }
3051
+ }, {
3052
+ "content": "]",
3053
+ "props": {
3054
+ "style": {
3055
+ "color": "#ECEFF4"
3056
+ }
3057
+ }
3058
+ }]
3059
+ }, {
3060
+ "tokens": []
3061
+ }, {
3062
+ "tokens": [{
3063
+ "content": "发布 npm 包",
3064
+ "props": {
3065
+ "style": {
3066
+ "color": "#D8DEE9FF"
3067
+ }
3068
+ }
3069
+ }]
3070
+ }, {
3071
+ "tokens": []
3072
+ }, {
3073
+ "tokens": [{
3074
+ "content": "Options:",
3075
+ "props": {
3076
+ "style": {
3077
+ "color": "#D8DEE9FF"
3078
+ }
3079
+ }
3080
+ }]
3081
+ }, {
3082
+ "tokens": [{
3083
+ "content": " --tag ",
3084
+ "props": {
3085
+ "style": {
3086
+ "color": "#D8DEE9FF"
3087
+ }
3088
+ }
3089
+ }, {
3090
+ "content": "<",
3091
+ "props": {
3092
+ "style": {
3093
+ "color": "#81A1C1"
3094
+ }
3095
+ }
3096
+ }, {
3097
+ "content": "tag",
3098
+ "props": {
3099
+ "style": {
3100
+ "color": "#D8DEE9FF"
3101
+ }
3102
+ }
3103
+ }, {
3104
+ "content": ">",
3105
+ "props": {
3106
+ "style": {
3107
+ "color": "#81A1C1"
3108
+ }
3109
+ }
3110
+ }, {
3111
+ "content": " 发布 npm 包使用特定的 tag ",
3112
+ "props": {
3113
+ "style": {
3114
+ "color": "#D8DEE9FF"
3115
+ }
3116
+ }
3117
+ }, {
3118
+ "content": "(",
3119
+ "props": {
3120
+ "style": {
3121
+ "color": "#ECEFF4"
3122
+ }
3123
+ }
3124
+ }, {
3125
+ "content": "default: ",
3126
+ "props": {
3127
+ "style": {
3128
+ "color": "#D8DEE9FF"
3129
+ }
3130
+ }
3131
+ }, {
3132
+ "content": "\"\"",
3133
+ "props": {
3134
+ "style": {
3135
+ "color": "#ECEFF4"
3136
+ }
3137
+ }
3138
+ }, {
3139
+ "content": ")",
3140
+ "props": {
3141
+ "style": {
3142
+ "color": "#ECEFF4"
3143
+ }
3144
+ }
3145
+ }]
3146
+ }, {
3147
+ "tokens": [{
3148
+ "content": " --ignore-scripts 发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo",
3149
+ "props": {
3150
+ "style": {
3151
+ "color": "#D8DEE9FF"
3152
+ }
3153
+ }
3154
+ }]
3155
+ }, {
3156
+ "tokens": [{
3157
+ "content": " 中使用 ",
3158
+ "props": {
3159
+ "style": {
3160
+ "color": "#D8DEE9FF"
3161
+ }
3162
+ }
3163
+ }, {
3164
+ "content": "(",
3165
+ "props": {
3166
+ "style": {
3167
+ "color": "#ECEFF4"
3168
+ }
3169
+ }
3170
+ }, {
3171
+ "content": "default: ",
3172
+ "props": {
3173
+ "style": {
3174
+ "color": "#D8DEE9FF"
3175
+ }
3176
+ }
3177
+ }, {
3178
+ "content": "\"\"",
3179
+ "props": {
3180
+ "style": {
3181
+ "color": "#ECEFF4"
3182
+ }
3183
+ }
3184
+ }, {
3185
+ "content": ")",
3186
+ "props": {
3187
+ "style": {
3188
+ "color": "#ECEFF4"
3189
+ }
3190
+ }
3191
+ }]
3192
+ }, {
3193
+ "tokens": [{
3194
+ "content": " -h, --help display ",
3195
+ "props": {
3196
+ "style": {
3197
+ "color": "#D8DEE9FF"
3198
+ }
3199
+ }
3200
+ }, {
3201
+ "content": "help",
3202
+ "props": {
3203
+ "style": {
3204
+ "color": "#88C0D0"
3205
+ }
3206
+ }
3207
+ }, {
3208
+ "content": " ",
3209
+ "props": {
3210
+ "style": {
3211
+ "color": "#D8DEE9FF"
3212
+ }
3213
+ }
3214
+ }, {
3215
+ "content": "for",
3216
+ "props": {
3217
+ "style": {
3218
+ "color": "#81A1C1"
3219
+ }
3220
+ }
3221
+ }, {
3222
+ "content": " ",
3223
+ "props": {
3224
+ "style": {
3225
+ "color": "#D8DEE9FF"
3226
+ }
3227
+ }
3228
+ }, {
3229
+ "content": "command",
3230
+ "props": {
3231
+ "style": {
3232
+ "color": "#88C0D0"
3233
+ }
3234
+ }
3235
+ }]
3236
+ }],
3237
+ "lang": "bash"
3238
+ },
3239
+ "annotations": []
3240
+ }]
3241
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3242
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3243
+ children: "modern release"
3244
+ }), " 命令可以将模块发布到 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3245
+ href: "https://www.npmjs.com/",
3246
+ children: "npm Registry"
3247
+ }), " 上。"]
3248
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
3249
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
3250
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3251
+ children: "--tag"
3252
+ }), " 参数可以指定发布时具体的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3253
+ href: "https://docs.npmjs.com/adding-dist-tags-to-packages",
3254
+ children: "dist tags"
3255
+ }), "。"]
3256
+ }), "\n"]
3257
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3258
+ id: "modern-gen-release-note",
3259
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3260
+ className: "header-anchor",
3261
+ "aria-hidden": "true",
3262
+ href: "#modern-gen-release-note",
3263
+ children: "#"
3264
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3265
+ children: "modern gen-release-note"
3266
+ })]
3267
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3268
+ codeConfig: chCodeConfig,
3269
+ northPanel: {
3270
+ "tabs": [""],
3271
+ "active": "",
3272
+ "heightRatio": 1
3273
+ },
3274
+ files: [{
3275
+ "name": "",
3276
+ "focus": "",
3277
+ "code": {
3278
+ "lines": [{
3279
+ "tokens": [{
3280
+ "content": "Usage: modern gen-release-note ",
3281
+ "props": {
3282
+ "style": {
3283
+ "color": "#D8DEE9FF"
3284
+ }
3285
+ }
3286
+ }, {
3287
+ "content": "[",
3288
+ "props": {
3289
+ "style": {
3290
+ "color": "#ECEFF4"
3291
+ }
3292
+ }
3293
+ }, {
3294
+ "content": "options",
3295
+ "props": {
3296
+ "style": {
3297
+ "color": "#D8DEE9FF"
3298
+ }
3299
+ }
3300
+ }, {
3301
+ "content": "]",
3302
+ "props": {
3303
+ "style": {
3304
+ "color": "#ECEFF4"
3305
+ }
3306
+ }
3307
+ }]
3308
+ }, {
3309
+ "tokens": []
3310
+ }, {
3311
+ "tokens": [{
3312
+ "content": "根据当前仓库 changeset 信息生成 Release Note",
3313
+ "props": {
3314
+ "style": {
3315
+ "color": "#D8DEE9FF"
3316
+ }
3317
+ }
3318
+ }]
3319
+ }, {
3320
+ "tokens": []
3321
+ }, {
3322
+ "tokens": [{
3323
+ "content": "Options:",
3324
+ "props": {
3325
+ "style": {
3326
+ "color": "#D8DEE9FF"
3327
+ }
3328
+ }
3329
+ }]
3330
+ }, {
3331
+ "tokens": [{
3332
+ "content": " --repo ",
3333
+ "props": {
3334
+ "style": {
3335
+ "color": "#D8DEE9FF"
3336
+ }
3337
+ }
3338
+ }, {
3339
+ "content": "<",
3340
+ "props": {
3341
+ "style": {
3342
+ "color": "#81A1C1"
3343
+ }
3344
+ }
3345
+ }, {
3346
+ "content": "repo",
3347
+ "props": {
3348
+ "style": {
3349
+ "color": "#D8DEE9FF"
3350
+ }
3351
+ }
3352
+ }, {
3353
+ "content": ">",
3354
+ "props": {
3355
+ "style": {
3356
+ "color": "#81A1C1"
3357
+ }
3358
+ }
3359
+ }, {
3360
+ "content": " 仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js",
3361
+ "props": {
3362
+ "style": {
3363
+ "color": "#D8DEE9FF"
3364
+ }
3365
+ }
3366
+ }]
3367
+ }, {
3368
+ "tokens": [{
3369
+ "content": " --custom ",
3370
+ "props": {
3371
+ "style": {
3372
+ "color": "#D8DEE9FF"
3373
+ }
3374
+ }
3375
+ }, {
3376
+ "content": "<",
3377
+ "props": {
3378
+ "style": {
3379
+ "color": "#81A1C1"
3380
+ }
3381
+ }
3382
+ }, {
3383
+ "content": "cumtom",
3384
+ "props": {
3385
+ "style": {
3386
+ "color": "#D8DEE9FF"
3387
+ }
3388
+ }
3389
+ }, {
3390
+ "content": ">",
3391
+ "props": {
3392
+ "style": {
3393
+ "color": "#81A1C1"
3394
+ }
3395
+ }
3396
+ }, {
3397
+ "content": " 自定义 Release Note 生成函数",
3398
+ "props": {
3399
+ "style": {
3400
+ "color": "#D8DEE9FF"
3401
+ }
3402
+ }
3403
+ }]
3404
+ }, {
3405
+ "tokens": [{
3406
+ "content": " -h, --help display ",
3407
+ "props": {
3408
+ "style": {
3409
+ "color": "#D8DEE9FF"
3410
+ }
3411
+ }
3412
+ }, {
3413
+ "content": "help",
3414
+ "props": {
3415
+ "style": {
3416
+ "color": "#88C0D0"
3417
+ }
3418
+ }
3419
+ }, {
3420
+ "content": " ",
3421
+ "props": {
3422
+ "style": {
3423
+ "color": "#D8DEE9FF"
3424
+ }
3425
+ }
3426
+ }, {
3427
+ "content": "for",
3428
+ "props": {
3429
+ "style": {
3430
+ "color": "#81A1C1"
3431
+ }
3432
+ }
3433
+ }, {
3434
+ "content": " ",
3435
+ "props": {
3436
+ "style": {
3437
+ "color": "#D8DEE9FF"
3438
+ }
3439
+ }
3440
+ }, {
3441
+ "content": "command",
3442
+ "props": {
3443
+ "style": {
3444
+ "color": "#88C0D0"
3445
+ }
3446
+ }
3447
+ }]
3448
+ }],
3449
+ "lang": "bash"
3450
+ },
3451
+ "annotations": []
3452
+ }]
3453
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3454
+ children: ["根据当前仓库的 changeset 信息自动生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3455
+ href: "https://en.wikipedia.org/wiki/Release_notes",
3456
+ children: "Release Note"
3457
+ }), "。"]
3458
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
3459
+ className: "modern-directive tip",
3460
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3461
+ className: "modern-directive-title",
3462
+ children: "注意"
3463
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
3464
+ className: "island-directive-content",
3465
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3466
+ children: ["需要在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3467
+ children: "bump"
3468
+ }), " 命令之前执行。"]
3469
+ })
3470
+ })]
3471
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3472
+ id: "modern-upgrade",
3473
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3474
+ className: "header-anchor",
3475
+ "aria-hidden": "true",
3476
+ href: "#modern-upgrade",
3477
+ children: "#"
3478
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3479
+ children: "modern upgrade"
3480
+ })]
3481
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3482
+ codeConfig: chCodeConfig,
3483
+ northPanel: {
3484
+ "tabs": [""],
3485
+ "active": "",
3486
+ "heightRatio": 1
3487
+ },
3488
+ files: [{
3489
+ "name": "",
3490
+ "focus": "",
3491
+ "code": {
3492
+ "lines": [{
3493
+ "tokens": [{
3494
+ "content": "Usage: modern upgrade ",
3495
+ "props": {
3496
+ "style": {
3497
+ "color": "#D8DEE9FF"
3498
+ }
3499
+ }
3500
+ }, {
3501
+ "content": "[",
3502
+ "props": {
3503
+ "style": {
3504
+ "color": "#ECEFF4"
3505
+ }
3506
+ }
3507
+ }, {
3508
+ "content": "options",
3509
+ "props": {
3510
+ "style": {
3511
+ "color": "#D8DEE9FF"
3512
+ }
3513
+ }
3514
+ }, {
3515
+ "content": "]",
3516
+ "props": {
3517
+ "style": {
3518
+ "color": "#ECEFF4"
3519
+ }
3520
+ }
3521
+ }]
3522
+ }, {
3523
+ "tokens": []
3524
+ }, {
3525
+ "tokens": [{
3526
+ "content": "升级 Modern.js 到最新版本",
3527
+ "props": {
3528
+ "style": {
3529
+ "color": "#D8DEE9FF"
3530
+ }
3531
+ }
3532
+ }]
3533
+ }, {
3534
+ "tokens": []
3535
+ }, {
3536
+ "tokens": [{
3537
+ "content": "Options:",
3538
+ "props": {
3539
+ "style": {
3540
+ "color": "#D8DEE9FF"
3541
+ }
3542
+ }
3543
+ }]
3544
+ }, {
3545
+ "tokens": [{
3546
+ "content": " --registry ",
3547
+ "props": {
3548
+ "style": {
3549
+ "color": "#D8DEE9FF"
3550
+ }
3551
+ }
3552
+ }, {
3553
+ "content": "<",
3554
+ "props": {
3555
+ "style": {
3556
+ "color": "#81A1C1"
3557
+ }
3558
+ }
3559
+ }, {
3560
+ "content": "registry",
3561
+ "props": {
3562
+ "style": {
3563
+ "color": "#D8DEE9FF"
3564
+ }
3565
+ }
3566
+ }, {
3567
+ "content": ">",
3568
+ "props": {
3569
+ "style": {
3570
+ "color": "#81A1C1"
3571
+ }
3572
+ }
3573
+ }, {
3574
+ "content": " 定制 npm registry ",
3575
+ "props": {
3576
+ "style": {
3577
+ "color": "#D8DEE9FF"
3578
+ }
3579
+ }
3580
+ }, {
3581
+ "content": "(",
3582
+ "props": {
3583
+ "style": {
3584
+ "color": "#ECEFF4"
3585
+ }
3586
+ }
3587
+ }, {
3588
+ "content": "default: ",
3589
+ "props": {
3590
+ "style": {
3591
+ "color": "#D8DEE9FF"
3592
+ }
3593
+ }
3594
+ }, {
3595
+ "content": "\"\"",
3596
+ "props": {
3597
+ "style": {
3598
+ "color": "#ECEFF4"
3599
+ }
3600
+ }
3601
+ }, {
3602
+ "content": ")",
3603
+ "props": {
3604
+ "style": {
3605
+ "color": "#ECEFF4"
3606
+ }
3607
+ }
3608
+ }]
3609
+ }, {
3610
+ "tokens": [{
3611
+ "content": " -d,--debug 开启 Debug 模式,打印调试日志信息 ",
3612
+ "props": {
3613
+ "style": {
3614
+ "color": "#D8DEE9FF"
3615
+ }
3616
+ }
3617
+ }, {
3618
+ "content": "(",
3619
+ "props": {
3620
+ "style": {
3621
+ "color": "#ECEFF4"
3622
+ }
3623
+ }
3624
+ }, {
3625
+ "content": "default: false",
3626
+ "props": {
3627
+ "style": {
3628
+ "color": "#D8DEE9FF"
3629
+ }
3630
+ }
3631
+ }, {
3632
+ "content": ")",
3633
+ "props": {
3634
+ "style": {
3635
+ "color": "#ECEFF4"
3636
+ }
3637
+ }
3638
+ }]
3639
+ }, {
3640
+ "tokens": [{
3641
+ "content": " --cwd ",
3642
+ "props": {
3643
+ "style": {
3644
+ "color": "#D8DEE9FF"
3645
+ }
3646
+ }
3647
+ }, {
3648
+ "content": "<",
3649
+ "props": {
3650
+ "style": {
3651
+ "color": "#81A1C1"
3652
+ }
3653
+ }
3654
+ }, {
3655
+ "content": "cwd",
3656
+ "props": {
3657
+ "style": {
3658
+ "color": "#D8DEE9FF"
3659
+ }
3660
+ }
3661
+ }, {
3662
+ "content": ">",
3663
+ "props": {
3664
+ "style": {
3665
+ "color": "#81A1C1"
3666
+ }
3667
+ }
3668
+ }, {
3669
+ "content": " 项目路径 ",
3670
+ "props": {
3671
+ "style": {
3672
+ "color": "#D8DEE9FF"
3673
+ }
3674
+ }
3675
+ }, {
3676
+ "content": "(",
3677
+ "props": {
3678
+ "style": {
3679
+ "color": "#ECEFF4"
3680
+ }
3681
+ }
3682
+ }, {
3683
+ "content": "default: ",
3684
+ "props": {
3685
+ "style": {
3686
+ "color": "#D8DEE9FF"
3687
+ }
3688
+ }
3689
+ }, {
3690
+ "content": "\"\"",
3691
+ "props": {
3692
+ "style": {
3693
+ "color": "#ECEFF4"
3694
+ }
3695
+ }
3696
+ }, {
3697
+ "content": ")",
3698
+ "props": {
3699
+ "style": {
3700
+ "color": "#ECEFF4"
3701
+ }
3702
+ }
3703
+ }]
3704
+ }, {
3705
+ "tokens": [{
3706
+ "content": " -h, --help display ",
3707
+ "props": {
3708
+ "style": {
3709
+ "color": "#D8DEE9FF"
3710
+ }
3711
+ }
3712
+ }, {
3713
+ "content": "help",
3714
+ "props": {
3715
+ "style": {
3716
+ "color": "#88C0D0"
3717
+ }
3718
+ }
3719
+ }, {
3720
+ "content": " ",
3721
+ "props": {
3722
+ "style": {
3723
+ "color": "#D8DEE9FF"
3724
+ }
3725
+ }
3726
+ }, {
3727
+ "content": "for",
3728
+ "props": {
3729
+ "style": {
3730
+ "color": "#81A1C1"
3731
+ }
3732
+ }
3733
+ }, {
3734
+ "content": " ",
3735
+ "props": {
3736
+ "style": {
3737
+ "color": "#D8DEE9FF"
3738
+ }
3739
+ }
3740
+ }, {
3741
+ "content": "command",
3742
+ "props": {
3743
+ "style": {
3744
+ "color": "#88C0D0"
3745
+ }
3746
+ }
3747
+ }]
3748
+ }],
3749
+ "lang": "bash"
3750
+ },
3751
+ "annotations": []
3752
+ }]
3753
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3754
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3755
+ children: "modern upgrade"
3756
+ }), " 命令,用于升级项目 Modern.js 相关依赖至最新版本。"]
3757
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3758
+ children: ["在项目根目录下执行命令 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3759
+ children: "npx modern upgrade"
3760
+ }), ",会默认将当前执行命令项目的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3761
+ children: "package.json"
3762
+ }), " 中的 Modern.js 相关依赖更新至最新版本。"]
3763
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3764
+ children: ["命令在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3765
+ children: "@modern-js/module-tools"
3766
+ }), " 版本 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
3767
+ children: ">= 1.17.0"
3768
+ }), " 提供,之前版本可使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3769
+ children: "npx @modern-js/upgrade"
3770
+ }), " 进行升级。"]
3771
+ })]
3772
+ });
3773
+ }
3774
+ function MDXContent() {
3775
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
3776
+ var _ref = props.components || {},
3777
+ MDXLayout = _ref.wrapper;
3778
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3779
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3780
+ })) : _createMdxContent(props);
3781
+ }
3782
+ _c = MDXContent;
3783
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3784
+ function _missingMdxReference(id, component, place) {
3785
+ throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/modern.js/website/module-tools/docs/zh/guide/basic/command-preview.md`" : ""));
3786
+ }
3787
+ var _c;
3788
+ __webpack_require__.$Refresh$.register(_c, "MDXContent");
3789
+
3790
+ /***/ })
3791
+
3792
+ }]);
3793
+ //# sourceMappingURL=guide_basic_command-preview.js.map