@modern-js/module-tools-docs 2.2.0 → 2.2.1-beta.1

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 (293) hide show
  1. package/LICENSE +144 -0
  2. package/doc_build/html/main/index.html +16 -0
  3. package/doc_build/route.json +10 -0
  4. package/doc_build/static/css/main.css +2977 -0
  5. package/doc_build/static/css/main.css.map +1 -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 +68 -0
  7. 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
  8. package/doc_build/static/js/async/en_api_config_build-config.js +8406 -0
  9. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
  10. package/doc_build/static/js/async/en_api_config_build-preset.js +7865 -0
  11. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
  12. package/doc_build/static/js/async/en_api_config_design-system.js +47805 -0
  13. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
  14. package/doc_build/static/js/async/en_api_config_plugins.js +1488 -0
  15. package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
  16. package/doc_build/static/js/async/en_api_config_testing.js +2139 -0
  17. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
  18. package/doc_build/static/js/async/en_api_index.js +51 -0
  19. package/doc_build/static/js/async/en_api_index.js.map +1 -0
  20. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14360 -0
  21. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
  22. package/doc_build/static/js/async/en_guide_advance_asset.js +3972 -0
  23. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
  24. package/doc_build/static/js/async/en_guide_advance_build-umd.js +9857 -0
  25. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
  26. package/doc_build/static/js/async/en_guide_advance_copy.js +6541 -0
  27. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
  28. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3806 -0
  29. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
  30. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5304 -0
  31. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
  32. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +2526 -0
  33. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
  34. package/doc_build/static/js/async/en_guide_advance_theme-config.js +2486 -0
  35. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
  36. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3720 -0
  37. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
  38. package/doc_build/static/js/async/en_guide_basic_command-preview.js +3973 -0
  39. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
  40. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +3137 -0
  41. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
  42. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2180 -0
  43. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
  44. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3887 -0
  45. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
  46. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +2973 -0
  47. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
  48. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4723 -0
  49. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
  50. package/doc_build/static/js/async/en_guide_best-practices_components.js +21400 -0
  51. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
  52. package/doc_build/static/js/async/en_guide_intro_getting-started.js +2149 -0
  53. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
  54. package/doc_build/static/js/async/en_guide_intro_welcome.js +162 -0
  55. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
  56. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +96 -0
  57. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
  58. package/doc_build/static/js/async/en_index.js +81 -0
  59. package/doc_build/static/js/async/en_index.js.map +1 -0
  60. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2556 -0
  61. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
  62. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4173 -0
  63. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
  64. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3815 -0
  65. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
  66. package/doc_build/static/js/async/en_plugins_official-list_overview.js +66 -0
  67. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
  68. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +246 -0
  69. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
  70. 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
  71. 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
  72. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
  73. 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
  74. package/doc_build/static/js/async/zh_api_config_build-config.js +11354 -0
  75. package/doc_build/static/js/async/zh_api_config_build-config.js.map +1 -0
  76. package/doc_build/static/js/async/zh_api_config_build-preset.js +7867 -0
  77. package/doc_build/static/js/async/zh_api_config_build-preset.js.map +1 -0
  78. package/doc_build/static/js/async/zh_api_config_design-system.js +48712 -0
  79. package/doc_build/static/js/async/zh_api_config_design-system.js.map +1 -0
  80. package/doc_build/static/js/async/zh_api_config_plugins.js +1488 -0
  81. package/doc_build/static/js/async/zh_api_config_plugins.js.map +1 -0
  82. package/doc_build/static/js/async/zh_api_config_testing.js +2132 -0
  83. package/doc_build/static/js/async/zh_api_config_testing.js.map +1 -0
  84. package/doc_build/static/js/async/zh_api_index.js +52 -0
  85. package/doc_build/static/js/async/zh_api_index.js.map +1 -0
  86. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js +14392 -0
  87. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js.map +1 -0
  88. package/doc_build/static/js/async/zh_guide_advance_asset.js +3972 -0
  89. package/doc_build/static/js/async/zh_guide_advance_asset.js.map +1 -0
  90. package/doc_build/static/js/async/zh_guide_advance_build-umd.js +9859 -0
  91. package/doc_build/static/js/async/zh_guide_advance_build-umd.js.map +1 -0
  92. package/doc_build/static/js/async/zh_guide_advance_copy.js +6541 -0
  93. package/doc_build/static/js/async/zh_guide_advance_copy.js.map +1 -0
  94. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js +3808 -0
  95. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js.map +1 -0
  96. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js +5304 -0
  97. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js.map +1 -0
  98. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js +2526 -0
  99. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +1 -0
  100. package/doc_build/static/js/async/zh_guide_advance_theme-config.js +2477 -0
  101. package/doc_build/static/js/async/zh_guide_advance_theme-config.js.map +1 -0
  102. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js +3711 -0
  103. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +1 -0
  104. package/doc_build/static/js/async/zh_guide_basic_command-preview.js +3805 -0
  105. package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +1 -0
  106. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js +3142 -0
  107. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +1 -0
  108. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js +2241 -0
  109. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js.map +1 -0
  110. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js +4286 -0
  111. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js.map +1 -0
  112. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js +2979 -0
  113. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +1 -0
  114. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js +4760 -0
  115. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js.map +1 -0
  116. package/doc_build/static/js/async/zh_guide_best-practices_components.js +21100 -0
  117. package/doc_build/static/js/async/zh_guide_best-practices_components.js.map +1 -0
  118. package/doc_build/static/js/async/zh_guide_intro_getting-started.js +2031 -0
  119. package/doc_build/static/js/async/zh_guide_intro_getting-started.js.map +1 -0
  120. package/doc_build/static/js/async/zh_guide_intro_welcome.js +162 -0
  121. package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +1 -0
  122. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js +96 -0
  123. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +1 -0
  124. package/doc_build/static/js/async/zh_index.js +81 -0
  125. package/doc_build/static/js/async/zh_index.js.map +1 -0
  126. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js +2604 -0
  127. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js.map +1 -0
  128. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js +4169 -0
  129. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js.map +1 -0
  130. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js +3815 -0
  131. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js.map +1 -0
  132. package/doc_build/static/js/async/zh_plugins_official-list_overview.js +66 -0
  133. package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +1 -0
  134. package/doc_build/static/js/builder-runtime.js +1375 -0
  135. package/doc_build/static/js/builder-runtime.js.map +1 -0
  136. package/doc_build/static/js/lib-lodash.js +4907 -0
  137. package/doc_build/static/js/lib-lodash.js.map +1 -0
  138. package/doc_build/static/js/lib-polyfill.js +11847 -0
  139. package/doc_build/static/js/lib-polyfill.js.map +1 -0
  140. package/doc_build/static/js/lib-react.js +39510 -0
  141. package/doc_build/static/js/lib-react.js.map +1 -0
  142. package/doc_build/static/js/main.js +8610 -0
  143. package/doc_build/static/js/main.js.map +1 -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 +7328 -0
  145. 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
  146. package/doc_build/static/search_index.json +1 -1
  147. package/docs/en/guide/advance/in-depth-about-dev-command.md +65 -12
  148. package/docs/en/guide/basic/before-getting-started.md +4 -14
  149. package/docs/en/guide/basic/command-preview.md +1 -1
  150. package/docs/en/guide/basic/modify-output-product.md +6 -2
  151. package/docs/en/guide/basic/use-micro-generator.md +62 -1
  152. package/docs/en/guide/basic/using-storybook.mdx +4 -4
  153. package/docs/en/guide/intro/getting-started.md +16 -7
  154. package/docs/zh/guide/advance/in-depth-about-dev-command.md +60 -13
  155. package/docs/zh/guide/basic/before-getting-started.md +4 -14
  156. package/docs/zh/guide/basic/command-preview.md +2 -2
  157. package/docs/zh/guide/basic/modify-output-product.md +5 -3
  158. package/docs/zh/guide/basic/publish-your-project.md +4 -4
  159. package/docs/zh/guide/basic/test-your-project.mdx +18 -5
  160. package/docs/zh/guide/basic/use-micro-generator.md +61 -1
  161. package/docs/zh/guide/basic/using-storybook.mdx +13 -10
  162. package/docs/zh/guide/intro/getting-started.md +17 -11
  163. package/package.json +3 -3
  164. package/doc_build/api/config/build-config.html +0 -332
  165. package/doc_build/api/config/build-preset.html +0 -43
  166. package/doc_build/api/config/design-system.html +0 -103
  167. package/doc_build/api/config/plugins.html +0 -7
  168. package/doc_build/api/config/testing.html +0 -21
  169. package/doc_build/api/index.html +0 -1
  170. package/doc_build/api/plugin-api/plugin-hooks.html +0 -113
  171. package/doc_build/en/api/config/build-config.html +0 -316
  172. package/doc_build/en/api/config/build-preset.html +0 -43
  173. package/doc_build/en/api/config/design-system.html +0 -117
  174. package/doc_build/en/api/config/plugins.html +0 -7
  175. package/doc_build/en/api/config/testing.html +0 -21
  176. package/doc_build/en/api/index.html +0 -1
  177. package/doc_build/en/api/plugin-api/plugin-hooks.html +0 -113
  178. package/doc_build/en/guide/advance/asset.html +0 -25
  179. package/doc_build/en/guide/advance/build-umd.html +0 -32
  180. package/doc_build/en/guide/advance/copy.html +0 -42
  181. package/doc_build/en/guide/advance/external-dependency.html +0 -31
  182. package/doc_build/en/guide/advance/in-depth-about-build.html +0 -112
  183. package/doc_build/en/guide/advance/in-depth-about-dev-command.html +0 -12
  184. package/doc_build/en/guide/advance/theme-config.html +0 -29
  185. package/doc_build/en/guide/basic/before-getting-started.html +0 -89
  186. package/doc_build/en/guide/basic/command-preview.html +0 -63
  187. package/doc_build/en/guide/basic/modify-output-product.html +0 -98
  188. package/doc_build/en/guide/basic/publish-your-project.html +0 -50
  189. package/doc_build/en/guide/basic/test-your-project.html +0 -31
  190. package/doc_build/en/guide/basic/use-micro-generator.html +0 -29
  191. package/doc_build/en/guide/basic/using-storybook.html +0 -66
  192. package/doc_build/en/guide/best-practices/components.html +0 -111
  193. package/doc_build/en/guide/intro/getting-started.html +0 -36
  194. package/doc_build/en/guide/intro/welcome.html +0 -13
  195. package/doc_build/en/guide/intro/why-module-engineering-solution.html +0 -9
  196. package/doc_build/en/index.html +0 -1
  197. package/doc_build/en/plugins/guide/getting-started.html +0 -15
  198. package/doc_build/en/plugins/guide/plugin-object.html +0 -14
  199. package/doc_build/en/plugins/guide/setup-function.html +0 -30
  200. package/doc_build/en/plugins/official-list/overview.html +0 -3
  201. package/doc_build/guide/advance/asset.html +0 -25
  202. package/doc_build/guide/advance/build-umd.html +0 -32
  203. package/doc_build/guide/advance/copy.html +0 -42
  204. package/doc_build/guide/advance/external-dependency.html +0 -31
  205. package/doc_build/guide/advance/in-depth-about-build.html +0 -112
  206. package/doc_build/guide/advance/in-depth-about-dev-command.html +0 -14
  207. package/doc_build/guide/advance/theme-config.html +0 -28
  208. package/doc_build/guide/basic/before-getting-started.html +0 -89
  209. package/doc_build/guide/basic/command-preview.html +0 -63
  210. package/doc_build/guide/basic/modify-output-product.html +0 -97
  211. package/doc_build/guide/basic/publish-your-project.html +0 -52
  212. package/doc_build/guide/basic/test-your-project.html +0 -32
  213. package/doc_build/guide/basic/use-micro-generator.html +0 -27
  214. package/doc_build/guide/basic/using-storybook.html +0 -67
  215. package/doc_build/guide/best-practices/components.html +0 -111
  216. package/doc_build/guide/intro/getting-started.html +0 -39
  217. package/doc_build/guide/intro/welcome.html +0 -13
  218. package/doc_build/guide/intro/why-module-engineering-solution.html +0 -9
  219. package/doc_build/index.html +0 -1
  220. package/doc_build/plugins/guide/getting-started.html +0 -15
  221. package/doc_build/plugins/guide/plugin-object.html +0 -14
  222. package/doc_build/plugins/guide/setup-function.html +0 -30
  223. package/doc_build/plugins/official-list/overview.html +0 -3
  224. package/doc_build/static/css/main.edaad072.css +0 -1
  225. package/doc_build/static/js/1607.70af642a.js +0 -2
  226. package/doc_build/static/js/1607.70af642a.js.LICENSE.txt +0 -23
  227. package/doc_build/static/js/async/3799.e31e8293.js +0 -1
  228. package/doc_build/static/js/async/8652.6fbf1cb7.js +0 -1
  229. package/doc_build/static/js/async/en_api_config_build-config.367a5701.js +0 -1
  230. package/doc_build/static/js/async/en_api_config_build-preset.0d78b268.js +0 -1
  231. package/doc_build/static/js/async/en_api_config_design-system.b28d6723.js +0 -1
  232. package/doc_build/static/js/async/en_api_config_plugins.fc95fb77.js +0 -1
  233. package/doc_build/static/js/async/en_api_config_testing.8bc7f316.js +0 -1
  234. package/doc_build/static/js/async/en_api_index.669f0a56.js +0 -1
  235. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.60d0260c.js +0 -1
  236. package/doc_build/static/js/async/en_guide_advance_asset.5ff1d623.js +0 -1
  237. package/doc_build/static/js/async/en_guide_advance_build-umd.c254ed46.js +0 -1
  238. package/doc_build/static/js/async/en_guide_advance_copy.45c0a51d.js +0 -1
  239. package/doc_build/static/js/async/en_guide_advance_external-dependency.a52d3247.js +0 -1
  240. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.51bf3569.js +0 -1
  241. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.aec0b4e1.js +0 -1
  242. package/doc_build/static/js/async/en_guide_advance_theme-config.db0ad9fc.js +0 -1
  243. package/doc_build/static/js/async/en_guide_basic_before-getting-started.a22fc49a.js +0 -1
  244. package/doc_build/static/js/async/en_guide_basic_command-preview.1707ed29.js +0 -1
  245. package/doc_build/static/js/async/en_guide_basic_modify-output-product.ad453d13.js +0 -1
  246. package/doc_build/static/js/async/en_guide_basic_publish-your-project.08c5112f.js +0 -1
  247. package/doc_build/static/js/async/en_guide_basic_test-your-project.f5f6b204.js +0 -1
  248. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.56325139.js +0 -1
  249. package/doc_build/static/js/async/en_guide_basic_using-storybook.9d721554.js +0 -1
  250. package/doc_build/static/js/async/en_guide_best-practices_components.45155af9.js +0 -1
  251. package/doc_build/static/js/async/en_guide_intro_getting-started.f8682be3.js +0 -1
  252. package/doc_build/static/js/async/en_guide_intro_welcome.9cc45924.js +0 -1
  253. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.7f2dae5c.js +0 -1
  254. package/doc_build/static/js/async/en_index.7bd869c4.js +0 -1
  255. package/doc_build/static/js/async/en_plugins_guide_getting-started.b850249c.js +0 -1
  256. package/doc_build/static/js/async/en_plugins_guide_plugin-object.bf6c6221.js +0 -1
  257. package/doc_build/static/js/async/en_plugins_guide_setup-function.80a2bd97.js +0 -1
  258. package/doc_build/static/js/async/en_plugins_official-list_overview.84e5cea0.js +0 -1
  259. package/doc_build/static/js/async/zh_api_config_build-config.048fd5ec.js +0 -1
  260. package/doc_build/static/js/async/zh_api_config_build-preset.7c13584d.js +0 -1
  261. package/doc_build/static/js/async/zh_api_config_design-system.1eecd474.js +0 -1
  262. package/doc_build/static/js/async/zh_api_config_plugins.c22dc4be.js +0 -1
  263. package/doc_build/static/js/async/zh_api_config_testing.a9888eed.js +0 -1
  264. package/doc_build/static/js/async/zh_api_index.22957707.js +0 -1
  265. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.a4d81bf6.js +0 -1
  266. package/doc_build/static/js/async/zh_guide_advance_asset.5b936003.js +0 -1
  267. package/doc_build/static/js/async/zh_guide_advance_build-umd.b6d541ff.js +0 -1
  268. package/doc_build/static/js/async/zh_guide_advance_copy.21a1aea4.js +0 -1
  269. package/doc_build/static/js/async/zh_guide_advance_external-dependency.c7cf5d4b.js +0 -1
  270. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.64e795f3.js +0 -1
  271. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.168ce7dd.js +0 -1
  272. package/doc_build/static/js/async/zh_guide_advance_theme-config.b9570109.js +0 -1
  273. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.6b06b54a.js +0 -1
  274. package/doc_build/static/js/async/zh_guide_basic_command-preview.1199124a.js +0 -1
  275. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.8ccbc8d1.js +0 -1
  276. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.bf11b1c4.js +0 -1
  277. package/doc_build/static/js/async/zh_guide_basic_test-your-project.ae52c47a.js +0 -1
  278. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.a091d57d.js +0 -1
  279. package/doc_build/static/js/async/zh_guide_basic_using-storybook.27829e44.js +0 -1
  280. package/doc_build/static/js/async/zh_guide_best-practices_components.7454d916.js +0 -1
  281. package/doc_build/static/js/async/zh_guide_intro_getting-started.a4c00d9a.js +0 -1
  282. package/doc_build/static/js/async/zh_guide_intro_welcome.71c3fe16.js +0 -1
  283. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.6f8b5ff6.js +0 -1
  284. package/doc_build/static/js/async/zh_index.c19f9dcf.js +0 -1
  285. package/doc_build/static/js/async/zh_plugins_guide_getting-started.099dfaea.js +0 -1
  286. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.963289d5.js +0 -1
  287. package/doc_build/static/js/async/zh_plugins_guide_setup-function.67d07b91.js +0 -1
  288. package/doc_build/static/js/async/zh_plugins_official-list_overview.a7635714.js +0 -1
  289. package/doc_build/static/js/lib-lodash.c5845536.js +0 -1
  290. package/doc_build/static/js/lib-polyfill.b3038509.js +0 -1
  291. package/doc_build/static/js/lib-react.d41ace5e.js +0 -2
  292. package/doc_build/static/js/lib-react.d41ace5e.js.LICENSE.txt +0 -29
  293. package/doc_build/static/js/main.2d3257a4.js +0 -1
