@modern-js/module-tools-docs 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/doc_build/html/main/index.html +16 -0
  2. package/doc_build/route.json +10 -0
  3. package/doc_build/static/css/main.css +3370 -0
  4. package/doc_build/static/css/main.css.map +1 -0
  5. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css +85 -0
  6. package/doc_build/static/css/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.css.map +1 -0
  7. package/doc_build/static/js/async/api_.js +56 -0
  8. package/doc_build/static/js/async/api_.js.map +1 -0
  9. package/doc_build/static/js/async/api_config_build-config.js +11309 -0
  10. package/doc_build/static/js/async/api_config_build-config.js.map +1 -0
  11. package/doc_build/static/js/async/api_config_build-preset.js +7849 -0
  12. package/doc_build/static/js/async/api_config_build-preset.js.map +1 -0
  13. package/doc_build/static/js/async/api_config_design-system.js +48708 -0
  14. package/doc_build/static/js/async/api_config_design-system.js.map +1 -0
  15. package/doc_build/static/js/async/api_config_plugins.js +1492 -0
  16. package/doc_build/static/js/async/api_config_plugins.js.map +1 -0
  17. package/doc_build/static/js/async/api_config_testing.js +2130 -0
  18. package/doc_build/static/js/async/api_config_testing.js.map +1 -0
  19. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js +14394 -0
  20. package/doc_build/static/js/async/api_plugin-api_plugin-hooks.js.map +1 -0
  21. package/doc_build/static/js/async/en_.js +85 -0
  22. package/doc_build/static/js/async/en_.js.map +1 -0
  23. package/doc_build/static/js/async/en_api_.js +55 -0
  24. package/doc_build/static/js/async/en_api_.js.map +1 -0
  25. package/doc_build/static/js/async/en_api_config_build-config.js +8363 -0
  26. package/doc_build/static/js/async/en_api_config_build-config.js.map +1 -0
  27. package/doc_build/static/js/async/en_api_config_build-preset.js +7845 -0
  28. package/doc_build/static/js/async/en_api_config_build-preset.js.map +1 -0
  29. package/doc_build/static/js/async/en_api_config_design-system.js +16345 -0
  30. package/doc_build/static/js/async/en_api_config_design-system.js.map +1 -0
  31. package/doc_build/static/js/async/en_api_config_plugins.js +1492 -0
  32. package/doc_build/static/js/async/en_api_config_plugins.js.map +1 -0
  33. package/doc_build/static/js/async/en_api_config_testing.js +2137 -0
  34. package/doc_build/static/js/async/en_api_config_testing.js.map +1 -0
  35. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +14362 -0
  36. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +1 -0
  37. package/doc_build/static/js/async/en_guide_advance_asset.js +3997 -0
  38. package/doc_build/static/js/async/en_guide_advance_asset.js.map +1 -0
  39. package/doc_build/static/js/async/en_guide_advance_build-umd.js +9861 -0
  40. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +1 -0
  41. package/doc_build/static/js/async/en_guide_advance_copy.js +6539 -0
  42. package/doc_build/static/js/async/en_guide_advance_copy.js.map +1 -0
  43. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +3810 -0
  44. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +1 -0
  45. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +5046 -0
  46. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +1 -0
  47. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +150 -0
  48. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +1 -0
  49. package/doc_build/static/js/async/en_guide_advance_theme-config.js +2484 -0
  50. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +1 -0
  51. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +3671 -0
  52. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +1 -0
  53. package/doc_build/static/js/async/en_guide_basic_command-preview.js +3961 -0
  54. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +1 -0
  55. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +2970 -0
  56. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +1 -0
  57. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +2182 -0
  58. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +1 -0
  59. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +3892 -0
  60. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +1 -0
  61. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +168 -0
  62. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +1 -0
  63. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +4762 -0
  64. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +1 -0
  65. package/doc_build/static/js/async/en_guide_best-practices_components.js +21388 -0
  66. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +1 -0
  67. package/doc_build/static/js/async/en_guide_intro_getting-started.js +1906 -0
  68. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +1 -0
  69. package/doc_build/static/js/async/en_guide_intro_welcome.js +148 -0
  70. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +1 -0
  71. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +92 -0
  72. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +1 -0
  73. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +2560 -0
  74. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +1 -0
  75. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +4177 -0
  76. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +1 -0
  77. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +3819 -0
  78. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +1 -0
  79. package/doc_build/static/js/async/en_plugins_official-list_overview.js +70 -0
  80. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +1 -0
  81. package/doc_build/static/js/async/guide_advance_asset.js +3997 -0
  82. package/doc_build/static/js/async/guide_advance_asset.js.map +1 -0
  83. package/doc_build/static/js/async/guide_advance_build-umd.js +9863 -0
  84. package/doc_build/static/js/async/guide_advance_build-umd.js.map +1 -0
  85. package/doc_build/static/js/async/guide_advance_copy.js +6539 -0
  86. package/doc_build/static/js/async/guide_advance_copy.js.map +1 -0
  87. package/doc_build/static/js/async/guide_advance_external-dependency.js +3812 -0
  88. package/doc_build/static/js/async/guide_advance_external-dependency.js.map +1 -0
  89. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js +5046 -0
  90. package/doc_build/static/js/async/guide_advance_in-depth-about-build.js.map +1 -0
  91. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js +152 -0
  92. package/doc_build/static/js/async/guide_advance_in-depth-about-dev-command.js.map +1 -0
  93. package/doc_build/static/js/async/guide_advance_theme-config.js +2475 -0
  94. package/doc_build/static/js/async/guide_advance_theme-config.js.map +1 -0
  95. package/doc_build/static/js/async/guide_basic_before-getting-started.js +3662 -0
  96. package/doc_build/static/js/async/guide_basic_before-getting-started.js.map +1 -0
  97. package/doc_build/static/js/async/guide_basic_command-preview.js +3793 -0
  98. package/doc_build/static/js/async/guide_basic_command-preview.js.map +1 -0
  99. package/doc_build/static/js/async/guide_basic_modify-output-product.js +2949 -0
  100. package/doc_build/static/js/async/guide_basic_modify-output-product.js.map +1 -0
  101. package/doc_build/static/js/async/guide_basic_publish-your-project.js +2243 -0
  102. package/doc_build/static/js/async/guide_basic_publish-your-project.js.map +1 -0
  103. package/doc_build/static/js/async/guide_basic_test-your-project.js +3892 -0
  104. package/doc_build/static/js/async/guide_basic_test-your-project.js.map +1 -0
  105. package/doc_build/static/js/async/guide_basic_use-micro-generator.js +172 -0
  106. package/doc_build/static/js/async/guide_basic_use-micro-generator.js.map +1 -0
  107. package/doc_build/static/js/async/guide_basic_using-storybook.js +4762 -0
  108. package/doc_build/static/js/async/guide_basic_using-storybook.js.map +1 -0
  109. package/doc_build/static/js/async/guide_best-practices_components.js +21088 -0
  110. package/doc_build/static/js/async/guide_best-practices_components.js.map +1 -0
  111. package/doc_build/static/js/async/guide_intro_getting-started.js +1782 -0
  112. package/doc_build/static/js/async/guide_intro_getting-started.js.map +1 -0
  113. package/doc_build/static/js/async/guide_intro_welcome.js +148 -0
  114. package/doc_build/static/js/async/guide_intro_welcome.js.map +1 -0
  115. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js +92 -0
  116. package/doc_build/static/js/async/guide_intro_why-module-engineering-solution.js.map +1 -0
  117. package/doc_build/static/js/async/index.js +85 -0
  118. package/doc_build/static/js/async/index.js.map +1 -0
  119. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +447 -0
  120. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +1 -0
  121. package/doc_build/static/js/async/plugins_guide_getting-started.js +2608 -0
  122. package/doc_build/static/js/async/plugins_guide_getting-started.js.map +1 -0
  123. package/doc_build/static/js/async/plugins_guide_plugin-object.js +4173 -0
  124. package/doc_build/static/js/async/plugins_guide_plugin-object.js.map +1 -0
  125. package/doc_build/static/js/async/plugins_guide_setup-function.js +3819 -0
  126. package/doc_build/static/js/async/plugins_guide_setup-function.js.map +1 -0
  127. package/doc_build/static/js/async/plugins_official-list_overview.js +70 -0
  128. package/doc_build/static/js/async/plugins_official-list_overview.js.map +1 -0
  129. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js +6656 -0
  130. package/doc_build/static/js/async/vendors-node_modules_pnpm_code-hike_mdx_0_7_4_react_18_2_0_node_modules_code-hike_mdx_dist_co-06dd41.js.map +1 -0
  131. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +54 -0
  132. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +1 -0
  133. package/doc_build/static/js/builder-runtime.js +1375 -0
  134. package/doc_build/static/js/builder-runtime.js.map +1 -0
  135. package/doc_build/static/js/lib-lodash.js +4907 -0
  136. package/doc_build/static/js/lib-lodash.js.map +1 -0
  137. package/doc_build/static/js/lib-polyfill.js +24769 -0
  138. package/doc_build/static/js/lib-polyfill.js.map +1 -0
  139. package/doc_build/static/js/lib-react.js +39510 -0
  140. package/doc_build/static/js/lib-react.js.map +1 -0
  141. package/doc_build/static/js/main.js +9237 -0
  142. package/doc_build/static/js/main.js.map +1 -0
  143. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js +8532 -0
  144. package/doc_build/static/js/vendors-node_modules_pnpm_remix-run_router_1_2_0_node_modules_remix-run_router_dist_router_js-9d5e9c.js.map +1 -0
  145. package/docs/en/api/config/build-config.md +5 -5
  146. package/docs/en/api/plugin-api/plugin-hooks.md +1 -1
  147. package/docs/en/guide/advance/asset.mdx +1 -1
  148. package/docs/en/guide/advance/build-umd.mdx +3 -3
  149. package/docs/en/guide/advance/copy.md +5 -5
  150. package/docs/en/guide/advance/external-dependency.mdx +2 -2
  151. package/docs/en/guide/advance/in-depth-about-build.md +7 -7
  152. package/docs/en/guide/advance/in-depth-about-dev-command.md +1 -1
  153. package/docs/en/guide/advance/theme-config.mdx +2 -2
  154. package/docs/en/guide/basic/before-getting-started.md +1 -1
  155. package/docs/en/guide/basic/command-preview.md +2 -2
  156. package/docs/en/guide/basic/modify-output-product.md +23 -22
  157. package/docs/en/guide/basic/publish-your-project.md +4 -4
  158. package/docs/en/guide/basic/test-your-project.mdx +5 -3
  159. package/docs/en/guide/basic/use-micro-generator.md +9 -5
  160. package/docs/en/guide/basic/using-storybook.mdx +6 -4
  161. package/docs/en/guide/best-practices/components.mdx +103 -97
  162. package/docs/en/guide/intro/getting-started.md +2 -2
  163. package/docs/en/index.md +14 -17
  164. package/docs/en/plugins/guide/getting-started.mdx +2 -2
  165. package/docs/en/plugins/guide/setup-function.mdx +2 -2
  166. package/docs/zh/api/config/_category_.json +1 -1
  167. package/docs/zh/api/config/build-config.md +16 -5
  168. package/docs/zh/api/config/plugins.md +1 -1
  169. package/docs/zh/api/index.md +1 -0
  170. package/docs/zh/api/plugin-api/_category_.json +1 -1
  171. package/docs/zh/api/plugin-api/plugin-hooks.md +56 -55
  172. package/docs/zh/guide/advance/asset.mdx +1 -1
  173. package/docs/zh/guide/advance/build-umd.mdx +3 -3
  174. package/docs/zh/guide/advance/copy.md +5 -5
  175. package/docs/zh/guide/advance/external-dependency.mdx +3 -3
  176. package/docs/zh/guide/advance/in-depth-about-build.md +7 -7
  177. package/docs/zh/guide/advance/in-depth-about-dev-command.md +1 -1
  178. package/docs/zh/guide/advance/theme-config.mdx +2 -2
  179. package/docs/zh/guide/basic/before-getting-started.md +1 -1
  180. package/docs/zh/guide/basic/command-preview.md +2 -2
  181. package/docs/zh/guide/basic/modify-output-product.md +30 -30
  182. package/docs/zh/guide/basic/publish-your-project.md +4 -4
  183. package/docs/zh/guide/basic/test-your-project.mdx +5 -3
  184. package/docs/zh/guide/basic/use-micro-generator.md +5 -5
  185. package/docs/zh/guide/basic/using-storybook.mdx +6 -4
  186. package/docs/zh/guide/best-practices/components.mdx +10 -10
  187. package/docs/zh/guide/intro/getting-started.md +2 -2
  188. package/docs/zh/index.md +1 -1
  189. package/docs/zh/plugins/guide/getting-started.mdx +3 -3
  190. package/docs/zh/plugins/guide/setup-function.mdx +2 -2
  191. package/modern.config.ts +4 -3
  192. package/package.json +3 -3