@@ -0,0 +1,3805 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["zh_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
+ const 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
+ const 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/github/targeral/modern-dev/website/module-tools/docs/zh/guide/basic/command-preview.md"
1189
+ };
1190
+ const frontmatter = {
1191
+ "sidebar_position": 2
1192
+ };
1193
+ const 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
+ const title = `命令预览`;
1239
+ const 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 --watch` 程序确保源码构建产物的存在**。\\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- Test 测试\\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 new` 开启测试功能,然后才可以执行 `modern test` 命令。\\n`modern test` 命令会自动将 `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\"";
1240
+ function _createMdxContent(props) {
1241
+ const _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: "/module-tools/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: "/module-tools/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: "modern-directive-content",
1556
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1557
+ children: ["\n在执行 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 --watch"
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: "Test 测试"
1831
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1832
+ children: "Storybook 调试"
1833
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1834
+ children: "Tailwind CSS 支持"
1835
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1836
+ children: "Modern.js Runtime API"
1837
+ }), "\n"]
1838
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1839
+ children: ["关于这些功能,可以通过", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1840
+ href: "/module-tools/guide/basic/use-micro-generator.html",
1841
+ children: "【使用微生成器】"
1842
+ }), " 章节了解更多。"]
1843
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1844
+ id: "modern-dev",
1845
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1846
+ className: "header-anchor",
1847
+ "aria-hidden": "true",
1848
+ href: "#modern-dev",
1849
+ children: "#"
1850
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1851
+ children: "modern dev"
1852
+ })]
1853
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1854
+ codeConfig: chCodeConfig,
1855
+ northPanel: {
1856
+ "tabs": [""],
1857
+ "active": "",
1858
+ "heightRatio": 1
1859
+ },
1860
+ files: [{
1861
+ "name": "",
1862
+ "focus": "",
1863
+ "code": {
1864
+ "lines": [{
1865
+ "tokens": [{
1866
+ "content": "Usage: modern dev ",
1867
+ "props": {
1868
+ "style": {
1869
+ "color": "#D8DEE9FF"
1870
+ }
1871
+ }
1872
+ }, {
1873
+ "content": "[",
1874
+ "props": {
1875
+ "style": {
1876
+ "color": "#ECEFF4"
1877
+ }
1878
+ }
1879
+ }, {
1880
+ "content": "options",
1881
+ "props": {
1882
+ "style": {
1883
+ "color": "#D8DEE9FF"
1884
+ }
1885
+ }
1886
+ }, {
1887
+ "content": "]",
1888
+ "props": {
1889
+ "style": {
1890
+ "color": "#ECEFF4"
1891
+ }
1892
+ }
1893
+ }]
1894
+ }, {
1895
+ "tokens": []
1896
+ }, {
1897
+ "tokens": [{
1898
+ "content": "本地开发命令",
1899
+ "props": {
1900
+ "style": {
1901
+ "color": "#D8DEE9FF"
1902
+ }
1903
+ }
1904
+ }]
1905
+ }, {
1906
+ "tokens": []
1907
+ }, {
1908
+ "tokens": [{
1909
+ "content": "Options:",
1910
+ "props": {
1911
+ "style": {
1912
+ "color": "#D8DEE9FF"
1913
+ }
1914
+ }
1915
+ }]
1916
+ }, {
1917
+ "tokens": [{
1918
+ "content": " -h, --help display ",
1919
+ "props": {
1920
+ "style": {
1921
+ "color": "#D8DEE9FF"
1922
+ }
1923
+ }
1924
+ }, {
1925
+ "content": "help",
1926
+ "props": {
1927
+ "style": {
1928
+ "color": "#88C0D0"
1929
+ }
1930
+ }
1931
+ }, {
1932
+ "content": " ",
1933
+ "props": {
1934
+ "style": {
1935
+ "color": "#D8DEE9FF"
1936
+ }
1937
+ }
1938
+ }, {
1939
+ "content": "for",
1940
+ "props": {
1941
+ "style": {
1942
+ "color": "#81A1C1"
1943
+ }
1944
+ }
1945
+ }, {
1946
+ "content": " ",
1947
+ "props": {
1948
+ "style": {
1949
+ "color": "#D8DEE9FF"
1950
+ }
1951
+ }
1952
+ }, {
1953
+ "content": "command",
1954
+ "props": {
1955
+ "style": {
1956
+ "color": "#88C0D0"
1957
+ }
1958
+ }
1959
+ }]
1960
+ }, {
1961
+ "tokens": []
1962
+ }, {
1963
+ "tokens": [{
1964
+ "content": "Commands:",
1965
+ "props": {
1966
+ "style": {
1967
+ "color": "#D8DEE9FF"
1968
+ }
1969
+ }
1970
+ }]
1971
+ }, {
1972
+ "tokens": [{
1973
+ "content": "[",
1974
+ "props": {
1975
+ "style": {
1976
+ "color": "#ECEFF4"
1977
+ }
1978
+ }
1979
+ }, {
1980
+ "content": "dev-tools-subCommand",
1981
+ "props": {
1982
+ "style": {
1983
+ "color": "#D8DEE9FF"
1984
+ }
1985
+ }
1986
+ }, {
1987
+ "content": "]",
1988
+ "props": {
1989
+ "style": {
1990
+ "color": "#ECEFF4"
1991
+ }
1992
+ }
1993
+ }]
1994
+ }],
1995
+ "lang": "bash"
1996
+ },
1997
+ "annotations": []
1998
+ }]
1999
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2000
+ children: ["模块工程解决方案提供了使用调试工具的能力,可以通过 ", (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.code, {
2003
+ children: "modern dev"
2004
+ }), " 会提示: ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.em, {
2005
+ children: "\"No dev tools found available\""
2006
+ }), "。"]
2007
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2008
+ children: ["目前官方支持的调试工具有 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2009
+ href: "https://storybook.js.org/",
2010
+ target: "_blank",
2011
+ rel: "nofollow",
2012
+ children: "Storybook"
2013
+ }), ",因此在你执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2014
+ children: "modern new"
2015
+ }), " 命令开启它后,就可以执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2016
+ children: "modern dev"
2017
+ }), " 或者 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2018
+ children: "modern dev storybook"
2019
+ }), " 执行它。"]
2020
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2021
+ id: "modern-test",
2022
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2023
+ className: "header-anchor",
2024
+ "aria-hidden": "true",
2025
+ href: "#modern-test",
2026
+ children: "#"
2027
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2028
+ children: "modern test"
2029
+ })]
2030
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2031
+ codeConfig: chCodeConfig,
2032
+ northPanel: {
2033
+ "tabs": [""],
2034
+ "active": "",
2035
+ "heightRatio": 1
2036
+ },
2037
+ files: [{
2038
+ "name": "",
2039
+ "focus": "",
2040
+ "code": {
2041
+ "lines": [{
2042
+ "tokens": [{
2043
+ "content": "Usage: modern ",
2044
+ "props": {
2045
+ "style": {
2046
+ "color": "#D8DEE9FF"
2047
+ }
2048
+ }
2049
+ }, {
2050
+ "content": "test",
2051
+ "props": {
2052
+ "style": {
2053
+ "color": "#88C0D0"
2054
+ }
2055
+ }
2056
+ }, {
2057
+ "content": " ",
2058
+ "props": {
2059
+ "style": {
2060
+ "color": "#D8DEE9FF"
2061
+ }
2062
+ }
2063
+ }, {
2064
+ "content": "[",
2065
+ "props": {
2066
+ "style": {
2067
+ "color": "#ECEFF4"
2068
+ }
2069
+ }
2070
+ }, {
2071
+ "content": "options",
2072
+ "props": {
2073
+ "style": {
2074
+ "color": "#D8DEE9FF"
2075
+ }
2076
+ }
2077
+ }, {
2078
+ "content": "]",
2079
+ "props": {
2080
+ "style": {
2081
+ "color": "#ECEFF4"
2082
+ }
2083
+ }
2084
+ }]
2085
+ }, {
2086
+ "tokens": []
2087
+ }, {
2088
+ "tokens": [{
2089
+ "content": "Options:",
2090
+ "props": {
2091
+ "style": {
2092
+ "color": "#D8DEE9FF"
2093
+ }
2094
+ }
2095
+ }]
2096
+ }, {
2097
+ "tokens": [{
2098
+ "content": " -h, --help display ",
2099
+ "props": {
2100
+ "style": {
2101
+ "color": "#D8DEE9FF"
2102
+ }
2103
+ }
2104
+ }, {
2105
+ "content": "help",
2106
+ "props": {
2107
+ "style": {
2108
+ "color": "#88C0D0"
2109
+ }
2110
+ }
2111
+ }, {
2112
+ "content": " ",
2113
+ "props": {
2114
+ "style": {
2115
+ "color": "#D8DEE9FF"
2116
+ }
2117
+ }
2118
+ }, {
2119
+ "content": "for",
2120
+ "props": {
2121
+ "style": {
2122
+ "color": "#81A1C1"
2123
+ }
2124
+ }
2125
+ }, {
2126
+ "content": " ",
2127
+ "props": {
2128
+ "style": {
2129
+ "color": "#D8DEE9FF"
2130
+ }
2131
+ }
2132
+ }, {
2133
+ "content": "command",
2134
+ "props": {
2135
+ "style": {
2136
+ "color": "#88C0D0"
2137
+ }
2138
+ }
2139
+ }]
2140
+ }],
2141
+ "lang": "bash"
2142
+ },
2143
+ "annotations": []
2144
+ }]
2145
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2146
+ children: ["需要先执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2147
+ children: "modern new"
2148
+ }), " 开启测试功能,然后才可以执行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2149
+ children: "modern test"
2150
+ }), " 命令。\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2151
+ children: "modern test"
2152
+ }), " 命令会自动将 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2153
+ children: "tests/*.test.(js|ts|jsx|tsx)"
2154
+ }), " 文件当做测试用例运行。"]
2155
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2156
+ id: "modern-lint",
2157
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2158
+ className: "header-anchor",
2159
+ "aria-hidden": "true",
2160
+ href: "#modern-lint",
2161
+ children: "#"
2162
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2163
+ children: "modern lint"
2164
+ })]
2165
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2166
+ codeConfig: chCodeConfig,
2167
+ northPanel: {
2168
+ "tabs": [""],
2169
+ "active": "",
2170
+ "heightRatio": 1
2171
+ },
2172
+ files: [{
2173
+ "name": "",
2174
+ "focus": "",
2175
+ "code": {
2176
+ "lines": [{
2177
+ "tokens": [{
2178
+ "content": "Usage: modern lint ",
2179
+ "props": {
2180
+ "style": {
2181
+ "color": "#D8DEE9FF"
2182
+ }
2183
+ }
2184
+ }, {
2185
+ "content": "[",
2186
+ "props": {
2187
+ "style": {
2188
+ "color": "#ECEFF4"
2189
+ }
2190
+ }
2191
+ }, {
2192
+ "content": "options",
2193
+ "props": {
2194
+ "style": {
2195
+ "color": "#D8DEE9FF"
2196
+ }
2197
+ }
2198
+ }, {
2199
+ "content": "]",
2200
+ "props": {
2201
+ "style": {
2202
+ "color": "#ECEFF4"
2203
+ }
2204
+ }
2205
+ }, {
2206
+ "content": " ",
2207
+ "props": {
2208
+ "style": {
2209
+ "color": "#D8DEE9FF"
2210
+ }
2211
+ }
2212
+ }, {
2213
+ "content": "[",
2214
+ "props": {
2215
+ "style": {
2216
+ "color": "#ECEFF4"
2217
+ }
2218
+ }
2219
+ }, {
2220
+ "content": "...files",
2221
+ "props": {
2222
+ "style": {
2223
+ "color": "#D8DEE9FF"
2224
+ }
2225
+ }
2226
+ }, {
2227
+ "content": "]",
2228
+ "props": {
2229
+ "style": {
2230
+ "color": "#ECEFF4"
2231
+ }
2232
+ }
2233
+ }]
2234
+ }, {
2235
+ "tokens": []
2236
+ }, {
2237
+ "tokens": [{
2238
+ "content": "lint and fix ",
2239
+ "props": {
2240
+ "style": {
2241
+ "color": "#D8DEE9FF"
2242
+ }
2243
+ }
2244
+ }, {
2245
+ "content": "source",
2246
+ "props": {
2247
+ "style": {
2248
+ "color": "#88C0D0"
2249
+ }
2250
+ }
2251
+ }, {
2252
+ "content": " files",
2253
+ "props": {
2254
+ "style": {
2255
+ "color": "#D8DEE9FF"
2256
+ }
2257
+ }
2258
+ }]
2259
+ }, {
2260
+ "tokens": []
2261
+ }, {
2262
+ "tokens": [{
2263
+ "content": "Options:",
2264
+ "props": {
2265
+ "style": {
2266
+ "color": "#D8DEE9FF"
2267
+ }
2268
+ }
2269
+ }]
2270
+ }, {
2271
+ "tokens": [{
2272
+ "content": " --no-fix disable auto fix ",
2273
+ "props": {
2274
+ "style": {
2275
+ "color": "#D8DEE9FF"
2276
+ }
2277
+ }
2278
+ }, {
2279
+ "content": "source",
2280
+ "props": {
2281
+ "style": {
2282
+ "color": "#88C0D0"
2283
+ }
2284
+ }
2285
+ }, {
2286
+ "content": " file",
2287
+ "props": {
2288
+ "style": {
2289
+ "color": "#D8DEE9FF"
2290
+ }
2291
+ }
2292
+ }]
2293
+ }, {
2294
+ "tokens": [{
2295
+ "content": " -h, --help display ",
2296
+ "props": {
2297
+ "style": {
2298
+ "color": "#D8DEE9FF"
2299
+ }
2300
+ }
2301
+ }, {
2302
+ "content": "help",
2303
+ "props": {
2304
+ "style": {
2305
+ "color": "#88C0D0"
2306
+ }
2307
+ }
2308
+ }, {
2309
+ "content": " ",
2310
+ "props": {
2311
+ "style": {
2312
+ "color": "#D8DEE9FF"
2313
+ }
2314
+ }
2315
+ }, {
2316
+ "content": "for",
2317
+ "props": {
2318
+ "style": {
2319
+ "color": "#81A1C1"
2320
+ }
2321
+ }
2322
+ }, {
2323
+ "content": " ",
2324
+ "props": {
2325
+ "style": {
2326
+ "color": "#D8DEE9FF"
2327
+ }
2328
+ }
2329
+ }, {
2330
+ "content": "command",
2331
+ "props": {
2332
+ "style": {
2333
+ "color": "#88C0D0"
2334
+ }
2335
+ }
2336
+ }]
2337
+ }],
2338
+ "lang": "bash"
2339
+ },
2340
+ "annotations": []
2341
+ }]
2342
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2343
+ children: ["运行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2344
+ href: "https://eslint.org/",
2345
+ target: "_blank",
2346
+ rel: "nofollow",
2347
+ children: "ESLint"
2348
+ }), " 检查代码语法情况。通常情况下,我们只需要在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2349
+ children: "git commit"
2350
+ }), " 阶段通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2351
+ href: "https://github.com/okonet/lint-staged",
2352
+ target: "_blank",
2353
+ rel: "nofollow",
2354
+ children: "lint-staged"
2355
+ }), " 检查本次提交修改的部分代码。"]
2356
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2357
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
2358
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2359
+ children: "--no-fix"
2360
+ }), " 参数设置后可以关闭自动修复 lint 错误代码的能力。"]
2361
+ }), "\n"]
2362
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2363
+ id: "modern-change",
2364
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2365
+ className: "header-anchor",
2366
+ "aria-hidden": "true",
2367
+ href: "#modern-change",
2368
+ children: "#"
2369
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2370
+ children: "modern change"
2371
+ })]
2372
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2373
+ codeConfig: chCodeConfig,
2374
+ northPanel: {
2375
+ "tabs": [""],
2376
+ "active": "",
2377
+ "heightRatio": 1
2378
+ },
2379
+ files: [{
2380
+ "name": "",
2381
+ "focus": "",
2382
+ "code": {
2383
+ "lines": [{
2384
+ "tokens": [{
2385
+ "content": "Usage: modern change ",
2386
+ "props": {
2387
+ "style": {
2388
+ "color": "#D8DEE9FF"
2389
+ }
2390
+ }
2391
+ }, {
2392
+ "content": "[",
2393
+ "props": {
2394
+ "style": {
2395
+ "color": "#ECEFF4"
2396
+ }
2397
+ }
2398
+ }, {
2399
+ "content": "options",
2400
+ "props": {
2401
+ "style": {
2402
+ "color": "#D8DEE9FF"
2403
+ }
2404
+ }
2405
+ }, {
2406
+ "content": "]",
2407
+ "props": {
2408
+ "style": {
2409
+ "color": "#ECEFF4"
2410
+ }
2411
+ }
2412
+ }]
2413
+ }, {
2414
+ "tokens": []
2415
+ }, {
2416
+ "tokens": [{
2417
+ "content": "创建变更集",
2418
+ "props": {
2419
+ "style": {
2420
+ "color": "#D8DEE9FF"
2421
+ }
2422
+ }
2423
+ }]
2424
+ }, {
2425
+ "tokens": []
2426
+ }, {
2427
+ "tokens": [{
2428
+ "content": "Options:",
2429
+ "props": {
2430
+ "style": {
2431
+ "color": "#D8DEE9FF"
2432
+ }
2433
+ }
2434
+ }]
2435
+ }, {
2436
+ "tokens": [{
2437
+ "content": " --empty 创建空变更集 ",
2438
+ "props": {
2439
+ "style": {
2440
+ "color": "#D8DEE9FF"
2441
+ }
2442
+ }
2443
+ }, {
2444
+ "content": "(",
2445
+ "props": {
2446
+ "style": {
2447
+ "color": "#ECEFF4"
2448
+ }
2449
+ }
2450
+ }, {
2451
+ "content": "default: false",
2452
+ "props": {
2453
+ "style": {
2454
+ "color": "#D8DEE9FF"
2455
+ }
2456
+ }
2457
+ }, {
2458
+ "content": ")",
2459
+ "props": {
2460
+ "style": {
2461
+ "color": "#ECEFF4"
2462
+ }
2463
+ }
2464
+ }]
2465
+ }, {
2466
+ "tokens": [{
2467
+ "content": " --open 使用编辑器中打开创建的变更集 ",
2468
+ "props": {
2469
+ "style": {
2470
+ "color": "#D8DEE9FF"
2471
+ }
2472
+ }
2473
+ }, {
2474
+ "content": "(",
2475
+ "props": {
2476
+ "style": {
2477
+ "color": "#ECEFF4"
2478
+ }
2479
+ }
2480
+ }, {
2481
+ "content": "default: false",
2482
+ "props": {
2483
+ "style": {
2484
+ "color": "#D8DEE9FF"
2485
+ }
2486
+ }
2487
+ }, {
2488
+ "content": ")",
2489
+ "props": {
2490
+ "style": {
2491
+ "color": "#ECEFF4"
2492
+ }
2493
+ }
2494
+ }]
2495
+ }, {
2496
+ "tokens": [{
2497
+ "content": " -h, --help display ",
2498
+ "props": {
2499
+ "style": {
2500
+ "color": "#D8DEE9FF"
2501
+ }
2502
+ }
2503
+ }, {
2504
+ "content": "help",
2505
+ "props": {
2506
+ "style": {
2507
+ "color": "#88C0D0"
2508
+ }
2509
+ }
2510
+ }, {
2511
+ "content": " ",
2512
+ "props": {
2513
+ "style": {
2514
+ "color": "#D8DEE9FF"
2515
+ }
2516
+ }
2517
+ }, {
2518
+ "content": "for",
2519
+ "props": {
2520
+ "style": {
2521
+ "color": "#81A1C1"
2522
+ }
2523
+ }
2524
+ }, {
2525
+ "content": " ",
2526
+ "props": {
2527
+ "style": {
2528
+ "color": "#D8DEE9FF"
2529
+ }
2530
+ }
2531
+ }, {
2532
+ "content": "command",
2533
+ "props": {
2534
+ "style": {
2535
+ "color": "#88C0D0"
2536
+ }
2537
+ }
2538
+ }]
2539
+ }],
2540
+ "lang": "bash"
2541
+ },
2542
+ "annotations": []
2543
+ }]
2544
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2545
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2546
+ children: "modern change"
2547
+ }), " 命令用于生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2548
+ href: "https://github.com/changesets/changesets",
2549
+ target: "_blank",
2550
+ rel: "nofollow",
2551
+ children: "changesets"
2552
+ }), " 需要的 Markdown 文件。"]
2553
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2554
+ id: "modern-pre",
2555
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2556
+ className: "header-anchor",
2557
+ "aria-hidden": "true",
2558
+ href: "#modern-pre",
2559
+ children: "#"
2560
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2561
+ children: "modern pre"
2562
+ })]
2563
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2564
+ codeConfig: chCodeConfig,
2565
+ northPanel: {
2566
+ "tabs": [""],
2567
+ "active": "",
2568
+ "heightRatio": 1
2569
+ },
2570
+ files: [{
2571
+ "name": "",
2572
+ "focus": "",
2573
+ "code": {
2574
+ "lines": [{
2575
+ "tokens": [{
2576
+ "content": "Usage: modern pre ",
2577
+ "props": {
2578
+ "style": {
2579
+ "color": "#D8DEE9FF"
2580
+ }
2581
+ }
2582
+ }, {
2583
+ "content": "[",
2584
+ "props": {
2585
+ "style": {
2586
+ "color": "#ECEFF4"
2587
+ }
2588
+ }
2589
+ }, {
2590
+ "content": "options",
2591
+ "props": {
2592
+ "style": {
2593
+ "color": "#D8DEE9FF"
2594
+ }
2595
+ }
2596
+ }, {
2597
+ "content": "]",
2598
+ "props": {
2599
+ "style": {
2600
+ "color": "#ECEFF4"
2601
+ }
2602
+ }
2603
+ }, {
2604
+ "content": " ",
2605
+ "props": {
2606
+ "style": {
2607
+ "color": "#D8DEE9FF"
2608
+ }
2609
+ }
2610
+ }, {
2611
+ "content": "<",
2612
+ "props": {
2613
+ "style": {
2614
+ "color": "#81A1C1"
2615
+ }
2616
+ }
2617
+ }, {
2618
+ "content": "enter",
2619
+ "props": {
2620
+ "style": {
2621
+ "color": "#D8DEE9FF"
2622
+ }
2623
+ }
2624
+ }, {
2625
+ "content": "|",
2626
+ "props": {
2627
+ "style": {
2628
+ "color": "#81A1C1"
2629
+ }
2630
+ }
2631
+ }, {
2632
+ "content": "exit",
2633
+ "props": {
2634
+ "style": {
2635
+ "color": "#D8DEE9FF"
2636
+ }
2637
+ }
2638
+ }, {
2639
+ "content": ">",
2640
+ "props": {
2641
+ "style": {
2642
+ "color": "#81A1C1"
2643
+ }
2644
+ }
2645
+ }, {
2646
+ "content": " ",
2647
+ "props": {
2648
+ "style": {
2649
+ "color": "#D8DEE9FF"
2650
+ }
2651
+ }
2652
+ }, {
2653
+ "content": "[",
2654
+ "props": {
2655
+ "style": {
2656
+ "color": "#ECEFF4"
2657
+ }
2658
+ }
2659
+ }, {
2660
+ "content": "tag",
2661
+ "props": {
2662
+ "style": {
2663
+ "color": "#D8DEE9FF"
2664
+ }
2665
+ }
2666
+ }, {
2667
+ "content": "]",
2668
+ "props": {
2669
+ "style": {
2670
+ "color": "#ECEFF4"
2671
+ }
2672
+ }
2673
+ }]
2674
+ }, {
2675
+ "tokens": []
2676
+ }, {
2677
+ "tokens": [{
2678
+ "content": "进入和退出预发布模式",
2679
+ "props": {
2680
+ "style": {
2681
+ "color": "#D8DEE9FF"
2682
+ }
2683
+ }
2684
+ }]
2685
+ }, {
2686
+ "tokens": []
2687
+ }, {
2688
+ "tokens": [{
2689
+ "content": "Options:",
2690
+ "props": {
2691
+ "style": {
2692
+ "color": "#D8DEE9FF"
2693
+ }
2694
+ }
2695
+ }]
2696
+ }, {
2697
+ "tokens": [{
2698
+ "content": " -h, --help display ",
2699
+ "props": {
2700
+ "style": {
2701
+ "color": "#D8DEE9FF"
2702
+ }
2703
+ }
2704
+ }, {
2705
+ "content": "help",
2706
+ "props": {
2707
+ "style": {
2708
+ "color": "#88C0D0"
2709
+ }
2710
+ }
2711
+ }, {
2712
+ "content": " ",
2713
+ "props": {
2714
+ "style": {
2715
+ "color": "#D8DEE9FF"
2716
+ }
2717
+ }
2718
+ }, {
2719
+ "content": "for",
2720
+ "props": {
2721
+ "style": {
2722
+ "color": "#81A1C1"
2723
+ }
2724
+ }
2725
+ }, {
2726
+ "content": " ",
2727
+ "props": {
2728
+ "style": {
2729
+ "color": "#D8DEE9FF"
2730
+ }
2731
+ }
2732
+ }, {
2733
+ "content": "command",
2734
+ "props": {
2735
+ "style": {
2736
+ "color": "#88C0D0"
2737
+ }
2738
+ }
2739
+ }]
2740
+ }],
2741
+ "lang": "bash"
2742
+ },
2743
+ "annotations": []
2744
+ }]
2745
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2746
+ children: ["可以使用 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2747
+ children: "modern pre"
2748
+ }), " 命令在正式发布前", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2749
+ href: "https://github.com/atlassian/changesets/blob/main/docs/prereleases.md",
2750
+ target: "_blank",
2751
+ rel: "nofollow",
2752
+ children: "预发布"
2753
+ }), "一个版本。"]
2754
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2755
+ id: "modern-bump",
2756
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2757
+ className: "header-anchor",
2758
+ "aria-hidden": "true",
2759
+ href: "#modern-bump",
2760
+ children: "#"
2761
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2762
+ children: "modern bump"
2763
+ })]
2764
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2765
+ codeConfig: chCodeConfig,
2766
+ northPanel: {
2767
+ "tabs": [""],
2768
+ "active": "",
2769
+ "heightRatio": 1
2770
+ },
2771
+ files: [{
2772
+ "name": "",
2773
+ "focus": "",
2774
+ "code": {
2775
+ "lines": [{
2776
+ "tokens": [{
2777
+ "content": "Usage: modern bump ",
2778
+ "props": {
2779
+ "style": {
2780
+ "color": "#D8DEE9FF"
2781
+ }
2782
+ }
2783
+ }, {
2784
+ "content": "[",
2785
+ "props": {
2786
+ "style": {
2787
+ "color": "#ECEFF4"
2788
+ }
2789
+ }
2790
+ }, {
2791
+ "content": "options",
2792
+ "props": {
2793
+ "style": {
2794
+ "color": "#D8DEE9FF"
2795
+ }
2796
+ }
2797
+ }, {
2798
+ "content": "]",
2799
+ "props": {
2800
+ "style": {
2801
+ "color": "#ECEFF4"
2802
+ }
2803
+ }
2804
+ }]
2805
+ }, {
2806
+ "tokens": []
2807
+ }, {
2808
+ "tokens": [{
2809
+ "content": "使用变更集自动更新发布版本和变更日志",
2810
+ "props": {
2811
+ "style": {
2812
+ "color": "#D8DEE9FF"
2813
+ }
2814
+ }
2815
+ }]
2816
+ }, {
2817
+ "tokens": []
2818
+ }, {
2819
+ "tokens": [{
2820
+ "content": "Options:",
2821
+ "props": {
2822
+ "style": {
2823
+ "color": "#D8DEE9FF"
2824
+ }
2825
+ }
2826
+ }]
2827
+ }, {
2828
+ "tokens": [{
2829
+ "content": " --canary 创建一个预发布版本进行测试 ",
2830
+ "props": {
2831
+ "style": {
2832
+ "color": "#D8DEE9FF"
2833
+ }
2834
+ }
2835
+ }, {
2836
+ "content": "(",
2837
+ "props": {
2838
+ "style": {
2839
+ "color": "#ECEFF4"
2840
+ }
2841
+ }
2842
+ }, {
2843
+ "content": "default: false",
2844
+ "props": {
2845
+ "style": {
2846
+ "color": "#D8DEE9FF"
2847
+ }
2848
+ }
2849
+ }, {
2850
+ "content": ")",
2851
+ "props": {
2852
+ "style": {
2853
+ "color": "#ECEFF4"
2854
+ }
2855
+ }
2856
+ }]
2857
+ }, {
2858
+ "tokens": [{
2859
+ "content": " --preid ",
2860
+ "props": {
2861
+ "style": {
2862
+ "color": "#D8DEE9FF"
2863
+ }
2864
+ }
2865
+ }, {
2866
+ "content": "<",
2867
+ "props": {
2868
+ "style": {
2869
+ "color": "#81A1C1"
2870
+ }
2871
+ }
2872
+ }, {
2873
+ "content": "tag",
2874
+ "props": {
2875
+ "style": {
2876
+ "color": "#D8DEE9FF"
2877
+ }
2878
+ }
2879
+ }, {
2880
+ "content": ">",
2881
+ "props": {
2882
+ "style": {
2883
+ "color": "#81A1C1"
2884
+ }
2885
+ }
2886
+ }, {
2887
+ "content": " 在对预发布版本进行版本控制时指定标识符 ",
2888
+ "props": {
2889
+ "style": {
2890
+ "color": "#D8DEE9FF"
2891
+ }
2892
+ }
2893
+ }, {
2894
+ "content": "(",
2895
+ "props": {
2896
+ "style": {
2897
+ "color": "#ECEFF4"
2898
+ }
2899
+ }
2900
+ }, {
2901
+ "content": "default: ",
2902
+ "props": {
2903
+ "style": {
2904
+ "color": "#D8DEE9FF"
2905
+ }
2906
+ }
2907
+ }, {
2908
+ "content": "\"",
2909
+ "props": {
2910
+ "style": {
2911
+ "color": "#ECEFF4"
2912
+ }
2913
+ }
2914
+ }, {
2915
+ "content": "next",
2916
+ "props": {
2917
+ "style": {
2918
+ "color": "#A3BE8C"
2919
+ }
2920
+ }
2921
+ }, {
2922
+ "content": "\"",
2923
+ "props": {
2924
+ "style": {
2925
+ "color": "#ECEFF4"
2926
+ }
2927
+ }
2928
+ }, {
2929
+ "content": ")",
2930
+ "props": {
2931
+ "style": {
2932
+ "color": "#ECEFF4"
2933
+ }
2934
+ }
2935
+ }]
2936
+ }, {
2937
+ "tokens": [{
2938
+ "content": " --snapshot 创建一个特殊版本进行测试 ",
2939
+ "props": {
2940
+ "style": {
2941
+ "color": "#D8DEE9FF"
2942
+ }
2943
+ }
2944
+ }, {
2945
+ "content": "(",
2946
+ "props": {
2947
+ "style": {
2948
+ "color": "#ECEFF4"
2949
+ }
2950
+ }
2951
+ }, {
2952
+ "content": "default: false",
2953
+ "props": {
2954
+ "style": {
2955
+ "color": "#D8DEE9FF"
2956
+ }
2957
+ }
2958
+ }, {
2959
+ "content": ")",
2960
+ "props": {
2961
+ "style": {
2962
+ "color": "#ECEFF4"
2963
+ }
2964
+ }
2965
+ }]
2966
+ }, {
2967
+ "tokens": [{
2968
+ "content": " -h, --help display ",
2969
+ "props": {
2970
+ "style": {
2971
+ "color": "#D8DEE9FF"
2972
+ }
2973
+ }
2974
+ }, {
2975
+ "content": "help",
2976
+ "props": {
2977
+ "style": {
2978
+ "color": "#88C0D0"
2979
+ }
2980
+ }
2981
+ }, {
2982
+ "content": " ",
2983
+ "props": {
2984
+ "style": {
2985
+ "color": "#D8DEE9FF"
2986
+ }
2987
+ }
2988
+ }, {
2989
+ "content": "for",
2990
+ "props": {
2991
+ "style": {
2992
+ "color": "#81A1C1"
2993
+ }
2994
+ }
2995
+ }, {
2996
+ "content": " ",
2997
+ "props": {
2998
+ "style": {
2999
+ "color": "#D8DEE9FF"
3000
+ }
3001
+ }
3002
+ }, {
3003
+ "content": "command",
3004
+ "props": {
3005
+ "style": {
3006
+ "color": "#88C0D0"
3007
+ }
3008
+ }
3009
+ }]
3010
+ }],
3011
+ "lang": "bash"
3012
+ },
3013
+ "annotations": []
3014
+ }]
3015
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3016
+ children: ["按照 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3017
+ href: "https://github.com/changesets/changesets",
3018
+ target: "_blank",
3019
+ rel: "nofollow",
3020
+ children: "changesets"
3021
+ }), " 生成的变更记录的 Markdown 文件修改 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3022
+ children: "package.json"
3023
+ }), " 中的版本号, 同时生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3024
+ children: "CHANGELOG.md"
3025
+ }), " 文件。"]
3026
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3027
+ id: "modern-release",
3028
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3029
+ className: "header-anchor",
3030
+ "aria-hidden": "true",
3031
+ href: "#modern-release",
3032
+ children: "#"
3033
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3034
+ children: "modern release"
3035
+ })]
3036
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3037
+ codeConfig: chCodeConfig,
3038
+ northPanel: {
3039
+ "tabs": [""],
3040
+ "active": "",
3041
+ "heightRatio": 1
3042
+ },
3043
+ files: [{
3044
+ "name": "",
3045
+ "focus": "",
3046
+ "code": {
3047
+ "lines": [{
3048
+ "tokens": [{
3049
+ "content": "Usage: modern release ",
3050
+ "props": {
3051
+ "style": {
3052
+ "color": "#D8DEE9FF"
3053
+ }
3054
+ }
3055
+ }, {
3056
+ "content": "[",
3057
+ "props": {
3058
+ "style": {
3059
+ "color": "#ECEFF4"
3060
+ }
3061
+ }
3062
+ }, {
3063
+ "content": "options",
3064
+ "props": {
3065
+ "style": {
3066
+ "color": "#D8DEE9FF"
3067
+ }
3068
+ }
3069
+ }, {
3070
+ "content": "]",
3071
+ "props": {
3072
+ "style": {
3073
+ "color": "#ECEFF4"
3074
+ }
3075
+ }
3076
+ }]
3077
+ }, {
3078
+ "tokens": []
3079
+ }, {
3080
+ "tokens": [{
3081
+ "content": "发布 npm 包",
3082
+ "props": {
3083
+ "style": {
3084
+ "color": "#D8DEE9FF"
3085
+ }
3086
+ }
3087
+ }]
3088
+ }, {
3089
+ "tokens": []
3090
+ }, {
3091
+ "tokens": [{
3092
+ "content": "Options:",
3093
+ "props": {
3094
+ "style": {
3095
+ "color": "#D8DEE9FF"
3096
+ }
3097
+ }
3098
+ }]
3099
+ }, {
3100
+ "tokens": [{
3101
+ "content": " --tag ",
3102
+ "props": {
3103
+ "style": {
3104
+ "color": "#D8DEE9FF"
3105
+ }
3106
+ }
3107
+ }, {
3108
+ "content": "<",
3109
+ "props": {
3110
+ "style": {
3111
+ "color": "#81A1C1"
3112
+ }
3113
+ }
3114
+ }, {
3115
+ "content": "tag",
3116
+ "props": {
3117
+ "style": {
3118
+ "color": "#D8DEE9FF"
3119
+ }
3120
+ }
3121
+ }, {
3122
+ "content": ">",
3123
+ "props": {
3124
+ "style": {
3125
+ "color": "#81A1C1"
3126
+ }
3127
+ }
3128
+ }, {
3129
+ "content": " 发布 npm 包使用特定的 tag ",
3130
+ "props": {
3131
+ "style": {
3132
+ "color": "#D8DEE9FF"
3133
+ }
3134
+ }
3135
+ }, {
3136
+ "content": "(",
3137
+ "props": {
3138
+ "style": {
3139
+ "color": "#ECEFF4"
3140
+ }
3141
+ }
3142
+ }, {
3143
+ "content": "default: ",
3144
+ "props": {
3145
+ "style": {
3146
+ "color": "#D8DEE9FF"
3147
+ }
3148
+ }
3149
+ }, {
3150
+ "content": "\"\"",
3151
+ "props": {
3152
+ "style": {
3153
+ "color": "#ECEFF4"
3154
+ }
3155
+ }
3156
+ }, {
3157
+ "content": ")",
3158
+ "props": {
3159
+ "style": {
3160
+ "color": "#ECEFF4"
3161
+ }
3162
+ }
3163
+ }]
3164
+ }, {
3165
+ "tokens": [{
3166
+ "content": " --ignore-scripts 发布时忽略 package.json 中的 scripts 命令,仅支持在 pnpm monorepo",
3167
+ "props": {
3168
+ "style": {
3169
+ "color": "#D8DEE9FF"
3170
+ }
3171
+ }
3172
+ }]
3173
+ }, {
3174
+ "tokens": [{
3175
+ "content": " 中使用 ",
3176
+ "props": {
3177
+ "style": {
3178
+ "color": "#D8DEE9FF"
3179
+ }
3180
+ }
3181
+ }, {
3182
+ "content": "(",
3183
+ "props": {
3184
+ "style": {
3185
+ "color": "#ECEFF4"
3186
+ }
3187
+ }
3188
+ }, {
3189
+ "content": "default: ",
3190
+ "props": {
3191
+ "style": {
3192
+ "color": "#D8DEE9FF"
3193
+ }
3194
+ }
3195
+ }, {
3196
+ "content": "\"\"",
3197
+ "props": {
3198
+ "style": {
3199
+ "color": "#ECEFF4"
3200
+ }
3201
+ }
3202
+ }, {
3203
+ "content": ")",
3204
+ "props": {
3205
+ "style": {
3206
+ "color": "#ECEFF4"
3207
+ }
3208
+ }
3209
+ }]
3210
+ }, {
3211
+ "tokens": [{
3212
+ "content": " -h, --help display ",
3213
+ "props": {
3214
+ "style": {
3215
+ "color": "#D8DEE9FF"
3216
+ }
3217
+ }
3218
+ }, {
3219
+ "content": "help",
3220
+ "props": {
3221
+ "style": {
3222
+ "color": "#88C0D0"
3223
+ }
3224
+ }
3225
+ }, {
3226
+ "content": " ",
3227
+ "props": {
3228
+ "style": {
3229
+ "color": "#D8DEE9FF"
3230
+ }
3231
+ }
3232
+ }, {
3233
+ "content": "for",
3234
+ "props": {
3235
+ "style": {
3236
+ "color": "#81A1C1"
3237
+ }
3238
+ }
3239
+ }, {
3240
+ "content": " ",
3241
+ "props": {
3242
+ "style": {
3243
+ "color": "#D8DEE9FF"
3244
+ }
3245
+ }
3246
+ }, {
3247
+ "content": "command",
3248
+ "props": {
3249
+ "style": {
3250
+ "color": "#88C0D0"
3251
+ }
3252
+ }
3253
+ }]
3254
+ }],
3255
+ "lang": "bash"
3256
+ },
3257
+ "annotations": []
3258
+ }]
3259
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3260
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3261
+ children: "modern release"
3262
+ }), " 命令可以将模块发布到 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3263
+ href: "https://www.npmjs.com/",
3264
+ target: "_blank",
3265
+ rel: "nofollow",
3266
+ children: "npm Registry"
3267
+ }), " 上。"]
3268
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
3269
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
3270
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3271
+ children: "--tag"
3272
+ }), " 参数可以指定发布时具体的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3273
+ href: "https://docs.npmjs.com/adding-dist-tags-to-packages",
3274
+ target: "_blank",
3275
+ rel: "nofollow",
3276
+ children: "dist tags"
3277
+ }), "。"]
3278
+ }), "\n"]
3279
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3280
+ id: "modern-gen-release-note",
3281
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3282
+ className: "header-anchor",
3283
+ "aria-hidden": "true",
3284
+ href: "#modern-gen-release-note",
3285
+ children: "#"
3286
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3287
+ children: "modern gen-release-note"
3288
+ })]
3289
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3290
+ codeConfig: chCodeConfig,
3291
+ northPanel: {
3292
+ "tabs": [""],
3293
+ "active": "",
3294
+ "heightRatio": 1
3295
+ },
3296
+ files: [{
3297
+ "name": "",
3298
+ "focus": "",
3299
+ "code": {
3300
+ "lines": [{
3301
+ "tokens": [{
3302
+ "content": "Usage: modern gen-release-note ",
3303
+ "props": {
3304
+ "style": {
3305
+ "color": "#D8DEE9FF"
3306
+ }
3307
+ }
3308
+ }, {
3309
+ "content": "[",
3310
+ "props": {
3311
+ "style": {
3312
+ "color": "#ECEFF4"
3313
+ }
3314
+ }
3315
+ }, {
3316
+ "content": "options",
3317
+ "props": {
3318
+ "style": {
3319
+ "color": "#D8DEE9FF"
3320
+ }
3321
+ }
3322
+ }, {
3323
+ "content": "]",
3324
+ "props": {
3325
+ "style": {
3326
+ "color": "#ECEFF4"
3327
+ }
3328
+ }
3329
+ }]
3330
+ }, {
3331
+ "tokens": []
3332
+ }, {
3333
+ "tokens": [{
3334
+ "content": "根据当前仓库 changeset 信息生成 Release Note",
3335
+ "props": {
3336
+ "style": {
3337
+ "color": "#D8DEE9FF"
3338
+ }
3339
+ }
3340
+ }]
3341
+ }, {
3342
+ "tokens": []
3343
+ }, {
3344
+ "tokens": [{
3345
+ "content": "Options:",
3346
+ "props": {
3347
+ "style": {
3348
+ "color": "#D8DEE9FF"
3349
+ }
3350
+ }
3351
+ }]
3352
+ }, {
3353
+ "tokens": [{
3354
+ "content": " --repo ",
3355
+ "props": {
3356
+ "style": {
3357
+ "color": "#D8DEE9FF"
3358
+ }
3359
+ }
3360
+ }, {
3361
+ "content": "<",
3362
+ "props": {
3363
+ "style": {
3364
+ "color": "#81A1C1"
3365
+ }
3366
+ }
3367
+ }, {
3368
+ "content": "repo",
3369
+ "props": {
3370
+ "style": {
3371
+ "color": "#D8DEE9FF"
3372
+ }
3373
+ }
3374
+ }, {
3375
+ "content": ">",
3376
+ "props": {
3377
+ "style": {
3378
+ "color": "#81A1C1"
3379
+ }
3380
+ }
3381
+ }, {
3382
+ "content": " 仓库名称,用于生成 Pull Request 链接, 例如: modern-js-dev/modern.js",
3383
+ "props": {
3384
+ "style": {
3385
+ "color": "#D8DEE9FF"
3386
+ }
3387
+ }
3388
+ }]
3389
+ }, {
3390
+ "tokens": [{
3391
+ "content": " --custom ",
3392
+ "props": {
3393
+ "style": {
3394
+ "color": "#D8DEE9FF"
3395
+ }
3396
+ }
3397
+ }, {
3398
+ "content": "<",
3399
+ "props": {
3400
+ "style": {
3401
+ "color": "#81A1C1"
3402
+ }
3403
+ }
3404
+ }, {
3405
+ "content": "cumtom",
3406
+ "props": {
3407
+ "style": {
3408
+ "color": "#D8DEE9FF"
3409
+ }
3410
+ }
3411
+ }, {
3412
+ "content": ">",
3413
+ "props": {
3414
+ "style": {
3415
+ "color": "#81A1C1"
3416
+ }
3417
+ }
3418
+ }, {
3419
+ "content": " 自定义 Release Note 生成函数",
3420
+ "props": {
3421
+ "style": {
3422
+ "color": "#D8DEE9FF"
3423
+ }
3424
+ }
3425
+ }]
3426
+ }, {
3427
+ "tokens": [{
3428
+ "content": " -h, --help display ",
3429
+ "props": {
3430
+ "style": {
3431
+ "color": "#D8DEE9FF"
3432
+ }
3433
+ }
3434
+ }, {
3435
+ "content": "help",
3436
+ "props": {
3437
+ "style": {
3438
+ "color": "#88C0D0"
3439
+ }
3440
+ }
3441
+ }, {
3442
+ "content": " ",
3443
+ "props": {
3444
+ "style": {
3445
+ "color": "#D8DEE9FF"
3446
+ }
3447
+ }
3448
+ }, {
3449
+ "content": "for",
3450
+ "props": {
3451
+ "style": {
3452
+ "color": "#81A1C1"
3453
+ }
3454
+ }
3455
+ }, {
3456
+ "content": " ",
3457
+ "props": {
3458
+ "style": {
3459
+ "color": "#D8DEE9FF"
3460
+ }
3461
+ }
3462
+ }, {
3463
+ "content": "command",
3464
+ "props": {
3465
+ "style": {
3466
+ "color": "#88C0D0"
3467
+ }
3468
+ }
3469
+ }]
3470
+ }],
3471
+ "lang": "bash"
3472
+ },
3473
+ "annotations": []
3474
+ }]
3475
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3476
+ children: ["根据当前仓库的 changeset 信息自动生成 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3477
+ href: "https://en.wikipedia.org/wiki/Release_notes",
3478
+ target: "_blank",
3479
+ rel: "nofollow",
3480
+ children: "Release Note"
3481
+ }), "。"]
3482
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
3483
+ className: "modern-directive tip",
3484
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
3485
+ className: "modern-directive-title",
3486
+ children: "注意"
3487
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.div, {
3488
+ className: "modern-directive-content",
3489
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3490
+ children: ["\n需要在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3491
+ children: "bump"
3492
+ }), "命令之前执行。"]
3493
+ })
3494
+ })]
3495
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
3496
+ id: "modern-upgrade",
3497
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
3498
+ className: "header-anchor",
3499
+ "aria-hidden": "true",
3500
+ href: "#modern-upgrade",
3501
+ children: "#"
3502
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3503
+ children: "modern upgrade"
3504
+ })]
3505
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
3506
+ codeConfig: chCodeConfig,
3507
+ northPanel: {
3508
+ "tabs": [""],
3509
+ "active": "",
3510
+ "heightRatio": 1
3511
+ },
3512
+ files: [{
3513
+ "name": "",
3514
+ "focus": "",
3515
+ "code": {
3516
+ "lines": [{
3517
+ "tokens": [{
3518
+ "content": "Usage: modern upgrade ",
3519
+ "props": {
3520
+ "style": {
3521
+ "color": "#D8DEE9FF"
3522
+ }
3523
+ }
3524
+ }, {
3525
+ "content": "[",
3526
+ "props": {
3527
+ "style": {
3528
+ "color": "#ECEFF4"
3529
+ }
3530
+ }
3531
+ }, {
3532
+ "content": "options",
3533
+ "props": {
3534
+ "style": {
3535
+ "color": "#D8DEE9FF"
3536
+ }
3537
+ }
3538
+ }, {
3539
+ "content": "]",
3540
+ "props": {
3541
+ "style": {
3542
+ "color": "#ECEFF4"
3543
+ }
3544
+ }
3545
+ }]
3546
+ }, {
3547
+ "tokens": []
3548
+ }, {
3549
+ "tokens": [{
3550
+ "content": "升级 Modern.js 到最新版本",
3551
+ "props": {
3552
+ "style": {
3553
+ "color": "#D8DEE9FF"
3554
+ }
3555
+ }
3556
+ }]
3557
+ }, {
3558
+ "tokens": []
3559
+ }, {
3560
+ "tokens": [{
3561
+ "content": "Options:",
3562
+ "props": {
3563
+ "style": {
3564
+ "color": "#D8DEE9FF"
3565
+ }
3566
+ }
3567
+ }]
3568
+ }, {
3569
+ "tokens": [{
3570
+ "content": " --registry ",
3571
+ "props": {
3572
+ "style": {
3573
+ "color": "#D8DEE9FF"
3574
+ }
3575
+ }
3576
+ }, {
3577
+ "content": "<",
3578
+ "props": {
3579
+ "style": {
3580
+ "color": "#81A1C1"
3581
+ }
3582
+ }
3583
+ }, {
3584
+ "content": "registry",
3585
+ "props": {
3586
+ "style": {
3587
+ "color": "#D8DEE9FF"
3588
+ }
3589
+ }
3590
+ }, {
3591
+ "content": ">",
3592
+ "props": {
3593
+ "style": {
3594
+ "color": "#81A1C1"
3595
+ }
3596
+ }
3597
+ }, {
3598
+ "content": " 定制 npm registry ",
3599
+ "props": {
3600
+ "style": {
3601
+ "color": "#D8DEE9FF"
3602
+ }
3603
+ }
3604
+ }, {
3605
+ "content": "(",
3606
+ "props": {
3607
+ "style": {
3608
+ "color": "#ECEFF4"
3609
+ }
3610
+ }
3611
+ }, {
3612
+ "content": "default: ",
3613
+ "props": {
3614
+ "style": {
3615
+ "color": "#D8DEE9FF"
3616
+ }
3617
+ }
3618
+ }, {
3619
+ "content": "\"\"",
3620
+ "props": {
3621
+ "style": {
3622
+ "color": "#ECEFF4"
3623
+ }
3624
+ }
3625
+ }, {
3626
+ "content": ")",
3627
+ "props": {
3628
+ "style": {
3629
+ "color": "#ECEFF4"
3630
+ }
3631
+ }
3632
+ }]
3633
+ }, {
3634
+ "tokens": [{
3635
+ "content": " -d,--debug 开启 Debug 模式,打印调试日志信息 ",
3636
+ "props": {
3637
+ "style": {
3638
+ "color": "#D8DEE9FF"
3639
+ }
3640
+ }
3641
+ }, {
3642
+ "content": "(",
3643
+ "props": {
3644
+ "style": {
3645
+ "color": "#ECEFF4"
3646
+ }
3647
+ }
3648
+ }, {
3649
+ "content": "default: false",
3650
+ "props": {
3651
+ "style": {
3652
+ "color": "#D8DEE9FF"
3653
+ }
3654
+ }
3655
+ }, {
3656
+ "content": ")",
3657
+ "props": {
3658
+ "style": {
3659
+ "color": "#ECEFF4"
3660
+ }
3661
+ }
3662
+ }]
3663
+ }, {
3664
+ "tokens": [{
3665
+ "content": " --cwd ",
3666
+ "props": {
3667
+ "style": {
3668
+ "color": "#D8DEE9FF"
3669
+ }
3670
+ }
3671
+ }, {
3672
+ "content": "<",
3673
+ "props": {
3674
+ "style": {
3675
+ "color": "#81A1C1"
3676
+ }
3677
+ }
3678
+ }, {
3679
+ "content": "cwd",
3680
+ "props": {
3681
+ "style": {
3682
+ "color": "#D8DEE9FF"
3683
+ }
3684
+ }
3685
+ }, {
3686
+ "content": ">",
3687
+ "props": {
3688
+ "style": {
3689
+ "color": "#81A1C1"
3690
+ }
3691
+ }
3692
+ }, {
3693
+ "content": " 项目路径 ",
3694
+ "props": {
3695
+ "style": {
3696
+ "color": "#D8DEE9FF"
3697
+ }
3698
+ }
3699
+ }, {
3700
+ "content": "(",
3701
+ "props": {
3702
+ "style": {
3703
+ "color": "#ECEFF4"
3704
+ }
3705
+ }
3706
+ }, {
3707
+ "content": "default: ",
3708
+ "props": {
3709
+ "style": {
3710
+ "color": "#D8DEE9FF"
3711
+ }
3712
+ }
3713
+ }, {
3714
+ "content": "\"\"",
3715
+ "props": {
3716
+ "style": {
3717
+ "color": "#ECEFF4"
3718
+ }
3719
+ }
3720
+ }, {
3721
+ "content": ")",
3722
+ "props": {
3723
+ "style": {
3724
+ "color": "#ECEFF4"
3725
+ }
3726
+ }
3727
+ }]
3728
+ }, {
3729
+ "tokens": [{
3730
+ "content": " -h, --help display ",
3731
+ "props": {
3732
+ "style": {
3733
+ "color": "#D8DEE9FF"
3734
+ }
3735
+ }
3736
+ }, {
3737
+ "content": "help",
3738
+ "props": {
3739
+ "style": {
3740
+ "color": "#88C0D0"
3741
+ }
3742
+ }
3743
+ }, {
3744
+ "content": " ",
3745
+ "props": {
3746
+ "style": {
3747
+ "color": "#D8DEE9FF"
3748
+ }
3749
+ }
3750
+ }, {
3751
+ "content": "for",
3752
+ "props": {
3753
+ "style": {
3754
+ "color": "#81A1C1"
3755
+ }
3756
+ }
3757
+ }, {
3758
+ "content": " ",
3759
+ "props": {
3760
+ "style": {
3761
+ "color": "#D8DEE9FF"
3762
+ }
3763
+ }
3764
+ }, {
3765
+ "content": "command",
3766
+ "props": {
3767
+ "style": {
3768
+ "color": "#88C0D0"
3769
+ }
3770
+ }
3771
+ }]
3772
+ }],
3773
+ "lang": "bash"
3774
+ },
3775
+ "annotations": []
3776
+ }]
3777
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3778
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3779
+ children: "modern upgrade"
3780
+ }), " 命令,用于升级项目 Modern.js 相关依赖至最新版本。"]
3781
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
3782
+ children: ["在项目根目录下执行命令 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3783
+ children: "npx modern upgrade"
3784
+ }), ",会默认将当前执行命令项目的 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
3785
+ children: "package.json"
3786
+ }), " 中的 Modern.js 相关依赖更新至最新版本。"]
3787
+ })]
3788
+ });
3789
+ }
3790
+ function MDXContent(props = {}) {
3791
+ const {wrapper: MDXLayout} = props.components || ({});
3792
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
3793
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
3794
+ })) : _createMdxContent(props);
3795
+ }
3796
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
3797
+ function _missingMdxReference(id, component, place) {
3798
+ 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/github/targeral/modern-dev/website/module-tools/docs/zh/guide/basic/command-preview.md`" : ""));
3799
+ }
3800
+
3801
+
3802
+ /***/ })
3803
+
3804
+ }]);
3805
+ //# sourceMappingURL=zh_guide_basic_command-preview.js.map