@@ -0,0 +1,2608 @@
1
+ "use strict";
2
+ (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["plugins_guide_getting-started"],{
3
+
4
+ /***/ "./docs/zh/plugins/guide/getting-started.mdx":
5
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
+
7
+ __webpack_require__.r(__webpack_exports__);
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "CH": function() { return /* binding */ CH; },
10
+ /* harmony export */ "chCodeConfig": function() { return /* binding */ chCodeConfig; },
11
+ /* harmony export */ "content": function() { return /* binding */ content; },
12
+ /* harmony export */ "frontmatter": function() { return /* binding */ frontmatter; },
13
+ /* harmony export */ "title": function() { return /* binding */ title; },
14
+ /* harmony export */ "toc": function() { return /* binding */ toc; }
15
+ /* harmony export */ });
16
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js");
17
+ /* harmony import */ var _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@code-hike+mdx@0.7.4_react@18.2.0/node_modules/@code-hike/mdx/dist/components.esm.mjs");
18
+ /*@jsxRuntime automatic @jsxImportSource react*/
19
+
20
+
21
+ var CH = {
22
+ annotations: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.annotations,
23
+ Spotlight: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.Spotlight,
24
+ CodeSlot: _code_hike_mdx_dist_components_cjs_js__WEBPACK_IMPORTED_MODULE_1__.CodeSlot
25
+ };
26
+ var chCodeConfig = {
27
+ "staticMediaQuery": "not screen, (max-width: 768px)",
28
+ "theme": {
29
+ "name": "nord",
30
+ "type": "dark",
31
+ "semanticHighlighting": true,
32
+ "colors": {
33
+ "focusBorder": "#3b4252",
34
+ "foreground": "#d8dee9",
35
+ "activityBar.background": "#2e3440",
36
+ "activityBar.dropBackground": "#3b4252",
37
+ "activityBar.foreground": "#d8dee9",
38
+ "activityBar.activeBorder": "#88c0d0",
39
+ "activityBar.activeBackground": "#3b4252",
40
+ "activityBarBadge.background": "#88c0d0",
41
+ "activityBarBadge.foreground": "#2e3440",
42
+ "badge.foreground": "#2e3440",
43
+ "badge.background": "#88c0d0",
44
+ "button.background": "#88c0d0ee",
45
+ "button.foreground": "#2e3440",
46
+ "button.hoverBackground": "#88c0d0",
47
+ "button.secondaryBackground": "#434c5e",
48
+ "button.secondaryForeground": "#d8dee9",
49
+ "button.secondaryHoverBackground": "#4c566a",
50
+ "charts.red": "#bf616a",
51
+ "charts.blue": "#81a1c1",
52
+ "charts.yellow": "#ebcb8b",
53
+ "charts.orange": "#d08770",
54
+ "charts.green": "#a3be8c",
55
+ "charts.purple": "#b48ead",
56
+ "charts.foreground": "#d8dee9",
57
+ "charts.lines": "#88c0d0",
58
+ "debugConsole.infoForeground": "#88c0d0",
59
+ "debugConsole.warningForeground": "#ebcb8b",
60
+ "debugConsole.errorForeground": "#bf616a",
61
+ "debugConsole.sourceForeground": "#616e88",
62
+ "debugConsoleInputIcon.foreground": "#81a1c1",
63
+ "debugExceptionWidget.background": "#4c566a",
64
+ "debugExceptionWidget.border": "#2e3440",
65
+ "debugToolBar.background": "#3b4252",
66
+ "descriptionForeground": "#d8dee9e6",
67
+ "diffEditor.insertedTextBackground": "#81a1c133",
68
+ "diffEditor.removedTextBackground": "#bf616a4d",
69
+ "dropdown.background": "#3b4252",
70
+ "dropdown.border": "#3b4252",
71
+ "dropdown.foreground": "#d8dee9",
72
+ "editorActiveLineNumber.foreground": "#d8dee9cc",
73
+ "editorCursor.foreground": "#d8dee9",
74
+ "editorHint.border": "#ebcb8b00",
75
+ "editorHint.foreground": "#ebcb8b",
76
+ "editorIndentGuide.background": "#434c5eb3",
77
+ "editorIndentGuide.activeBackground": "#4c566a",
78
+ "editorInlayHint.background": "#434c5e",
79
+ "editorInlayHint.foreground": "#d8dee9",
80
+ "editorLineNumber.foreground": "#4c566a",
81
+ "editorLineNumber.activeForeground": "#d8dee9",
82
+ "editorWhitespace.foreground": "#4c566ab3",
83
+ "editorWidget.background": "#2e3440",
84
+ "editorWidget.border": "#3b4252",
85
+ "editor.background": "#2e3440",
86
+ "editor.foreground": "#d8dee9",
87
+ "editor.hoverHighlightBackground": "#3b4252",
88
+ "editor.findMatchBackground": "#88c0d066",
89
+ "editor.findMatchHighlightBackground": "#88c0d033",
90
+ "editor.findRangeHighlightBackground": "#88c0d033",
91
+ "editor.lineHighlightBackground": "#3b4252",
92
+ "editor.lineHighlightBorder": "#3b4252",
93
+ "editor.inactiveSelectionBackground": "#434c5ecc",
94
+ "editor.inlineValuesBackground": "#4c566a",
95
+ "editor.inlineValuesForeground": "#eceff4",
96
+ "editor.selectionBackground": "#434c5ecc",
97
+ "editor.selectionHighlightBackground": "#434c5ecc",
98
+ "editor.rangeHighlightBackground": "#434c5e52",
99
+ "editor.wordHighlightBackground": "#81a1c166",
100
+ "editor.wordHighlightStrongBackground": "#81a1c199",
101
+ "editor.stackFrameHighlightBackground": "#5e81ac",
102
+ "editor.focusedStackFrameHighlightBackground": "#5e81ac",
103
+ "editorError.foreground": "#bf616a",
104
+ "editorError.border": "#bf616a00",
105
+ "editorWarning.foreground": "#ebcb8b",
106
+ "editorWarning.border": "#ebcb8b00",
107
+ "editorBracketMatch.background": "#2e344000",
108
+ "editorBracketMatch.border": "#88c0d0",
109
+ "editorBracketHighlight.foreground1": "#8fbcbb",
110
+ "editorBracketHighlight.foreground2": "#88c0d0",
111
+ "editorBracketHighlight.foreground3": "#81a1c1",
112
+ "editorBracketHighlight.foreground4": "#5e81ac",
113
+ "editorBracketHighlight.foreground5": "#8fbcbb",
114
+ "editorBracketHighlight.foreground6": "#88c0d0",
115
+ "editorBracketHighlight.unexpectedBracket.foreground": "#bf616a",
116
+ "editorCodeLens.foreground": "#4c566a",
117
+ "editorGroup.background": "#2e3440",
118
+ "editorGroup.border": "#3b425201",
119
+ "editorGroup.dropBackground": "#3b425299",
120
+ "editorGroupHeader.border": "#3b425200",
121
+ "editorGroupHeader.noTabsBackground": "#2e3440",
122
+ "editorGroupHeader.tabsBackground": "#2e3440",
123
+ "editorGroupHeader.tabsBorder": "#3b425200",
124
+ "editorGutter.background": "#2e3440",
125
+ "editorGutter.modifiedBackground": "#ebcb8b",
126
+ "editorGutter.addedBackground": "#a3be8c",
127
+ "editorGutter.deletedBackground": "#bf616a",
128
+ "editorHoverWidget.background": "#3b4252",
129
+ "editorHoverWidget.border": "#3b4252",
130
+ "editorLink.activeForeground": "#88c0d0",
131
+ "editorMarkerNavigation.background": "#5e81acc0",
132
+ "editorMarkerNavigationError.background": "#bf616ac0",
133
+ "editorMarkerNavigationWarning.background": "#ebcb8bc0",
134
+ "editorOverviewRuler.border": "#3b4252",
135
+ "editorOverviewRuler.currentContentForeground": "#3b4252",
136
+ "editorOverviewRuler.incomingContentForeground": "#3b4252",
137
+ "editorOverviewRuler.findMatchForeground": "#88c0d066",
138
+ "editorOverviewRuler.rangeHighlightForeground": "#88c0d066",
139
+ "editorOverviewRuler.selectionHighlightForeground": "#88c0d066",
140
+ "editorOverviewRuler.wordHighlightForeground": "#88c0d066",
141
+ "editorOverviewRuler.wordHighlightStrongForeground": "#88c0d066",
142
+ "editorOverviewRuler.modifiedForeground": "#ebcb8b",
143
+ "editorOverviewRuler.addedForeground": "#a3be8c",
144
+ "editorOverviewRuler.deletedForeground": "#bf616a",
145
+ "editorOverviewRuler.errorForeground": "#bf616a",
146
+ "editorOverviewRuler.warningForeground": "#ebcb8b",
147
+ "editorOverviewRuler.infoForeground": "#81a1c1",
148
+ "editorRuler.foreground": "#434c5e",
149
+ "editorSuggestWidget.background": "#2e3440",
150
+ "editorSuggestWidget.border": "#3b4252",
151
+ "editorSuggestWidget.foreground": "#d8dee9",
152
+ "editorSuggestWidget.focusHighlightForeground": "#88c0d0",
153
+ "editorSuggestWidget.highlightForeground": "#88c0d0",
154
+ "editorSuggestWidget.selectedBackground": "#434c5e",
155
+ "editorSuggestWidget.selectedForeground": "#d8dee9",
156
+ "extensionButton.prominentForeground": "#d8dee9",
157
+ "extensionButton.prominentBackground": "#434c5e",
158
+ "extensionButton.prominentHoverBackground": "#4c566a",
159
+ "errorForeground": "#bf616a",
160
+ "gitDecoration.modifiedResourceForeground": "#ebcb8b",
161
+ "gitDecoration.deletedResourceForeground": "#bf616a",
162
+ "gitDecoration.untrackedResourceForeground": "#a3be8c",
163
+ "gitDecoration.ignoredResourceForeground": "#d8dee966",
164
+ "gitDecoration.conflictingResourceForeground": "#5e81ac",
165
+ "gitDecoration.submoduleResourceForeground": "#8fbcbb",
166
+ "gitDecoration.stageDeletedResourceForeground": "#bf616a",
167
+ "gitDecoration.stageModifiedResourceForeground": "#ebcb8b",
168
+ "input.background": "#3b4252",
169
+ "input.foreground": "#d8dee9",
170
+ "input.placeholderForeground": "#d8dee999",
171
+ "input.border": "#3b4252",
172
+ "inputOption.activeBackground": "#5e81ac",
173
+ "inputOption.activeBorder": "#5e81ac",
174
+ "inputOption.activeForeground": "#eceff4",
175
+ "inputValidation.errorBackground": "#bf616a",
176
+ "inputValidation.errorBorder": "#bf616a",
177
+ "inputValidation.infoBackground": "#81a1c1",
178
+ "inputValidation.infoBorder": "#81a1c1",
179
+ "inputValidation.warningBackground": "#d08770",
180
+ "inputValidation.warningBorder": "#d08770",
181
+ "keybindingLabel.background": "#4c566a",
182
+ "keybindingLabel.border": "#4c566a",
183
+ "keybindingLabel.bottomBorder": "#4c566a",
184
+ "keybindingLabel.foreground": "#d8dee9",
185
+ "list.activeSelectionBackground": "#88c0d0",
186
+ "list.activeSelectionForeground": "#2e3440",
187
+ "list.inactiveSelectionBackground": "#434c5e",
188
+ "list.inactiveSelectionForeground": "#d8dee9",
189
+ "list.inactiveFocusBackground": "#434c5ecc",
190
+ "list.hoverForeground": "#eceff4",
191
+ "list.focusForeground": "#d8dee9",
192
+ "list.focusBackground": "#88c0d099",
193
+ "list.focusHighlightForeground": "#eceff4",
194
+ "list.hoverBackground": "#3b4252",
195
+ "list.dropBackground": "#88c0d099",
196
+ "list.highlightForeground": "#88c0d0",
197
+ "list.errorForeground": "#bf616a",
198
+ "list.warningForeground": "#ebcb8b",
199
+ "merge.currentHeaderBackground": "#81a1c166",
200
+ "merge.currentContentBackground": "#81a1c14d",
201
+ "merge.incomingHeaderBackground": "#8fbcbb66",
202
+ "merge.incomingContentBackground": "#8fbcbb4d",
203
+ "merge.border": "#3b425200",
204
+ "minimap.background": "#2e3440",
205
+ "minimap.errorHighlight": "#bf616acc",
206
+ "minimap.findMatchHighlight": "#88c0d0",
207
+ "minimap.selectionHighlight": "#88c0d0cc",
208
+ "minimap.warningHighlight": "#ebcb8bcc",
209
+ "minimapGutter.addedBackground": "#a3be8c",
210
+ "minimapGutter.deletedBackground": "#bf616a",
211
+ "minimapGutter.modifiedBackground": "#ebcb8b",
212
+ "minimapSlider.activeBackground": "#434c5eaa",
213
+ "minimapSlider.background": "#434c5e99",
214
+ "minimapSlider.hoverBackground": "#434c5eaa",
215
+ "notification.background": "#3b4252",
216
+ "notification.buttonBackground": "#434c5e",
217
+ "notification.buttonForeground": "#d8dee9",
218
+ "notification.buttonHoverBackground": "#4c566a",
219
+ "notification.errorBackground": "#bf616a",
220
+ "notification.errorForeground": "#2e3440",
221
+ "notification.foreground": "#d8dee9",
222
+ "notification.infoBackground": "#88c0d0",
223
+ "notification.infoForeground": "#2e3440",
224
+ "notification.warningBackground": "#ebcb8b",
225
+ "notification.warningForeground": "#2e3440",
226
+ "notificationCenter.border": "#3b425200",
227
+ "notificationCenterHeader.background": "#2e3440",
228
+ "notificationCenterHeader.foreground": "#88c0d0",
229
+ "notificationLink.foreground": "#88c0d0",
230
+ "notifications.background": "#3b4252",
231
+ "notifications.border": "#2e3440",
232
+ "notifications.foreground": "#d8dee9",
233
+ "notificationToast.border": "#3b425200",
234
+ "panel.background": "#2e3440",
235
+ "panel.border": "#3b4252",
236
+ "panelTitle.activeBorder": "#88c0d000",
237
+ "panelTitle.activeForeground": "#88c0d0",
238
+ "panelTitle.inactiveForeground": "#d8dee9",
239
+ "peekView.border": "#4c566a",
240
+ "peekViewEditor.background": "#2e3440",
241
+ "peekViewEditorGutter.background": "#2e3440",
242
+ "peekViewEditor.matchHighlightBackground": "#88c0d04d",
243
+ "peekViewResult.background": "#2e3440",
244
+ "peekViewResult.fileForeground": "#88c0d0",
245
+ "peekViewResult.lineForeground": "#d8dee966",
246
+ "peekViewResult.matchHighlightBackground": "#88c0d0cc",
247
+ "peekViewResult.selectionBackground": "#434c5e",
248
+ "peekViewResult.selectionForeground": "#d8dee9",
249
+ "peekViewTitle.background": "#3b4252",
250
+ "peekViewTitleDescription.foreground": "#d8dee9",
251
+ "peekViewTitleLabel.foreground": "#88c0d0",
252
+ "pickerGroup.border": "#3b4252",
253
+ "pickerGroup.foreground": "#88c0d0",
254
+ "progressBar.background": "#88c0d0",
255
+ "quickInputList.focusBackground": "#88c0d0",
256
+ "quickInputList.focusForeground": "#2e3440",
257
+ "sash.hoverBorder": "#88c0d0",
258
+ "scrollbar.shadow": "#00000066",
259
+ "scrollbarSlider.activeBackground": "#434c5eaa",
260
+ "scrollbarSlider.background": "#434c5e99",
261
+ "scrollbarSlider.hoverBackground": "#434c5eaa",
262
+ "selection.background": "#88c0d099",
263
+ "sideBar.background": "#2e3440",
264
+ "sideBar.foreground": "#d8dee9",
265
+ "sideBar.border": "#3b4252",
266
+ "sideBarSectionHeader.background": "#3b4252",
267
+ "sideBarSectionHeader.foreground": "#d8dee9",
268
+ "sideBarTitle.foreground": "#d8dee9",
269
+ "statusBar.background": "#3b4252",
270
+ "statusBar.debuggingBackground": "#5e81ac",
271
+ "statusBar.debuggingForeground": "#d8dee9",
272
+ "statusBar.noFolderForeground": "#d8dee9",
273
+ "statusBar.noFolderBackground": "#3b4252",
274
+ "statusBar.foreground": "#d8dee9",
275
+ "statusBarItem.activeBackground": "#4c566a",
276
+ "statusBarItem.hoverBackground": "#434c5e",
277
+ "statusBarItem.prominentBackground": "#3b4252",
278
+ "statusBarItem.prominentHoverBackground": "#434c5e",
279
+ "statusBarItem.errorBackground": "#3b4252",
280
+ "statusBarItem.errorForeground": "#bf616a",
281
+ "statusBarItem.warningBackground": "#ebcb8b",
282
+ "statusBarItem.warningForeground": "#2e3440",
283
+ "statusBar.border": "#3b425200",
284
+ "tab.activeBackground": "#3b4252",
285
+ "tab.activeForeground": "#d8dee9",
286
+ "tab.border": "#3b425200",
287
+ "tab.activeBorder": "#88c0d000",
288
+ "tab.unfocusedActiveBorder": "#88c0d000",
289
+ "tab.inactiveBackground": "#2e3440",
290
+ "tab.inactiveForeground": "#d8dee966",
291
+ "tab.unfocusedActiveForeground": "#d8dee999",
292
+ "tab.unfocusedInactiveForeground": "#d8dee966",
293
+ "tab.hoverBackground": "#3b4252cc",
294
+ "tab.unfocusedHoverBackground": "#3b4252b3",
295
+ "tab.hoverBorder": "#88c0d000",
296
+ "tab.unfocusedHoverBorder": "#88c0d000",
297
+ "tab.activeBorderTop": "#88c0d000",
298
+ "tab.unfocusedActiveBorderTop": "#88c0d000",
299
+ "tab.lastPinnedBorder": "#4c566a",
300
+ "terminal.background": "#2e3440",
301
+ "terminal.foreground": "#d8dee9",
302
+ "terminal.ansiBlack": "#3b4252",
303
+ "terminal.ansiRed": "#bf616a",
304
+ "terminal.ansiGreen": "#a3be8c",
305
+ "terminal.ansiYellow": "#ebcb8b",
306
+ "terminal.ansiBlue": "#81a1c1",
307
+ "terminal.ansiMagenta": "#b48ead",
308
+ "terminal.ansiCyan": "#88c0d0",
309
+ "terminal.ansiWhite": "#e5e9f0",
310
+ "terminal.ansiBrightBlack": "#4c566a",
311
+ "terminal.ansiBrightRed": "#bf616a",
312
+ "terminal.ansiBrightGreen": "#a3be8c",
313
+ "terminal.ansiBrightYellow": "#ebcb8b",
314
+ "terminal.ansiBrightBlue": "#81a1c1",
315
+ "terminal.ansiBrightMagenta": "#b48ead",
316
+ "terminal.ansiBrightCyan": "#8fbcbb",
317
+ "terminal.ansiBrightWhite": "#eceff4",
318
+ "terminal.tab.activeBorder": "#88c0d0",
319
+ "textBlockQuote.background": "#3b4252",
320
+ "textBlockQuote.border": "#81a1c1",
321
+ "textCodeBlock.background": "#4c566a",
322
+ "textLink.activeForeground": "#88c0d0",
323
+ "textLink.foreground": "#88c0d0",
324
+ "textPreformat.foreground": "#8fbcbb",
325
+ "textSeparator.foreground": "#eceff4",
326
+ "titleBar.activeBackground": "#2e3440",
327
+ "titleBar.activeForeground": "#d8dee9",
328
+ "titleBar.border": "#2e344000",
329
+ "titleBar.inactiveBackground": "#2e3440",
330
+ "titleBar.inactiveForeground": "#d8dee966",
331
+ "tree.indentGuidesStroke": "#616e88",
332
+ "walkThrough.embeddedEditorBackground": "#2e3440",
333
+ "welcomePage.buttonBackground": "#434c5e",
334
+ "welcomePage.buttonHoverBackground": "#4c566a",
335
+ "widget.shadow": "#00000066"
336
+ },
337
+ "tokenColors": [{
338
+ "settings": {
339
+ "foreground": "#d8dee9ff",
340
+ "background": "#2e3440ff"
341
+ }
342
+ }, {
343
+ "scope": "emphasis",
344
+ "settings": {
345
+ "fontStyle": "italic"
346
+ }
347
+ }, {
348
+ "scope": "strong",
349
+ "settings": {
350
+ "fontStyle": "bold"
351
+ }
352
+ }, {
353
+ "name": "Comment",
354
+ "scope": "comment",
355
+ "settings": {
356
+ "foreground": "#616E88"
357
+ }
358
+ }, {
359
+ "name": "Constant Character",
360
+ "scope": "constant.character",
361
+ "settings": {
362
+ "foreground": "#EBCB8B"
363
+ }
364
+ }, {
365
+ "name": "Constant Character Escape",
366
+ "scope": "constant.character.escape",
367
+ "settings": {
368
+ "foreground": "#EBCB8B"
369
+ }
370
+ }, {
371
+ "name": "Constant Language",
372
+ "scope": "constant.language",
373
+ "settings": {
374
+ "foreground": "#81A1C1"
375
+ }
376
+ }, {
377
+ "name": "Constant Numeric",
378
+ "scope": "constant.numeric",
379
+ "settings": {
380
+ "foreground": "#B48EAD"
381
+ }
382
+ }, {
383
+ "name": "Constant Regexp",
384
+ "scope": "constant.regexp",
385
+ "settings": {
386
+ "foreground": "#EBCB8B"
387
+ }
388
+ }, {
389
+ "name": "Entity Name Class/Type",
390
+ "scope": ["entity.name.class", "entity.name.type.class"],
391
+ "settings": {
392
+ "foreground": "#8FBCBB"
393
+ }
394
+ }, {
395
+ "name": "Entity Name Function",
396
+ "scope": "entity.name.function",
397
+ "settings": {
398
+ "foreground": "#88C0D0"
399
+ }
400
+ }, {
401
+ "name": "Entity Name Tag",
402
+ "scope": "entity.name.tag",
403
+ "settings": {
404
+ "foreground": "#81A1C1"
405
+ }
406
+ }, {
407
+ "name": "Entity Other Attribute Name",
408
+ "scope": "entity.other.attribute-name",
409
+ "settings": {
410
+ "foreground": "#8FBCBB"
411
+ }
412
+ }, {
413
+ "name": "Entity Other Inherited Class",
414
+ "scope": "entity.other.inherited-class",
415
+ "settings": {
416
+ "fontStyle": "bold",
417
+ "foreground": "#8FBCBB"
418
+ }
419
+ }, {
420
+ "name": "Invalid Deprecated",
421
+ "scope": "invalid.deprecated",
422
+ "settings": {
423
+ "foreground": "#D8DEE9",
424
+ "background": "#EBCB8B"
425
+ }
426
+ }, {
427
+ "name": "Invalid Illegal",
428
+ "scope": "invalid.illegal",
429
+ "settings": {
430
+ "foreground": "#D8DEE9",
431
+ "background": "#BF616A"
432
+ }
433
+ }, {
434
+ "name": "Keyword",
435
+ "scope": "keyword",
436
+ "settings": {
437
+ "foreground": "#81A1C1"
438
+ }
439
+ }, {
440
+ "name": "Keyword Operator",
441
+ "scope": "keyword.operator",
442
+ "settings": {
443
+ "foreground": "#81A1C1"
444
+ }
445
+ }, {
446
+ "name": "Keyword Other New",
447
+ "scope": "keyword.other.new",
448
+ "settings": {
449
+ "foreground": "#81A1C1"
450
+ }
451
+ }, {
452
+ "name": "Markup Bold",
453
+ "scope": "markup.bold",
454
+ "settings": {
455
+ "fontStyle": "bold"
456
+ }
457
+ }, {
458
+ "name": "Markup Changed",
459
+ "scope": "markup.changed",
460
+ "settings": {
461
+ "foreground": "#EBCB8B"
462
+ }
463
+ }, {
464
+ "name": "Markup Deleted",
465
+ "scope": "markup.deleted",
466
+ "settings": {
467
+ "foreground": "#BF616A"
468
+ }
469
+ }, {
470
+ "name": "Markup Inserted",
471
+ "scope": "markup.inserted",
472
+ "settings": {
473
+ "foreground": "#A3BE8C"
474
+ }
475
+ }, {
476
+ "name": "Meta Preprocessor",
477
+ "scope": "meta.preprocessor",
478
+ "settings": {
479
+ "foreground": "#5E81AC"
480
+ }
481
+ }, {
482
+ "name": "Punctuation",
483
+ "scope": "punctuation",
484
+ "settings": {
485
+ "foreground": "#ECEFF4"
486
+ }
487
+ }, {
488
+ "name": "Punctuation Definition Parameters",
489
+ "scope": ["punctuation.definition.method-parameters", "punctuation.definition.function-parameters", "punctuation.definition.parameters"],
490
+ "settings": {
491
+ "foreground": "#ECEFF4"
492
+ }
493
+ }, {
494
+ "name": "Punctuation Definition Tag",
495
+ "scope": "punctuation.definition.tag",
496
+ "settings": {
497
+ "foreground": "#81A1C1"
498
+ }
499
+ }, {
500
+ "name": "Punctuation Definition Comment",
501
+ "scope": ["punctuation.definition.comment", "punctuation.end.definition.comment", "punctuation.start.definition.comment"],
502
+ "settings": {
503
+ "foreground": "#616E88"
504
+ }
505
+ }, {
506
+ "name": "Punctuation Section",
507
+ "scope": "punctuation.section",
508
+ "settings": {
509
+ "foreground": "#ECEFF4"
510
+ }
511
+ }, {
512
+ "name": "Punctuation Section Embedded",
513
+ "scope": ["punctuation.section.embedded.begin", "punctuation.section.embedded.end"],
514
+ "settings": {
515
+ "foreground": "#81A1C1"
516
+ }
517
+ }, {
518
+ "name": "Punctuation Terminator",
519
+ "scope": "punctuation.terminator",
520
+ "settings": {
521
+ "foreground": "#81A1C1"
522
+ }
523
+ }, {
524
+ "name": "Punctuation Variable",
525
+ "scope": "punctuation.definition.variable",
526
+ "settings": {
527
+ "foreground": "#81A1C1"
528
+ }
529
+ }, {
530
+ "name": "Storage",
531
+ "scope": "storage",
532
+ "settings": {
533
+ "foreground": "#81A1C1"
534
+ }
535
+ }, {
536
+ "name": "String",
537
+ "scope": "string",
538
+ "settings": {
539
+ "foreground": "#A3BE8C"
540
+ }
541
+ }, {
542
+ "name": "String Regexp",
543
+ "scope": "string.regexp",
544
+ "settings": {
545
+ "foreground": "#EBCB8B"
546
+ }
547
+ }, {
548
+ "name": "Support Class",
549
+ "scope": "support.class",
550
+ "settings": {
551
+ "foreground": "#8FBCBB"
552
+ }
553
+ }, {
554
+ "name": "Support Constant",
555
+ "scope": "support.constant",
556
+ "settings": {
557
+ "foreground": "#81A1C1"
558
+ }
559
+ }, {
560
+ "name": "Support Function",
561
+ "scope": "support.function",
562
+ "settings": {
563
+ "foreground": "#88C0D0"
564
+ }
565
+ }, {
566
+ "name": "Support Function Construct",
567
+ "scope": "support.function.construct",
568
+ "settings": {
569
+ "foreground": "#81A1C1"
570
+ }
571
+ }, {
572
+ "name": "Support Type",
573
+ "scope": "support.type",
574
+ "settings": {
575
+ "foreground": "#8FBCBB"
576
+ }
577
+ }, {
578
+ "name": "Support Type Exception",
579
+ "scope": "support.type.exception",
580
+ "settings": {
581
+ "foreground": "#8FBCBB"
582
+ }
583
+ }, {
584
+ "name": "Token Debug",
585
+ "scope": "token.debug-token",
586
+ "settings": {
587
+ "foreground": "#b48ead"
588
+ }
589
+ }, {
590
+ "name": "Token Error",
591
+ "scope": "token.error-token",
592
+ "settings": {
593
+ "foreground": "#bf616a"
594
+ }
595
+ }, {
596
+ "name": "Token Info",
597
+ "scope": "token.info-token",
598
+ "settings": {
599
+ "foreground": "#88c0d0"
600
+ }
601
+ }, {
602
+ "name": "Token Warning",
603
+ "scope": "token.warn-token",
604
+ "settings": {
605
+ "foreground": "#ebcb8b"
606
+ }
607
+ }, {
608
+ "name": "Variable",
609
+ "scope": "variable.other",
610
+ "settings": {
611
+ "foreground": "#D8DEE9"
612
+ }
613
+ }, {
614
+ "name": "Variable Language",
615
+ "scope": "variable.language",
616
+ "settings": {
617
+ "foreground": "#81A1C1"
618
+ }
619
+ }, {
620
+ "name": "Variable Parameter",
621
+ "scope": "variable.parameter",
622
+ "settings": {
623
+ "foreground": "#D8DEE9"
624
+ }
625
+ }, {
626
+ "name": "[C/CPP] Punctuation Separator Pointer-Access",
627
+ "scope": "punctuation.separator.pointer-access.c",
628
+ "settings": {
629
+ "foreground": "#81A1C1"
630
+ }
631
+ }, {
632
+ "name": "[C/CPP] Meta Preprocessor Include",
633
+ "scope": ["source.c meta.preprocessor.include", "source.c string.quoted.other.lt-gt.include"],
634
+ "settings": {
635
+ "foreground": "#8FBCBB"
636
+ }
637
+ }, {
638
+ "name": "[C/CPP] Conditional Directive",
639
+ "scope": ["source.cpp keyword.control.directive.conditional", "source.cpp punctuation.definition.directive", "source.c keyword.control.directive.conditional", "source.c punctuation.definition.directive"],
640
+ "settings": {
641
+ "foreground": "#5E81AC",
642
+ "fontStyle": "bold"
643
+ }
644
+ }, {
645
+ "name": "[CSS] Constant Other Color RGB Value",
646
+ "scope": "source.css constant.other.color.rgb-value",
647
+ "settings": {
648
+ "foreground": "#B48EAD"
649
+ }
650
+ }, {
651
+ "name": "[CSS](Function) Meta Property-Value",
652
+ "scope": "source.css meta.property-value",
653
+ "settings": {
654
+ "foreground": "#88C0D0"
655
+ }
656
+ }, {
657
+ "name": "[CSS] Media Queries",
658
+ "scope": ["source.css keyword.control.at-rule.media", "source.css keyword.control.at-rule.media punctuation.definition.keyword"],
659
+ "settings": {
660
+ "foreground": "#D08770"
661
+ }
662
+ }, {
663
+ "name": "[CSS] Punctuation Definition Keyword",
664
+ "scope": "source.css punctuation.definition.keyword",
665
+ "settings": {
666
+ "foreground": "#81A1C1"
667
+ }
668
+ }, {
669
+ "name": "[CSS] Support Type Property Name",
670
+ "scope": "source.css support.type.property-name",
671
+ "settings": {
672
+ "foreground": "#D8DEE9"
673
+ }
674
+ }, {
675
+ "name": "[diff] Meta Range Context",
676
+ "scope": "source.diff meta.diff.range.context",
677
+ "settings": {
678
+ "foreground": "#8FBCBB"
679
+ }
680
+ }, {
681
+ "name": "[diff] Meta Header From-File",
682
+ "scope": "source.diff meta.diff.header.from-file",
683
+ "settings": {
684
+ "foreground": "#8FBCBB"
685
+ }
686
+ }, {
687
+ "name": "[diff] Punctuation Definition From-File",
688
+ "scope": "source.diff punctuation.definition.from-file",
689
+ "settings": {
690
+ "foreground": "#8FBCBB"
691
+ }
692
+ }, {
693
+ "name": "[diff] Punctuation Definition Range",
694
+ "scope": "source.diff punctuation.definition.range",
695
+ "settings": {
696
+ "foreground": "#8FBCBB"
697
+ }
698
+ }, {
699
+ "name": "[diff] Punctuation Definition Separator",
700
+ "scope": "source.diff punctuation.definition.separator",
701
+ "settings": {
702
+ "foreground": "#81A1C1"
703
+ }
704
+ }, {
705
+ "name": "[Elixir](JakeBecker.elixir-ls) module names",
706
+ "scope": "entity.name.type.module.elixir",
707
+ "settings": {
708
+ "foreground": "#8FBCBB"
709
+ }
710
+ }, {
711
+ "name": "[Elixir](JakeBecker.elixir-ls) module attributes",
712
+ "scope": "variable.other.readwrite.module.elixir",
713
+ "settings": {
714
+ "foreground": "#D8DEE9",
715
+ "fontStyle": "bold"
716
+ }
717
+ }, {
718
+ "name": "[Elixir](JakeBecker.elixir-ls) atoms",
719
+ "scope": "constant.other.symbol.elixir",
720
+ "settings": {
721
+ "foreground": "#D8DEE9",
722
+ "fontStyle": "bold"
723
+ }
724
+ }, {
725
+ "name": "[Elixir](JakeBecker.elixir-ls) modules",
726
+ "scope": "variable.other.constant.elixir",
727
+ "settings": {
728
+ "foreground": "#8FBCBB"
729
+ }
730
+ }, {
731
+ "name": "[Go] String Format Placeholder",
732
+ "scope": "source.go constant.other.placeholder.go",
733
+ "settings": {
734
+ "foreground": "#EBCB8B"
735
+ }
736
+ }, {
737
+ "name": "[Java](JavaDoc) Comment Block Documentation HTML Entities",
738
+ "scope": "source.java comment.block.documentation.javadoc punctuation.definition.entity.html",
739
+ "settings": {
740
+ "foreground": "#81A1C1"
741
+ }
742
+ }, {
743
+ "name": "[Java](JavaDoc) Constant Other",
744
+ "scope": "source.java constant.other",
745
+ "settings": {
746
+ "foreground": "#D8DEE9"
747
+ }
748
+ }, {
749
+ "name": "[Java](JavaDoc) Keyword Other Documentation",
750
+ "scope": "source.java keyword.other.documentation",
751
+ "settings": {
752
+ "foreground": "#8FBCBB"
753
+ }
754
+ }, {
755
+ "name": "[Java](JavaDoc) Keyword Other Documentation Author",
756
+ "scope": "source.java keyword.other.documentation.author.javadoc",
757
+ "settings": {
758
+ "foreground": "#8FBCBB"
759
+ }
760
+ }, {
761
+ "name": "[Java](JavaDoc) Keyword Other Documentation Directive/Custom",
762
+ "scope": ["source.java keyword.other.documentation.directive", "source.java keyword.other.documentation.custom"],
763
+ "settings": {
764
+ "foreground": "#8FBCBB"
765
+ }
766
+ }, {
767
+ "name": "[Java](JavaDoc) Keyword Other Documentation See",
768
+ "scope": "source.java keyword.other.documentation.see.javadoc",
769
+ "settings": {
770
+ "foreground": "#8FBCBB"
771
+ }
772
+ }, {
773
+ "name": "[Java] Meta Method-Call",
774
+ "scope": "source.java meta.method-call meta.method",
775
+ "settings": {
776
+ "foreground": "#88C0D0"
777
+ }
778
+ }, {
779
+ "name": "[Java](JavaDoc) Meta Tag Template Link",
780
+ "scope": ["source.java meta.tag.template.link.javadoc", "source.java string.other.link.title.javadoc"],
781
+ "settings": {
782
+ "foreground": "#8FBCBB"
783
+ }
784
+ }, {
785
+ "name": "[Java](JavaDoc) Meta Tag Template Value",
786
+ "scope": "source.java meta.tag.template.value.javadoc",
787
+ "settings": {
788
+ "foreground": "#88C0D0"
789
+ }
790
+ }, {
791
+ "name": "[Java](JavaDoc) Punctuation Definition Keyword",
792
+ "scope": "source.java punctuation.definition.keyword.javadoc",
793
+ "settings": {
794
+ "foreground": "#8FBCBB"
795
+ }
796
+ }, {
797
+ "name": "[Java](JavaDoc) Punctuation Definition Tag",
798
+ "scope": ["source.java punctuation.definition.tag.begin.javadoc", "source.java punctuation.definition.tag.end.javadoc"],
799
+ "settings": {
800
+ "foreground": "#616E88"
801
+ }
802
+ }, {
803
+ "name": "[Java] Storage Modifier Import",
804
+ "scope": "source.java storage.modifier.import",
805
+ "settings": {
806
+ "foreground": "#8FBCBB"
807
+ }
808
+ }, {
809
+ "name": "[Java] Storage Modifier Package",
810
+ "scope": "source.java storage.modifier.package",
811
+ "settings": {
812
+ "foreground": "#8FBCBB"
813
+ }
814
+ }, {
815
+ "name": "[Java] Storage Type",
816
+ "scope": "source.java storage.type",
817
+ "settings": {
818
+ "foreground": "#8FBCBB"
819
+ }
820
+ }, {
821
+ "name": "[Java] Storage Type Annotation",
822
+ "scope": "source.java storage.type.annotation",
823
+ "settings": {
824
+ "foreground": "#D08770"
825
+ }
826
+ }, {
827
+ "name": "[Java] Storage Type Generic",
828
+ "scope": "source.java storage.type.generic",
829
+ "settings": {
830
+ "foreground": "#8FBCBB"
831
+ }
832
+ }, {
833
+ "name": "[Java] Storage Type Primitive",
834
+ "scope": "source.java storage.type.primitive",
835
+ "settings": {
836
+ "foreground": "#81A1C1"
837
+ }
838
+ }, {
839
+ "name": "[JavaScript] Decorator",
840
+ "scope": ["source.js punctuation.decorator", "source.js meta.decorator variable.other.readwrite", "source.js meta.decorator entity.name.function"],
841
+ "settings": {
842
+ "foreground": "#D08770"
843
+ }
844
+ }, {
845
+ "name": "[JavaScript] Meta Object-Literal Key",
846
+ "scope": "source.js meta.object-literal.key",
847
+ "settings": {
848
+ "foreground": "#88C0D0"
849
+ }
850
+ }, {
851
+ "name": "[JavaScript](JSDoc) Storage Type Class",
852
+ "scope": "source.js storage.type.class.jsdoc",
853
+ "settings": {
854
+ "foreground": "#8FBCBB"
855
+ }
856
+ }, {
857
+ "name": "[JavaScript] String Template Literals Punctuation",
858
+ "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"],
859
+ "settings": {
860
+ "foreground": "#81A1C1"
861
+ }
862
+ }, {
863
+ "name": "[JavaScript] Interpolated String Template Punctuation Functions",
864
+ "scope": "source.js string.quoted.template meta.method-call.with-arguments",
865
+ "settings": {
866
+ "foreground": "#ECEFF4"
867
+ }
868
+ }, {
869
+ "name": "[JavaScript] String Template Literal Variable",
870
+ "scope": ["source.js string.template meta.template.expression support.variable.property", "source.js string.template meta.template.expression variable.other.object"],
871
+ "settings": {
872
+ "foreground": "#D8DEE9"
873
+ }
874
+ }, {
875
+ "name": "[JavaScript] Support Type Primitive",
876
+ "scope": "source.js support.type.primitive",
877
+ "settings": {
878
+ "foreground": "#81A1C1"
879
+ }
880
+ }, {
881
+ "name": "[JavaScript] Variable Other Object",
882
+ "scope": "source.js variable.other.object",
883
+ "settings": {
884
+ "foreground": "#D8DEE9"
885
+ }
886
+ }, {
887
+ "name": "[JavaScript] Variable Other Read-Write Alias",
888
+ "scope": "source.js variable.other.readwrite.alias",
889
+ "settings": {
890
+ "foreground": "#8FBCBB"
891
+ }
892
+ }, {
893
+ "name": "[JavaScript] Parentheses in Template Strings",
894
+ "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"],
895
+ "settings": {
896
+ "foreground": "#ECEFF4"
897
+ }
898
+ }, {
899
+ "name": "[HTML] Constant Character Entity",
900
+ "scope": "text.html.basic constant.character.entity.html",
901
+ "settings": {
902
+ "foreground": "#EBCB8B"
903
+ }
904
+ }, {
905
+ "name": "[HTML] Constant Other Inline-Data",
906
+ "scope": "text.html.basic constant.other.inline-data",
907
+ "settings": {
908
+ "foreground": "#D08770",
909
+ "fontStyle": "italic"
910
+ }
911
+ }, {
912
+ "name": "[HTML] Meta Tag SGML Doctype",
913
+ "scope": "text.html.basic meta.tag.sgml.doctype",
914
+ "settings": {
915
+ "foreground": "#5E81AC"
916
+ }
917
+ }, {
918
+ "name": "[HTML] Punctuation Definition Entity",
919
+ "scope": "text.html.basic punctuation.definition.entity",
920
+ "settings": {
921
+ "foreground": "#81A1C1"
922
+ }
923
+ }, {
924
+ "name": "[INI] Entity Name Section Group-Title",
925
+ "scope": "source.properties entity.name.section.group-title.ini",
926
+ "settings": {
927
+ "foreground": "#88C0D0"
928
+ }
929
+ }, {
930
+ "name": "[INI] Punctuation Separator Key-Value",
931
+ "scope": "source.properties punctuation.separator.key-value.ini",
932
+ "settings": {
933
+ "foreground": "#81A1C1"
934
+ }
935
+ }, {
936
+ "name": "[Markdown] Markup Fenced Code Block",
937
+ "scope": ["text.html.markdown markup.fenced_code.block", "text.html.markdown markup.fenced_code.block punctuation.definition"],
938
+ "settings": {
939
+ "foreground": "#8FBCBB"
940
+ }
941
+ }, {
942
+ "name": "[Markdown] Markup Heading",
943
+ "scope": "markup.heading",
944
+ "settings": {
945
+ "foreground": "#88C0D0"
946
+ }
947
+ }, {
948
+ "name": "[Markdown] Markup Inline",
949
+ "scope": ["text.html.markdown markup.inline.raw", "text.html.markdown markup.inline.raw punctuation.definition.raw"],
950
+ "settings": {
951
+ "foreground": "#8FBCBB"
952
+ }
953
+ }, {
954
+ "name": "[Markdown] Markup Italic",
955
+ "scope": "text.html.markdown markup.italic",
956
+ "settings": {
957
+ "fontStyle": "italic"
958
+ }
959
+ }, {
960
+ "name": "[Markdown] Markup Link",
961
+ "scope": "text.html.markdown markup.underline.link",
962
+ "settings": {
963
+ "fontStyle": "underline"
964
+ }
965
+ }, {
966
+ "name": "[Markdown] Markup List Numbered/Unnumbered",
967
+ "scope": "text.html.markdown beginning.punctuation.definition.list",
968
+ "settings": {
969
+ "foreground": "#81A1C1"
970
+ }
971
+ }, {
972
+ "name": "[Markdown] Markup Quote Punctuation Definition",
973
+ "scope": "text.html.markdown beginning.punctuation.definition.quote",
974
+ "settings": {
975
+ "foreground": "#8FBCBB"
976
+ }
977
+ }, {
978
+ "name": "[Markdown] Markup Quote Punctuation Definition",
979
+ "scope": "text.html.markdown markup.quote",
980
+ "settings": {
981
+ "foreground": "#616E88"
982
+ }
983
+ }, {
984
+ "name": "[Markdown] Markup Math Constant",
985
+ "scope": "text.html.markdown constant.character.math.tex",
986
+ "settings": {
987
+ "foreground": "#81A1C1"
988
+ }
989
+ }, {
990
+ "name": "[Markdown] Markup Math Definition Marker",
991
+ "scope": ["text.html.markdown punctuation.definition.math.begin", "text.html.markdown punctuation.definition.math.end"],
992
+ "settings": {
993
+ "foreground": "#5E81AC"
994
+ }
995
+ }, {
996
+ "name": "[Markdown] Markup Math Function Definition Marker",
997
+ "scope": "text.html.markdown punctuation.definition.function.math.tex",
998
+ "settings": {
999
+ "foreground": "#88C0D0"
1000
+ }
1001
+ }, {
1002
+ "name": "[Markdown] Markup Math Operator",
1003
+ "scope": "text.html.markdown punctuation.math.operator.latex",
1004
+ "settings": {
1005
+ "foreground": "#81A1C1"
1006
+ }
1007
+ }, {
1008
+ "name": "[Markdown] Punctuation Definition Heading",
1009
+ "scope": "text.html.markdown punctuation.definition.heading",
1010
+ "settings": {
1011
+ "foreground": "#81A1C1"
1012
+ }
1013
+ }, {
1014
+ "name": "[Markdown] Punctuation Definition Constant/String",
1015
+ "scope": ["text.html.markdown punctuation.definition.constant", "text.html.markdown punctuation.definition.string"],
1016
+ "settings": {
1017
+ "foreground": "#81A1C1"
1018
+ }
1019
+ }, {
1020
+ "name": "[Markdown] String Other Link Description/Title",
1021
+ "scope": ["text.html.markdown constant.other.reference.link", "text.html.markdown string.other.link.description", "text.html.markdown string.other.link.title"],
1022
+ "settings": {
1023
+ "foreground": "#88C0D0"
1024
+ }
1025
+ }, {
1026
+ "name": "[Perl] Perl Sigils",
1027
+ "scope": "source.perl punctuation.definition.variable",
1028
+ "settings": {
1029
+ "foreground": "#D8DEE9"
1030
+ }
1031
+ }, {
1032
+ "name": "[PHP] Meta Function-Call Object",
1033
+ "scope": ["source.php meta.function-call", "source.php meta.function-call.object"],
1034
+ "settings": {
1035
+ "foreground": "#88C0D0"
1036
+ }
1037
+ }, {
1038
+ "name": "[Python] Decorator",
1039
+ "scope": ["source.python entity.name.function.decorator", "source.python meta.function.decorator support.type"],
1040
+ "settings": {
1041
+ "foreground": "#D08770"
1042
+ }
1043
+ }, {
1044
+ "name": "[Python] Function Call",
1045
+ "scope": "source.python meta.function-call.generic",
1046
+ "settings": {
1047
+ "foreground": "#88C0D0"
1048
+ }
1049
+ }, {
1050
+ "name": "[Python] Support Type",
1051
+ "scope": "source.python support.type",
1052
+ "settings": {
1053
+ "foreground": "#88C0D0"
1054
+ }
1055
+ }, {
1056
+ "name": "[Python] Function Parameter",
1057
+ "scope": ["source.python variable.parameter.function.language"],
1058
+ "settings": {
1059
+ "foreground": "#D8DEE9"
1060
+ }
1061
+ }, {
1062
+ "name": "[Python] Function Parameter Special",
1063
+ "scope": ["source.python meta.function.parameters variable.parameter.function.language.special.self"],
1064
+ "settings": {
1065
+ "foreground": "#81A1C1"
1066
+ }
1067
+ }, {
1068
+ "name": "[Rust] Entity types",
1069
+ "scope": "source.rust entity.name.type",
1070
+ "settings": {
1071
+ "foreground": "#8FBCBB"
1072
+ }
1073
+ }, {
1074
+ "name": "[Rust] Macro",
1075
+ "scope": "source.rust meta.macro entity.name.function",
1076
+ "settings": {
1077
+ "fontStyle": "bold",
1078
+ "foreground": "#88C0D0"
1079
+ }
1080
+ }, {
1081
+ "name": "[Rust] Attributes",
1082
+ "scope": ["source.rust meta.attribute", "source.rust meta.attribute punctuation", "source.rust meta.attribute keyword.operator"],
1083
+ "settings": {
1084
+ "foreground": "#5E81AC"
1085
+ }
1086
+ }, {
1087
+ "name": "[Rust] Traits",
1088
+ "scope": "source.rust entity.name.type.trait",
1089
+ "settings": {
1090
+ "fontStyle": "bold"
1091
+ }
1092
+ }, {
1093
+ "name": "[Rust] Interpolation Bracket Curly",
1094
+ "scope": "source.rust punctuation.definition.interpolation",
1095
+ "settings": {
1096
+ "foreground": "#EBCB8B"
1097
+ }
1098
+ }, {
1099
+ "name": "[SCSS] Punctuation Definition Interpolation Bracket Curly",
1100
+ "scope": ["source.css.scss punctuation.definition.interpolation.begin.bracket.curly", "source.css.scss punctuation.definition.interpolation.end.bracket.curly"],
1101
+ "settings": {
1102
+ "foreground": "#81A1C1"
1103
+ }
1104
+ }, {
1105
+ "name": "[SCSS] Variable Interpolation",
1106
+ "scope": "source.css.scss variable.interpolation",
1107
+ "settings": {
1108
+ "foreground": "#D8DEE9",
1109
+ "fontStyle": "italic"
1110
+ }
1111
+ }, {
1112
+ "name": "[TypeScript] Decorators",
1113
+ "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"],
1114
+ "settings": {
1115
+ "foreground": "#D08770"
1116
+ }
1117
+ }, {
1118
+ "name": "[TypeScript] Object-literal keys",
1119
+ "scope": ["source.ts meta.object-literal.key", "source.tsx meta.object-literal.key"],
1120
+ "settings": {
1121
+ "foreground": "#D8DEE9"
1122
+ }
1123
+ }, {
1124
+ "name": "[TypeScript] Object-literal functions",
1125
+ "scope": ["source.ts meta.object-literal.key entity.name.function", "source.tsx meta.object-literal.key entity.name.function"],
1126
+ "settings": {
1127
+ "foreground": "#88C0D0"
1128
+ }
1129
+ }, {
1130
+ "name": "[TypeScript] Type/Class",
1131
+ "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"],
1132
+ "settings": {
1133
+ "foreground": "#8FBCBB"
1134
+ }
1135
+ }, {
1136
+ "name": "[TypeScript] Static Class Support",
1137
+ "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"],
1138
+ "settings": {
1139
+ "foreground": "#8FBCBB"
1140
+ }
1141
+ }, {
1142
+ "name": "[TypeScript] Variables",
1143
+ "scope": ["source.ts support.variable", "source.tsx support.variable"],
1144
+ "settings": {
1145
+ "foreground": "#D8DEE9"
1146
+ }
1147
+ }, {
1148
+ "name": "[TypeScript] Parentheses in Template Strings",
1149
+ "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"],
1150
+ "settings": {
1151
+ "foreground": "#ECEFF4"
1152
+ }
1153
+ }, {
1154
+ "name": "[XML] Entity Name Tag Namespace",
1155
+ "scope": "text.xml entity.name.tag.namespace",
1156
+ "settings": {
1157
+ "foreground": "#8FBCBB"
1158
+ }
1159
+ }, {
1160
+ "name": "[XML] Keyword Other Doctype",
1161
+ "scope": "text.xml keyword.other.doctype",
1162
+ "settings": {
1163
+ "foreground": "#5E81AC"
1164
+ }
1165
+ }, {
1166
+ "name": "[XML] Meta Tag Preprocessor",
1167
+ "scope": "text.xml meta.tag.preprocessor entity.name.tag",
1168
+ "settings": {
1169
+ "foreground": "#5E81AC"
1170
+ }
1171
+ }, {
1172
+ "name": "[XML] Entity Name Tag Namespace",
1173
+ "scope": ["text.xml string.unquoted.cdata", "text.xml string.unquoted.cdata punctuation.definition.string"],
1174
+ "settings": {
1175
+ "foreground": "#D08770",
1176
+ "fontStyle": "italic"
1177
+ }
1178
+ }, {
1179
+ "name": "[YAML] Entity Name Tag",
1180
+ "scope": "source.yaml entity.name.tag",
1181
+ "settings": {
1182
+ "foreground": "#8FBCBB"
1183
+ }
1184
+ }]
1185
+ },
1186
+ "autoImport": true,
1187
+ "showCopyButton": true,
1188
+ "skipLanguages": [],
1189
+ "filepath": "/Users/bytedance/modern.js/website/module-tools/docs/zh/plugins/guide/getting-started.mdx"
1190
+ };
1191
+ var frontmatter = {
1192
+ "sidebar_position": 1
1193
+ };
1194
+ var toc = [];
1195
+ var title = "\u5FEB\u901F\u5F00\u59CB";
1196
+ var content = "\"---\\nsidebar_position: 1\\n---\\n\\n# 快速开始\\n\\n模块工程解决方案不仅提供了丰富的功能,同时也支持通过插件的方式为当前项目扩展能力。\\n\\n我们可以通过下面的例子来快速了解如果编写一个 module-tools 插件:\\n\\n<CH.Spotlight>\\n\\n```md ./project\\n./\\n├── plugins\\n│ └── example.ts\\n├── src/\\n└── modern.config.ts\\n```\\n\\n---\\n\\n首先我们在初始化的项目下创建 `./plugins/example.ts` 文件。\\n\\n```md ./project\\n\\n```\\n\\n---\\n\\n接着在 `example.ts` 文件中增加插件的代码。\\n\\n```ts\\nimport type { CliPlugin, ModuleTools } from '@modern-js/module-tools';\\n\\nexport const ExamplePlugin = (): CliPlugin<ModuleTools> => {\\n return {\\n name: 'example',\\n setup() {\\n console.info('this is example plugin');\\n return {\\n // use hooks\\n afterBuild() {\\n console.info('build over');\\n }\\n };\\n };\\n };\\n};\\n```\\n\\n---\\n\\n然后我们通过 [`plugins`](/api/config/plugins) API,将刚刚写好的插件进行注册。\\n\\n```ts ./modern.config.ts\\nimport { ExamplePlugin } from './plugins/example';\\nexport default defineConfig({\\n plugins: [ExamplePlugin()],\\n});\\n```\\n\\n---\\n\\n最后运行 `modern build`,就可以看到。\\n\\n```bash terminal\\nthis is example plugin\\nBuild succeed: 510.684ms\\nbuild over\\n```\\n\\n</CH.Spotlight>\\n\\n通过上面这个例子,我们了解到了下面几件事:\\n\\n- 推荐的插件目录结构\\n- 插件的初始化代码\\n- 插件的注册\\n\\n除了以上内容以外,我们还需要了解:\\n\\n- [插件对象、类型定义与推荐配置项](/plugins/guide/plugin-object)\\n- [setup 函数、`api` 对象参数、生命周期钩子](/plugins/guide/setup-function)\\n\"";
1197
+ function _createMdxContent(props) {
1198
+ var _components = Object.assign({
1199
+ h1: "h1",
1200
+ a: "a",
1201
+ p: "p",
1202
+ code: "code",
1203
+ ul: "ul",
1204
+ li: "li"
1205
+ }, props.components);
1206
+ if (!CH) _missingMdxReference("CH", false, "11:1-73:16");
1207
+ if (!CH.CodeSlot) _missingMdxReference("CH.CodeSlot", true);
1208
+ if (!CH.Spotlight) _missingMdxReference("CH.Spotlight", true, "11:1-73:16");
1209
+ return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1210
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1211
+ id: "快速开始",
1212
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1213
+ className: "header-anchor",
1214
+ "aria-hidden": "true",
1215
+ href: "#快速开始",
1216
+ children: "#"
1217
+ }), "快速开始"]
1218
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1219
+ children: "模块工程解决方案不仅提供了丰富的功能,同时也支持通过插件的方式为当前项目扩展能力。"
1220
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1221
+ children: "我们可以通过下面的例子来快速了解如果编写一个 module-tools 插件:"
1222
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(CH.Spotlight, {
1223
+ codeConfig: chCodeConfig,
1224
+ editorSteps: [{
1225
+ "northPanel": {
1226
+ "tabs": ["./project"],
1227
+ "active": "./project",
1228
+ "heightRatio": 1
1229
+ },
1230
+ "files": [{
1231
+ "name": "./project",
1232
+ "focus": "",
1233
+ "code": {
1234
+ "lines": [{
1235
+ "tokens": [{
1236
+ "content": "./",
1237
+ "props": {
1238
+ "style": {
1239
+ "color": "#D8DEE9FF"
1240
+ }
1241
+ }
1242
+ }]
1243
+ }, {
1244
+ "tokens": [{
1245
+ "content": "├── plugins",
1246
+ "props": {
1247
+ "style": {
1248
+ "color": "#D8DEE9FF"
1249
+ }
1250
+ }
1251
+ }]
1252
+ }, {
1253
+ "tokens": [{
1254
+ "content": "│ └── example.ts",
1255
+ "props": {
1256
+ "style": {
1257
+ "color": "#D8DEE9FF"
1258
+ }
1259
+ }
1260
+ }]
1261
+ }, {
1262
+ "tokens": [{
1263
+ "content": "├── src/",
1264
+ "props": {
1265
+ "style": {
1266
+ "color": "#D8DEE9FF"
1267
+ }
1268
+ }
1269
+ }]
1270
+ }, {
1271
+ "tokens": [{
1272
+ "content": "└── modern.config.ts",
1273
+ "props": {
1274
+ "style": {
1275
+ "color": "#D8DEE9FF"
1276
+ }
1277
+ }
1278
+ }]
1279
+ }],
1280
+ "lang": "md"
1281
+ },
1282
+ "annotations": []
1283
+ }]
1284
+ }, {
1285
+ "northPanel": {
1286
+ "tabs": ["./project"],
1287
+ "active": "./project",
1288
+ "heightRatio": 1
1289
+ },
1290
+ "files": [{
1291
+ "name": "./project",
1292
+ "focus": "",
1293
+ "code": {
1294
+ "lines": [{
1295
+ "tokens": [{
1296
+ "content": "./",
1297
+ "props": {
1298
+ "style": {
1299
+ "color": "#D8DEE9FF"
1300
+ }
1301
+ }
1302
+ }]
1303
+ }, {
1304
+ "tokens": [{
1305
+ "content": "├── plugins",
1306
+ "props": {
1307
+ "style": {
1308
+ "color": "#D8DEE9FF"
1309
+ }
1310
+ }
1311
+ }]
1312
+ }, {
1313
+ "tokens": [{
1314
+ "content": "│ └── example.ts",
1315
+ "props": {
1316
+ "style": {
1317
+ "color": "#D8DEE9FF"
1318
+ }
1319
+ }
1320
+ }]
1321
+ }, {
1322
+ "tokens": [{
1323
+ "content": "├── src/",
1324
+ "props": {
1325
+ "style": {
1326
+ "color": "#D8DEE9FF"
1327
+ }
1328
+ }
1329
+ }]
1330
+ }, {
1331
+ "tokens": [{
1332
+ "content": "└── modern.config.ts",
1333
+ "props": {
1334
+ "style": {
1335
+ "color": "#D8DEE9FF"
1336
+ }
1337
+ }
1338
+ }]
1339
+ }],
1340
+ "lang": "md"
1341
+ },
1342
+ "annotations": []
1343
+ }],
1344
+ "southPanel": undefined
1345
+ }, {
1346
+ "northPanel": {
1347
+ "tabs": ["./project", ""],
1348
+ "active": "",
1349
+ "heightRatio": 1
1350
+ },
1351
+ "files": [{
1352
+ "name": "./project",
1353
+ "focus": "",
1354
+ "code": {
1355
+ "lines": [{
1356
+ "tokens": [{
1357
+ "content": "./",
1358
+ "props": {
1359
+ "style": {
1360
+ "color": "#D8DEE9FF"
1361
+ }
1362
+ }
1363
+ }]
1364
+ }, {
1365
+ "tokens": [{
1366
+ "content": "├── plugins",
1367
+ "props": {
1368
+ "style": {
1369
+ "color": "#D8DEE9FF"
1370
+ }
1371
+ }
1372
+ }]
1373
+ }, {
1374
+ "tokens": [{
1375
+ "content": "│ └── example.ts",
1376
+ "props": {
1377
+ "style": {
1378
+ "color": "#D8DEE9FF"
1379
+ }
1380
+ }
1381
+ }]
1382
+ }, {
1383
+ "tokens": [{
1384
+ "content": "├── src/",
1385
+ "props": {
1386
+ "style": {
1387
+ "color": "#D8DEE9FF"
1388
+ }
1389
+ }
1390
+ }]
1391
+ }, {
1392
+ "tokens": [{
1393
+ "content": "└── modern.config.ts",
1394
+ "props": {
1395
+ "style": {
1396
+ "color": "#D8DEE9FF"
1397
+ }
1398
+ }
1399
+ }]
1400
+ }],
1401
+ "lang": "md"
1402
+ },
1403
+ "annotations": []
1404
+ }, {
1405
+ "name": "",
1406
+ "focus": "",
1407
+ "code": {
1408
+ "lines": [{
1409
+ "tokens": [{
1410
+ "content": "import",
1411
+ "props": {
1412
+ "style": {
1413
+ "color": "#81A1C1"
1414
+ }
1415
+ }
1416
+ }, {
1417
+ "content": " ",
1418
+ "props": {
1419
+ "style": {
1420
+ "color": "#D8DEE9FF"
1421
+ }
1422
+ }
1423
+ }, {
1424
+ "content": "type",
1425
+ "props": {
1426
+ "style": {
1427
+ "color": "#81A1C1"
1428
+ }
1429
+ }
1430
+ }, {
1431
+ "content": " ",
1432
+ "props": {
1433
+ "style": {
1434
+ "color": "#D8DEE9FF"
1435
+ }
1436
+ }
1437
+ }, {
1438
+ "content": "{",
1439
+ "props": {
1440
+ "style": {
1441
+ "color": "#ECEFF4"
1442
+ }
1443
+ }
1444
+ }, {
1445
+ "content": " ",
1446
+ "props": {
1447
+ "style": {
1448
+ "color": "#D8DEE9FF"
1449
+ }
1450
+ }
1451
+ }, {
1452
+ "content": "CliPlugin",
1453
+ "props": {
1454
+ "style": {
1455
+ "color": "#D8DEE9"
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
+ "content": "ModuleTools",
1474
+ "props": {
1475
+ "style": {
1476
+ "color": "#D8DEE9"
1477
+ }
1478
+ }
1479
+ }, {
1480
+ "content": " ",
1481
+ "props": {
1482
+ "style": {
1483
+ "color": "#D8DEE9FF"
1484
+ }
1485
+ }
1486
+ }, {
1487
+ "content": "}",
1488
+ "props": {
1489
+ "style": {
1490
+ "color": "#ECEFF4"
1491
+ }
1492
+ }
1493
+ }, {
1494
+ "content": " ",
1495
+ "props": {
1496
+ "style": {
1497
+ "color": "#D8DEE9FF"
1498
+ }
1499
+ }
1500
+ }, {
1501
+ "content": "from",
1502
+ "props": {
1503
+ "style": {
1504
+ "color": "#81A1C1"
1505
+ }
1506
+ }
1507
+ }, {
1508
+ "content": " ",
1509
+ "props": {
1510
+ "style": {
1511
+ "color": "#D8DEE9FF"
1512
+ }
1513
+ }
1514
+ }, {
1515
+ "content": "'",
1516
+ "props": {
1517
+ "style": {
1518
+ "color": "#ECEFF4"
1519
+ }
1520
+ }
1521
+ }, {
1522
+ "content": "@modern-js/module-tools",
1523
+ "props": {
1524
+ "style": {
1525
+ "color": "#A3BE8C"
1526
+ }
1527
+ }
1528
+ }, {
1529
+ "content": "'",
1530
+ "props": {
1531
+ "style": {
1532
+ "color": "#ECEFF4"
1533
+ }
1534
+ }
1535
+ }, {
1536
+ "content": ";",
1537
+ "props": {
1538
+ "style": {
1539
+ "color": "#81A1C1"
1540
+ }
1541
+ }
1542
+ }]
1543
+ }, {
1544
+ "tokens": []
1545
+ }, {
1546
+ "tokens": [{
1547
+ "content": "export",
1548
+ "props": {
1549
+ "style": {
1550
+ "color": "#81A1C1"
1551
+ }
1552
+ }
1553
+ }, {
1554
+ "content": " ",
1555
+ "props": {
1556
+ "style": {
1557
+ "color": "#D8DEE9FF"
1558
+ }
1559
+ }
1560
+ }, {
1561
+ "content": "const",
1562
+ "props": {
1563
+ "style": {
1564
+ "color": "#81A1C1"
1565
+ }
1566
+ }
1567
+ }, {
1568
+ "content": " ",
1569
+ "props": {
1570
+ "style": {
1571
+ "color": "#D8DEE9FF"
1572
+ }
1573
+ }
1574
+ }, {
1575
+ "content": "ExamplePlugin",
1576
+ "props": {
1577
+ "style": {
1578
+ "color": "#88C0D0"
1579
+ }
1580
+ }
1581
+ }, {
1582
+ "content": " ",
1583
+ "props": {
1584
+ "style": {
1585
+ "color": "#D8DEE9FF"
1586
+ }
1587
+ }
1588
+ }, {
1589
+ "content": "=",
1590
+ "props": {
1591
+ "style": {
1592
+ "color": "#81A1C1"
1593
+ }
1594
+ }
1595
+ }, {
1596
+ "content": " ",
1597
+ "props": {
1598
+ "style": {
1599
+ "color": "#D8DEE9FF"
1600
+ }
1601
+ }
1602
+ }, {
1603
+ "content": "()",
1604
+ "props": {
1605
+ "style": {
1606
+ "color": "#ECEFF4"
1607
+ }
1608
+ }
1609
+ }, {
1610
+ "content": ":",
1611
+ "props": {
1612
+ "style": {
1613
+ "color": "#81A1C1"
1614
+ }
1615
+ }
1616
+ }, {
1617
+ "content": " ",
1618
+ "props": {
1619
+ "style": {
1620
+ "color": "#D8DEE9FF"
1621
+ }
1622
+ }
1623
+ }, {
1624
+ "content": "CliPlugin",
1625
+ "props": {
1626
+ "style": {
1627
+ "color": "#8FBCBB"
1628
+ }
1629
+ }
1630
+ }, {
1631
+ "content": "<",
1632
+ "props": {
1633
+ "style": {
1634
+ "color": "#ECEFF4"
1635
+ }
1636
+ }
1637
+ }, {
1638
+ "content": "ModuleTools",
1639
+ "props": {
1640
+ "style": {
1641
+ "color": "#8FBCBB"
1642
+ }
1643
+ }
1644
+ }, {
1645
+ "content": ">",
1646
+ "props": {
1647
+ "style": {
1648
+ "color": "#ECEFF4"
1649
+ }
1650
+ }
1651
+ }, {
1652
+ "content": " ",
1653
+ "props": {
1654
+ "style": {
1655
+ "color": "#D8DEE9FF"
1656
+ }
1657
+ }
1658
+ }, {
1659
+ "content": "=>",
1660
+ "props": {
1661
+ "style": {
1662
+ "color": "#81A1C1"
1663
+ }
1664
+ }
1665
+ }, {
1666
+ "content": " ",
1667
+ "props": {
1668
+ "style": {
1669
+ "color": "#D8DEE9FF"
1670
+ }
1671
+ }
1672
+ }, {
1673
+ "content": "{",
1674
+ "props": {
1675
+ "style": {
1676
+ "color": "#ECEFF4"
1677
+ }
1678
+ }
1679
+ }]
1680
+ }, {
1681
+ "tokens": [{
1682
+ "content": " ",
1683
+ "props": {
1684
+ "style": {
1685
+ "color": "#D8DEE9FF"
1686
+ }
1687
+ }
1688
+ }, {
1689
+ "content": "return",
1690
+ "props": {
1691
+ "style": {
1692
+ "color": "#81A1C1"
1693
+ }
1694
+ }
1695
+ }, {
1696
+ "content": " ",
1697
+ "props": {
1698
+ "style": {
1699
+ "color": "#D8DEE9FF"
1700
+ }
1701
+ }
1702
+ }, {
1703
+ "content": "{",
1704
+ "props": {
1705
+ "style": {
1706
+ "color": "#ECEFF4"
1707
+ }
1708
+ }
1709
+ }]
1710
+ }, {
1711
+ "tokens": [{
1712
+ "content": " ",
1713
+ "props": {
1714
+ "style": {
1715
+ "color": "#D8DEE9FF"
1716
+ }
1717
+ }
1718
+ }, {
1719
+ "content": "name",
1720
+ "props": {
1721
+ "style": {
1722
+ "color": "#D8DEE9"
1723
+ }
1724
+ }
1725
+ }, {
1726
+ "content": ":",
1727
+ "props": {
1728
+ "style": {
1729
+ "color": "#ECEFF4"
1730
+ }
1731
+ }
1732
+ }, {
1733
+ "content": " ",
1734
+ "props": {
1735
+ "style": {
1736
+ "color": "#D8DEE9FF"
1737
+ }
1738
+ }
1739
+ }, {
1740
+ "content": "'",
1741
+ "props": {
1742
+ "style": {
1743
+ "color": "#ECEFF4"
1744
+ }
1745
+ }
1746
+ }, {
1747
+ "content": "example",
1748
+ "props": {
1749
+ "style": {
1750
+ "color": "#A3BE8C"
1751
+ }
1752
+ }
1753
+ }, {
1754
+ "content": "'",
1755
+ "props": {
1756
+ "style": {
1757
+ "color": "#ECEFF4"
1758
+ }
1759
+ }
1760
+ }, {
1761
+ "content": ",",
1762
+ "props": {
1763
+ "style": {
1764
+ "color": "#ECEFF4"
1765
+ }
1766
+ }
1767
+ }]
1768
+ }, {
1769
+ "tokens": [{
1770
+ "content": " ",
1771
+ "props": {
1772
+ "style": {
1773
+ "color": "#D8DEE9FF"
1774
+ }
1775
+ }
1776
+ }, {
1777
+ "content": "setup",
1778
+ "props": {
1779
+ "style": {
1780
+ "color": "#88C0D0"
1781
+ }
1782
+ }
1783
+ }, {
1784
+ "content": "()",
1785
+ "props": {
1786
+ "style": {
1787
+ "color": "#ECEFF4"
1788
+ }
1789
+ }
1790
+ }, {
1791
+ "content": " ",
1792
+ "props": {
1793
+ "style": {
1794
+ "color": "#D8DEE9FF"
1795
+ }
1796
+ }
1797
+ }, {
1798
+ "content": "{",
1799
+ "props": {
1800
+ "style": {
1801
+ "color": "#ECEFF4"
1802
+ }
1803
+ }
1804
+ }]
1805
+ }, {
1806
+ "tokens": [{
1807
+ "content": " ",
1808
+ "props": {
1809
+ "style": {
1810
+ "color": "#D8DEE9FF"
1811
+ }
1812
+ }
1813
+ }, {
1814
+ "content": "console",
1815
+ "props": {
1816
+ "style": {
1817
+ "color": "#D8DEE9"
1818
+ }
1819
+ }
1820
+ }, {
1821
+ "content": ".",
1822
+ "props": {
1823
+ "style": {
1824
+ "color": "#ECEFF4"
1825
+ }
1826
+ }
1827
+ }, {
1828
+ "content": "info",
1829
+ "props": {
1830
+ "style": {
1831
+ "color": "#88C0D0"
1832
+ }
1833
+ }
1834
+ }, {
1835
+ "content": "(",
1836
+ "props": {
1837
+ "style": {
1838
+ "color": "#D8DEE9FF"
1839
+ }
1840
+ }
1841
+ }, {
1842
+ "content": "'",
1843
+ "props": {
1844
+ "style": {
1845
+ "color": "#ECEFF4"
1846
+ }
1847
+ }
1848
+ }, {
1849
+ "content": "this is example plugin",
1850
+ "props": {
1851
+ "style": {
1852
+ "color": "#A3BE8C"
1853
+ }
1854
+ }
1855
+ }, {
1856
+ "content": "'",
1857
+ "props": {
1858
+ "style": {
1859
+ "color": "#ECEFF4"
1860
+ }
1861
+ }
1862
+ }, {
1863
+ "content": ")",
1864
+ "props": {
1865
+ "style": {
1866
+ "color": "#D8DEE9FF"
1867
+ }
1868
+ }
1869
+ }, {
1870
+ "content": ";",
1871
+ "props": {
1872
+ "style": {
1873
+ "color": "#81A1C1"
1874
+ }
1875
+ }
1876
+ }]
1877
+ }, {
1878
+ "tokens": [{
1879
+ "content": " ",
1880
+ "props": {
1881
+ "style": {
1882
+ "color": "#D8DEE9FF"
1883
+ }
1884
+ }
1885
+ }, {
1886
+ "content": "return",
1887
+ "props": {
1888
+ "style": {
1889
+ "color": "#81A1C1"
1890
+ }
1891
+ }
1892
+ }, {
1893
+ "content": " ",
1894
+ "props": {
1895
+ "style": {
1896
+ "color": "#D8DEE9FF"
1897
+ }
1898
+ }
1899
+ }, {
1900
+ "content": "{",
1901
+ "props": {
1902
+ "style": {
1903
+ "color": "#ECEFF4"
1904
+ }
1905
+ }
1906
+ }]
1907
+ }, {
1908
+ "tokens": [{
1909
+ "content": " ",
1910
+ "props": {
1911
+ "style": {
1912
+ "color": "#ECEFF4"
1913
+ }
1914
+ }
1915
+ }, {
1916
+ "content": "// use hooks",
1917
+ "props": {
1918
+ "style": {
1919
+ "color": "#616E88"
1920
+ }
1921
+ }
1922
+ }]
1923
+ }, {
1924
+ "tokens": [{
1925
+ "content": " ",
1926
+ "props": {
1927
+ "style": {
1928
+ "color": "#D8DEE9FF"
1929
+ }
1930
+ }
1931
+ }, {
1932
+ "content": "afterBuild",
1933
+ "props": {
1934
+ "style": {
1935
+ "color": "#88C0D0"
1936
+ }
1937
+ }
1938
+ }, {
1939
+ "content": "()",
1940
+ "props": {
1941
+ "style": {
1942
+ "color": "#ECEFF4"
1943
+ }
1944
+ }
1945
+ }, {
1946
+ "content": " ",
1947
+ "props": {
1948
+ "style": {
1949
+ "color": "#D8DEE9FF"
1950
+ }
1951
+ }
1952
+ }, {
1953
+ "content": "{",
1954
+ "props": {
1955
+ "style": {
1956
+ "color": "#ECEFF4"
1957
+ }
1958
+ }
1959
+ }]
1960
+ }, {
1961
+ "tokens": [{
1962
+ "content": " ",
1963
+ "props": {
1964
+ "style": {
1965
+ "color": "#D8DEE9FF"
1966
+ }
1967
+ }
1968
+ }, {
1969
+ "content": "console",
1970
+ "props": {
1971
+ "style": {
1972
+ "color": "#D8DEE9"
1973
+ }
1974
+ }
1975
+ }, {
1976
+ "content": ".",
1977
+ "props": {
1978
+ "style": {
1979
+ "color": "#ECEFF4"
1980
+ }
1981
+ }
1982
+ }, {
1983
+ "content": "info",
1984
+ "props": {
1985
+ "style": {
1986
+ "color": "#88C0D0"
1987
+ }
1988
+ }
1989
+ }, {
1990
+ "content": "(",
1991
+ "props": {
1992
+ "style": {
1993
+ "color": "#D8DEE9FF"
1994
+ }
1995
+ }
1996
+ }, {
1997
+ "content": "'",
1998
+ "props": {
1999
+ "style": {
2000
+ "color": "#ECEFF4"
2001
+ }
2002
+ }
2003
+ }, {
2004
+ "content": "build over",
2005
+ "props": {
2006
+ "style": {
2007
+ "color": "#A3BE8C"
2008
+ }
2009
+ }
2010
+ }, {
2011
+ "content": "'",
2012
+ "props": {
2013
+ "style": {
2014
+ "color": "#ECEFF4"
2015
+ }
2016
+ }
2017
+ }, {
2018
+ "content": ")",
2019
+ "props": {
2020
+ "style": {
2021
+ "color": "#D8DEE9FF"
2022
+ }
2023
+ }
2024
+ }, {
2025
+ "content": ";",
2026
+ "props": {
2027
+ "style": {
2028
+ "color": "#81A1C1"
2029
+ }
2030
+ }
2031
+ }]
2032
+ }, {
2033
+ "tokens": [{
2034
+ "content": " ",
2035
+ "props": {
2036
+ "style": {
2037
+ "color": "#D8DEE9FF"
2038
+ }
2039
+ }
2040
+ }, {
2041
+ "content": "}",
2042
+ "props": {
2043
+ "style": {
2044
+ "color": "#ECEFF4"
2045
+ }
2046
+ }
2047
+ }]
2048
+ }, {
2049
+ "tokens": [{
2050
+ "content": " ",
2051
+ "props": {
2052
+ "style": {
2053
+ "color": "#D8DEE9FF"
2054
+ }
2055
+ }
2056
+ }, {
2057
+ "content": "}",
2058
+ "props": {
2059
+ "style": {
2060
+ "color": "#ECEFF4"
2061
+ }
2062
+ }
2063
+ }, {
2064
+ "content": ";",
2065
+ "props": {
2066
+ "style": {
2067
+ "color": "#81A1C1"
2068
+ }
2069
+ }
2070
+ }]
2071
+ }, {
2072
+ "tokens": [{
2073
+ "content": " ",
2074
+ "props": {
2075
+ "style": {
2076
+ "color": "#D8DEE9FF"
2077
+ }
2078
+ }
2079
+ }, {
2080
+ "content": "}",
2081
+ "props": {
2082
+ "style": {
2083
+ "color": "#ECEFF4"
2084
+ }
2085
+ }
2086
+ }, {
2087
+ "content": ";",
2088
+ "props": {
2089
+ "style": {
2090
+ "color": "#D8DEE9FF"
2091
+ }
2092
+ }
2093
+ }]
2094
+ }, {
2095
+ "tokens": [{
2096
+ "content": " ",
2097
+ "props": {
2098
+ "style": {
2099
+ "color": "#D8DEE9FF"
2100
+ }
2101
+ }
2102
+ }, {
2103
+ "content": "}",
2104
+ "props": {
2105
+ "style": {
2106
+ "color": "#ECEFF4"
2107
+ }
2108
+ }
2109
+ }, {
2110
+ "content": ";",
2111
+ "props": {
2112
+ "style": {
2113
+ "color": "#81A1C1"
2114
+ }
2115
+ }
2116
+ }]
2117
+ }, {
2118
+ "tokens": [{
2119
+ "content": "}",
2120
+ "props": {
2121
+ "style": {
2122
+ "color": "#ECEFF4"
2123
+ }
2124
+ }
2125
+ }, {
2126
+ "content": ";",
2127
+ "props": {
2128
+ "style": {
2129
+ "color": "#81A1C1"
2130
+ }
2131
+ }
2132
+ }]
2133
+ }],
2134
+ "lang": "ts"
2135
+ },
2136
+ "annotations": []
2137
+ }],
2138
+ "southPanel": undefined
2139
+ }, {
2140
+ "northPanel": {
2141
+ "tabs": ["./project", "./modern.config.ts"],
2142
+ "active": "./modern.config.ts",
2143
+ "heightRatio": 1
2144
+ },
2145
+ "files": [{
2146
+ "name": "./project",
2147
+ "focus": "",
2148
+ "code": {
2149
+ "lines": [{
2150
+ "tokens": [{
2151
+ "content": "./",
2152
+ "props": {
2153
+ "style": {
2154
+ "color": "#D8DEE9FF"
2155
+ }
2156
+ }
2157
+ }]
2158
+ }, {
2159
+ "tokens": [{
2160
+ "content": "├── plugins",
2161
+ "props": {
2162
+ "style": {
2163
+ "color": "#D8DEE9FF"
2164
+ }
2165
+ }
2166
+ }]
2167
+ }, {
2168
+ "tokens": [{
2169
+ "content": "│ └── example.ts",
2170
+ "props": {
2171
+ "style": {
2172
+ "color": "#D8DEE9FF"
2173
+ }
2174
+ }
2175
+ }]
2176
+ }, {
2177
+ "tokens": [{
2178
+ "content": "├── src/",
2179
+ "props": {
2180
+ "style": {
2181
+ "color": "#D8DEE9FF"
2182
+ }
2183
+ }
2184
+ }]
2185
+ }, {
2186
+ "tokens": [{
2187
+ "content": "└── modern.config.ts",
2188
+ "props": {
2189
+ "style": {
2190
+ "color": "#D8DEE9FF"
2191
+ }
2192
+ }
2193
+ }]
2194
+ }],
2195
+ "lang": "md"
2196
+ },
2197
+ "annotations": []
2198
+ }, {
2199
+ "name": "./modern.config.ts",
2200
+ "focus": "",
2201
+ "code": {
2202
+ "lines": [{
2203
+ "tokens": [{
2204
+ "content": "import",
2205
+ "props": {
2206
+ "style": {
2207
+ "color": "#81A1C1"
2208
+ }
2209
+ }
2210
+ }, {
2211
+ "content": " ",
2212
+ "props": {
2213
+ "style": {
2214
+ "color": "#D8DEE9FF"
2215
+ }
2216
+ }
2217
+ }, {
2218
+ "content": "{",
2219
+ "props": {
2220
+ "style": {
2221
+ "color": "#ECEFF4"
2222
+ }
2223
+ }
2224
+ }, {
2225
+ "content": " ",
2226
+ "props": {
2227
+ "style": {
2228
+ "color": "#D8DEE9FF"
2229
+ }
2230
+ }
2231
+ }, {
2232
+ "content": "ExamplePlugin",
2233
+ "props": {
2234
+ "style": {
2235
+ "color": "#D8DEE9"
2236
+ }
2237
+ }
2238
+ }, {
2239
+ "content": " ",
2240
+ "props": {
2241
+ "style": {
2242
+ "color": "#D8DEE9FF"
2243
+ }
2244
+ }
2245
+ }, {
2246
+ "content": "}",
2247
+ "props": {
2248
+ "style": {
2249
+ "color": "#ECEFF4"
2250
+ }
2251
+ }
2252
+ }, {
2253
+ "content": " ",
2254
+ "props": {
2255
+ "style": {
2256
+ "color": "#D8DEE9FF"
2257
+ }
2258
+ }
2259
+ }, {
2260
+ "content": "from",
2261
+ "props": {
2262
+ "style": {
2263
+ "color": "#81A1C1"
2264
+ }
2265
+ }
2266
+ }, {
2267
+ "content": " ",
2268
+ "props": {
2269
+ "style": {
2270
+ "color": "#D8DEE9FF"
2271
+ }
2272
+ }
2273
+ }, {
2274
+ "content": "'",
2275
+ "props": {
2276
+ "style": {
2277
+ "color": "#ECEFF4"
2278
+ }
2279
+ }
2280
+ }, {
2281
+ "content": "./plugins/example",
2282
+ "props": {
2283
+ "style": {
2284
+ "color": "#A3BE8C"
2285
+ }
2286
+ }
2287
+ }, {
2288
+ "content": "'",
2289
+ "props": {
2290
+ "style": {
2291
+ "color": "#ECEFF4"
2292
+ }
2293
+ }
2294
+ }, {
2295
+ "content": ";",
2296
+ "props": {
2297
+ "style": {
2298
+ "color": "#81A1C1"
2299
+ }
2300
+ }
2301
+ }]
2302
+ }, {
2303
+ "tokens": [{
2304
+ "content": "export",
2305
+ "props": {
2306
+ "style": {
2307
+ "color": "#81A1C1"
2308
+ }
2309
+ }
2310
+ }, {
2311
+ "content": " ",
2312
+ "props": {
2313
+ "style": {
2314
+ "color": "#D8DEE9FF"
2315
+ }
2316
+ }
2317
+ }, {
2318
+ "content": "default",
2319
+ "props": {
2320
+ "style": {
2321
+ "color": "#81A1C1"
2322
+ }
2323
+ }
2324
+ }, {
2325
+ "content": " ",
2326
+ "props": {
2327
+ "style": {
2328
+ "color": "#D8DEE9FF"
2329
+ }
2330
+ }
2331
+ }, {
2332
+ "content": "defineConfig",
2333
+ "props": {
2334
+ "style": {
2335
+ "color": "#88C0D0"
2336
+ }
2337
+ }
2338
+ }, {
2339
+ "content": "(",
2340
+ "props": {
2341
+ "style": {
2342
+ "color": "#D8DEE9FF"
2343
+ }
2344
+ }
2345
+ }, {
2346
+ "content": "{",
2347
+ "props": {
2348
+ "style": {
2349
+ "color": "#ECEFF4"
2350
+ }
2351
+ }
2352
+ }]
2353
+ }, {
2354
+ "tokens": [{
2355
+ "content": " ",
2356
+ "props": {
2357
+ "style": {
2358
+ "color": "#D8DEE9FF"
2359
+ }
2360
+ }
2361
+ }, {
2362
+ "content": "plugins",
2363
+ "props": {
2364
+ "style": {
2365
+ "color": "#D8DEE9"
2366
+ }
2367
+ }
2368
+ }, {
2369
+ "content": ":",
2370
+ "props": {
2371
+ "style": {
2372
+ "color": "#ECEFF4"
2373
+ }
2374
+ }
2375
+ }, {
2376
+ "content": " [",
2377
+ "props": {
2378
+ "style": {
2379
+ "color": "#D8DEE9FF"
2380
+ }
2381
+ }
2382
+ }, {
2383
+ "content": "ExamplePlugin",
2384
+ "props": {
2385
+ "style": {
2386
+ "color": "#88C0D0"
2387
+ }
2388
+ }
2389
+ }, {
2390
+ "content": "()]",
2391
+ "props": {
2392
+ "style": {
2393
+ "color": "#D8DEE9FF"
2394
+ }
2395
+ }
2396
+ }, {
2397
+ "content": ",",
2398
+ "props": {
2399
+ "style": {
2400
+ "color": "#ECEFF4"
2401
+ }
2402
+ }
2403
+ }]
2404
+ }, {
2405
+ "tokens": [{
2406
+ "content": "}",
2407
+ "props": {
2408
+ "style": {
2409
+ "color": "#ECEFF4"
2410
+ }
2411
+ }
2412
+ }, {
2413
+ "content": ")",
2414
+ "props": {
2415
+ "style": {
2416
+ "color": "#D8DEE9FF"
2417
+ }
2418
+ }
2419
+ }, {
2420
+ "content": ";",
2421
+ "props": {
2422
+ "style": {
2423
+ "color": "#81A1C1"
2424
+ }
2425
+ }
2426
+ }]
2427
+ }],
2428
+ "lang": "ts"
2429
+ },
2430
+ "annotations": []
2431
+ }],
2432
+ "southPanel": undefined
2433
+ }, {
2434
+ "northPanel": {
2435
+ "tabs": ["./project", "terminal"],
2436
+ "active": "terminal",
2437
+ "heightRatio": 1
2438
+ },
2439
+ "files": [{
2440
+ "name": "./project",
2441
+ "focus": "",
2442
+ "code": {
2443
+ "lines": [{
2444
+ "tokens": [{
2445
+ "content": "./",
2446
+ "props": {
2447
+ "style": {
2448
+ "color": "#D8DEE9FF"
2449
+ }
2450
+ }
2451
+ }]
2452
+ }, {
2453
+ "tokens": [{
2454
+ "content": "├── plugins",
2455
+ "props": {
2456
+ "style": {
2457
+ "color": "#D8DEE9FF"
2458
+ }
2459
+ }
2460
+ }]
2461
+ }, {
2462
+ "tokens": [{
2463
+ "content": "│ └── example.ts",
2464
+ "props": {
2465
+ "style": {
2466
+ "color": "#D8DEE9FF"
2467
+ }
2468
+ }
2469
+ }]
2470
+ }, {
2471
+ "tokens": [{
2472
+ "content": "├── src/",
2473
+ "props": {
2474
+ "style": {
2475
+ "color": "#D8DEE9FF"
2476
+ }
2477
+ }
2478
+ }]
2479
+ }, {
2480
+ "tokens": [{
2481
+ "content": "└── modern.config.ts",
2482
+ "props": {
2483
+ "style": {
2484
+ "color": "#D8DEE9FF"
2485
+ }
2486
+ }
2487
+ }]
2488
+ }],
2489
+ "lang": "md"
2490
+ },
2491
+ "annotations": []
2492
+ }, {
2493
+ "name": "terminal",
2494
+ "focus": "",
2495
+ "code": {
2496
+ "lines": [{
2497
+ "tokens": [{
2498
+ "content": "this is example plugin",
2499
+ "props": {
2500
+ "style": {
2501
+ "color": "#D8DEE9FF"
2502
+ }
2503
+ }
2504
+ }]
2505
+ }, {
2506
+ "tokens": [{
2507
+ "content": "Build succeed: 510.684ms",
2508
+ "props": {
2509
+ "style": {
2510
+ "color": "#D8DEE9FF"
2511
+ }
2512
+ }
2513
+ }]
2514
+ }, {
2515
+ "tokens": [{
2516
+ "content": "build over",
2517
+ "props": {
2518
+ "style": {
2519
+ "color": "#D8DEE9FF"
2520
+ }
2521
+ }
2522
+ }]
2523
+ }],
2524
+ "lang": "bash"
2525
+ },
2526
+ "annotations": []
2527
+ }],
2528
+ "southPanel": undefined
2529
+ }],
2530
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2531
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})
2532
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2533
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2534
+ children: ["首先我们在初始化的项目下创建 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2535
+ children: "./plugins/example.ts"
2536
+ }), " 文件。"]
2537
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2538
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2539
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2540
+ children: ["接着在 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2541
+ children: "example.ts"
2542
+ }), " 文件中增加插件的代码。"]
2543
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2544
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2545
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2546
+ children: ["然后我们通过 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2547
+ href: "/api/config/plugins.html",
2548
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2549
+ children: "plugins"
2550
+ })
2551
+ }), " API,将刚刚写好的插件进行注册。"]
2552
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2553
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
2554
+ children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2555
+ children: ["最后运行 ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2556
+ children: "modern build"
2557
+ }), ",就可以看到。"]
2558
+ }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.CodeSlot, {})]
2559
+ })]
2560
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2561
+ children: "通过上面这个例子,我们了解到了下面几件事:"
2562
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2563
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2564
+ children: "推荐的插件目录结构"
2565
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2566
+ children: "插件的初始化代码"
2567
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2568
+ children: "插件的注册"
2569
+ }), "\n"]
2570
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2571
+ children: "除了以上内容以外,我们还需要了解:"
2572
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2573
+ children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2574
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2575
+ href: "/plugins/guide/plugin-object.html",
2576
+ children: "插件对象、类型定义与推荐配置项"
2577
+ })
2578
+ }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2579
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.a, {
2580
+ href: "/plugins/guide/setup-function.html",
2581
+ children: ["setup 函数、", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2582
+ children: "api"
2583
+ }), " 对象参数、生命周期钩子"]
2584
+ })
2585
+ }), "\n"]
2586
+ })]
2587
+ });
2588
+ }
2589
+ function MDXContent() {
2590
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2591
+ var _ref = props.components || {},
2592
+ MDXLayout = _ref.wrapper;
2593
+ return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
2594
+ children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
2595
+ })) : _createMdxContent(props);
2596
+ }
2597
+ _c = MDXContent;
2598
+ /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
2599
+ function _missingMdxReference(id, component, place) {
2600
+ throw new Error("Expected " + (component ? "component" : "object") + " `" + id + "` to be defined: you likely forgot to import, pass, or provide it." + (place ? "\nIt’s referenced in your code at `" + place + "` in `/Users/bytedance/modern.js/website/module-tools/docs/zh/plugins/guide/getting-started.mdx`" : ""));
2601
+ }
2602
+ var _c;
2603
+ __webpack_require__.$Refresh$.register(_c, "MDXContent");
2604
+
2605
+ /***/ })
2606
+
2607
+ }]);
2608
+ //# sourceMappingURL=plugins_guide_getting-started.js.map