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

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 (162) hide show
  1. package/docs/en/api/config/build-preset.md +14 -14
  2. package/docs/en/api/plugin-api/plugin-hooks.md +2 -10
  3. package/docs/en/guide/advance/in-depth-about-dev-command.md +0 -9
  4. package/docs/en/guide/basic/command-preview.md +1 -1
  5. package/docs/en/guide/basic/using-storybook.mdx +28 -6
  6. package/docs/en/guide/intro/getting-started.md +1 -1
  7. package/docs/en/index.md +14 -8
  8. package/docs/en/plugins/guide/getting-started.mdx +1 -1
  9. package/docs/zh/api/config/build-preset.md +14 -14
  10. package/docs/zh/api/plugin-api/plugin-hooks.md +2 -10
  11. package/docs/zh/guide/advance/in-depth-about-dev-command.md +0 -8
  12. package/docs/zh/guide/basic/command-preview.md +1 -1
  13. package/docs/zh/guide/basic/using-storybook.mdx +28 -5
  14. package/docs/zh/index.md +16 -10
  15. package/docs/zh/plugins/guide/getting-started.mdx +1 -1
  16. package/modern.config.ts +4 -6
  17. package/package.json +4 -4
  18. package/doc_build/html/main/index.html +0 -16
  19. package/doc_build/route.json +0 -10
  20. package/doc_build/static/css/main.css +0 -2977
  21. package/doc_build/static/css/main.css.map +0 -1
  22. 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 +0 -68
  23. 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 +0 -1
  24. package/doc_build/static/js/async/en_api_config_build-config.js +0 -8406
  25. package/doc_build/static/js/async/en_api_config_build-config.js.map +0 -1
  26. package/doc_build/static/js/async/en_api_config_build-preset.js +0 -7865
  27. package/doc_build/static/js/async/en_api_config_build-preset.js.map +0 -1
  28. package/doc_build/static/js/async/en_api_config_design-system.js +0 -47805
  29. package/doc_build/static/js/async/en_api_config_design-system.js.map +0 -1
  30. package/doc_build/static/js/async/en_api_config_plugins.js +0 -1488
  31. package/doc_build/static/js/async/en_api_config_plugins.js.map +0 -1
  32. package/doc_build/static/js/async/en_api_config_testing.js +0 -2139
  33. package/doc_build/static/js/async/en_api_config_testing.js.map +0 -1
  34. package/doc_build/static/js/async/en_api_index.js +0 -51
  35. package/doc_build/static/js/async/en_api_index.js.map +0 -1
  36. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js +0 -14360
  37. package/doc_build/static/js/async/en_api_plugin-api_plugin-hooks.js.map +0 -1
  38. package/doc_build/static/js/async/en_guide_advance_asset.js +0 -3972
  39. package/doc_build/static/js/async/en_guide_advance_asset.js.map +0 -1
  40. package/doc_build/static/js/async/en_guide_advance_build-umd.js +0 -9857
  41. package/doc_build/static/js/async/en_guide_advance_build-umd.js.map +0 -1
  42. package/doc_build/static/js/async/en_guide_advance_copy.js +0 -6541
  43. package/doc_build/static/js/async/en_guide_advance_copy.js.map +0 -1
  44. package/doc_build/static/js/async/en_guide_advance_external-dependency.js +0 -3806
  45. package/doc_build/static/js/async/en_guide_advance_external-dependency.js.map +0 -1
  46. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js +0 -5304
  47. package/doc_build/static/js/async/en_guide_advance_in-depth-about-build.js.map +0 -1
  48. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js +0 -2526
  49. package/doc_build/static/js/async/en_guide_advance_in-depth-about-dev-command.js.map +0 -1
  50. package/doc_build/static/js/async/en_guide_advance_theme-config.js +0 -2486
  51. package/doc_build/static/js/async/en_guide_advance_theme-config.js.map +0 -1
  52. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js +0 -3720
  53. package/doc_build/static/js/async/en_guide_basic_before-getting-started.js.map +0 -1
  54. package/doc_build/static/js/async/en_guide_basic_command-preview.js +0 -3973
  55. package/doc_build/static/js/async/en_guide_basic_command-preview.js.map +0 -1
  56. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js +0 -3137
  57. package/doc_build/static/js/async/en_guide_basic_modify-output-product.js.map +0 -1
  58. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js +0 -2180
  59. package/doc_build/static/js/async/en_guide_basic_publish-your-project.js.map +0 -1
  60. package/doc_build/static/js/async/en_guide_basic_test-your-project.js +0 -3887
  61. package/doc_build/static/js/async/en_guide_basic_test-your-project.js.map +0 -1
  62. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js +0 -2973
  63. package/doc_build/static/js/async/en_guide_basic_use-micro-generator.js.map +0 -1
  64. package/doc_build/static/js/async/en_guide_basic_using-storybook.js +0 -4723
  65. package/doc_build/static/js/async/en_guide_basic_using-storybook.js.map +0 -1
  66. package/doc_build/static/js/async/en_guide_best-practices_components.js +0 -21400
  67. package/doc_build/static/js/async/en_guide_best-practices_components.js.map +0 -1
  68. package/doc_build/static/js/async/en_guide_intro_getting-started.js +0 -2149
  69. package/doc_build/static/js/async/en_guide_intro_getting-started.js.map +0 -1
  70. package/doc_build/static/js/async/en_guide_intro_welcome.js +0 -162
  71. package/doc_build/static/js/async/en_guide_intro_welcome.js.map +0 -1
  72. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js +0 -96
  73. package/doc_build/static/js/async/en_guide_intro_why-module-engineering-solution.js.map +0 -1
  74. package/doc_build/static/js/async/en_index.js +0 -81
  75. package/doc_build/static/js/async/en_index.js.map +0 -1
  76. package/doc_build/static/js/async/en_plugins_guide_getting-started.js +0 -2556
  77. package/doc_build/static/js/async/en_plugins_guide_getting-started.js.map +0 -1
  78. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js +0 -4173
  79. package/doc_build/static/js/async/en_plugins_guide_plugin-object.js.map +0 -1
  80. package/doc_build/static/js/async/en_plugins_guide_setup-function.js +0 -3815
  81. package/doc_build/static/js/async/en_plugins_guide_setup-function.js.map +0 -1
  82. package/doc_build/static/js/async/en_plugins_official-list_overview.js +0 -66
  83. package/doc_build/static/js/async/en_plugins_official-list_overview.js.map +0 -1
  84. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js +0 -246
  85. package/doc_build/static/js/async/packages_cli_doc-core_src_theme-default_components_Search_logic_search_ts.js.map +0 -1
  86. 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 +0 -6656
  87. 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 +0 -1
  88. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js +0 -54
  89. package/doc_build/static/js/async/vendors-node_modules_pnpm_flexsearch_0_6_32_node_modules_flexsearch_dist_flexsearch_min_js.js.map +0 -1
  90. package/doc_build/static/js/async/zh_api_config_build-config.js +0 -11354
  91. package/doc_build/static/js/async/zh_api_config_build-config.js.map +0 -1
  92. package/doc_build/static/js/async/zh_api_config_build-preset.js +0 -7867
  93. package/doc_build/static/js/async/zh_api_config_build-preset.js.map +0 -1
  94. package/doc_build/static/js/async/zh_api_config_design-system.js +0 -48712
  95. package/doc_build/static/js/async/zh_api_config_design-system.js.map +0 -1
  96. package/doc_build/static/js/async/zh_api_config_plugins.js +0 -1488
  97. package/doc_build/static/js/async/zh_api_config_plugins.js.map +0 -1
  98. package/doc_build/static/js/async/zh_api_config_testing.js +0 -2132
  99. package/doc_build/static/js/async/zh_api_config_testing.js.map +0 -1
  100. package/doc_build/static/js/async/zh_api_index.js +0 -52
  101. package/doc_build/static/js/async/zh_api_index.js.map +0 -1
  102. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js +0 -14392
  103. package/doc_build/static/js/async/zh_api_plugin-api_plugin-hooks.js.map +0 -1
  104. package/doc_build/static/js/async/zh_guide_advance_asset.js +0 -3972
  105. package/doc_build/static/js/async/zh_guide_advance_asset.js.map +0 -1
  106. package/doc_build/static/js/async/zh_guide_advance_build-umd.js +0 -9859
  107. package/doc_build/static/js/async/zh_guide_advance_build-umd.js.map +0 -1
  108. package/doc_build/static/js/async/zh_guide_advance_copy.js +0 -6541
  109. package/doc_build/static/js/async/zh_guide_advance_copy.js.map +0 -1
  110. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js +0 -3808
  111. package/doc_build/static/js/async/zh_guide_advance_external-dependency.js.map +0 -1
  112. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js +0 -5304
  113. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-build.js.map +0 -1
  114. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js +0 -2526
  115. package/doc_build/static/js/async/zh_guide_advance_in-depth-about-dev-command.js.map +0 -1
  116. package/doc_build/static/js/async/zh_guide_advance_theme-config.js +0 -2477
  117. package/doc_build/static/js/async/zh_guide_advance_theme-config.js.map +0 -1
  118. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js +0 -3711
  119. package/doc_build/static/js/async/zh_guide_basic_before-getting-started.js.map +0 -1
  120. package/doc_build/static/js/async/zh_guide_basic_command-preview.js +0 -3805
  121. package/doc_build/static/js/async/zh_guide_basic_command-preview.js.map +0 -1
  122. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js +0 -3142
  123. package/doc_build/static/js/async/zh_guide_basic_modify-output-product.js.map +0 -1
  124. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js +0 -2241
  125. package/doc_build/static/js/async/zh_guide_basic_publish-your-project.js.map +0 -1
  126. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js +0 -4286
  127. package/doc_build/static/js/async/zh_guide_basic_test-your-project.js.map +0 -1
  128. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js +0 -2979
  129. package/doc_build/static/js/async/zh_guide_basic_use-micro-generator.js.map +0 -1
  130. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js +0 -4760
  131. package/doc_build/static/js/async/zh_guide_basic_using-storybook.js.map +0 -1
  132. package/doc_build/static/js/async/zh_guide_best-practices_components.js +0 -21100
  133. package/doc_build/static/js/async/zh_guide_best-practices_components.js.map +0 -1
  134. package/doc_build/static/js/async/zh_guide_intro_getting-started.js +0 -2031
  135. package/doc_build/static/js/async/zh_guide_intro_getting-started.js.map +0 -1
  136. package/doc_build/static/js/async/zh_guide_intro_welcome.js +0 -162
  137. package/doc_build/static/js/async/zh_guide_intro_welcome.js.map +0 -1
  138. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js +0 -96
  139. package/doc_build/static/js/async/zh_guide_intro_why-module-engineering-solution.js.map +0 -1
  140. package/doc_build/static/js/async/zh_index.js +0 -81
  141. package/doc_build/static/js/async/zh_index.js.map +0 -1
  142. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js +0 -2604
  143. package/doc_build/static/js/async/zh_plugins_guide_getting-started.js.map +0 -1
  144. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js +0 -4169
  145. package/doc_build/static/js/async/zh_plugins_guide_plugin-object.js.map +0 -1
  146. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js +0 -3815
  147. package/doc_build/static/js/async/zh_plugins_guide_setup-function.js.map +0 -1
  148. package/doc_build/static/js/async/zh_plugins_official-list_overview.js +0 -66
  149. package/doc_build/static/js/async/zh_plugins_official-list_overview.js.map +0 -1
  150. package/doc_build/static/js/builder-runtime.js +0 -1375
  151. package/doc_build/static/js/builder-runtime.js.map +0 -1
  152. package/doc_build/static/js/lib-lodash.js +0 -4907
  153. package/doc_build/static/js/lib-lodash.js.map +0 -1
  154. package/doc_build/static/js/lib-polyfill.js +0 -11847
  155. package/doc_build/static/js/lib-polyfill.js.map +0 -1
  156. package/doc_build/static/js/lib-react.js +0 -39510
  157. package/doc_build/static/js/lib-react.js.map +0 -1
  158. package/doc_build/static/js/main.js +0 -8610
  159. package/doc_build/static/js/main.js.map +0 -1
  160. 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 +0 -7328
  161. 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 +0 -1
  162. package/doc_build/static/search_index.json +0 -1
@@ -1,2973 +0,0 @@
1
- "use strict";
2
- (self["webpackChunk_modern_js_module_tools_docs"] = self["webpackChunk_modern_js_module_tools_docs"] || []).push([["en_guide_basic_use-micro-generator"],{
3
-
4
- /***/ "./docs/en/guide/basic/use-micro-generator.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/en/guide/basic/use-micro-generator.md"
1189
- };
1190
- const frontmatter = {
1191
- "sidebar_position": 4
1192
- };
1193
- const toc = [{
1194
- "id": "test",
1195
- "text": "Test",
1196
- "depth": 2
1197
- }, {
1198
- "id": "storybook",
1199
- "text": "Storybook",
1200
- "depth": 2
1201
- }, {
1202
- "id": "tailwind-css-support",
1203
- "text": "Tailwind CSS support",
1204
- "depth": 2
1205
- }, {
1206
- "id": "modernjs-runtime-api",
1207
- "text": "Modern.js Runtime API",
1208
- "depth": 2
1209
- }];
1210
- const title = `Using the Microgenerator`;
1211
- const content = "\"---\\nsidebar_position: 4\\n---\\n\\n# Using the Microgenerator\\n\\nThe Module Engineering solution provides the Microgenerator tool, which allows for the current project to.\\n\\n- add new directories and files\\n- Modify the contents of the `package.json` file\\n- Execute commands\\n\\nThus with these capabilities, **Microgenerator can enable additional feature functionality for the project**.\\n\\nThe microgenerator can be started via [`modern new`](/guide/basic/command-preview). The current Microgenerator features supported by the Module Engineering program are:\\n\\n## Test\\n\\nWhen we want to test some modules, we can enable the test feature. When this feature is enabled, **a `tests` directory and related files will be created in the project directory, and a new `\\\"@modern-js/plugin-testing\\\"` dependency will be added to package.json**.\\n\\n\\n:::tip\\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration.\\n``` ts\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\nimport testPlugin from '@modern-js/plugin-testing';\\n\\nexport default defineConfig({\\n plugins: [\\n moduleTools(),\\n testPlugin(),\\n ],\\n});\\n```\\n:::\\n\\n## Storybook\\n\\nThe **Storybook feature** can be enabled when we want to debug a component or a common module. When this feature is enabled, **the `stories` directory and related files are created in the project directory, and a new `\\\"@modern-js/plugin-storybook\\\"` dependency is added to package.json**.\\n\\n:::tip\\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration.\\n``` ts\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\nimport storybookPlugin from '@modern-js/plugin-storybook';\\n\\nexport default defineConfig({\\n plugins: [\\n moduleTools(),\\n storybookPlugin(),\\n ],\\n});\\n```\\n:::\\n\\nFor more information on how to start Storybook and how to use it, check out the following link.\\n\\n- [`modern dev`](/en/guide/basic/command-preview#modern-dev)\\n- [`using Storybook`](/en/guide/basic/using-storybook)\\n\\n## Tailwind CSS support\\n\\nThis can be enabled when we want to add [Tailwind CSS](https://v2.tailwindcss.com/) support to our project. Tailwind CSS is a CSS library that provides out-of-the-box styling.\\n\\nFor more information on how to use Tailwind CSS in your module projects, check out.\\n\\n<!-- 链接待补充 -->\\n\\n- Using Tailwind CSS\\n\\n:::tip\\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration.\\n``` ts\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\nimport tailwindPlugin from '@modern-js/plugin-tailwindcss';\\n\\nexport default defineConfig({\\n plugins: [\\n moduleTools(),\\n tailwindPlugin(),\\n ],\\n});\\n```\\n:::\\n\\n## Modern.js Runtime API\\n\\n<!-- 链接待补充 -->\\n\\n**Modern.js provides Runtime API capabilities that can only be used in the Modern.js application project environment**. If you need to develop a component for use in a Modern.js application environment, then you can turn on this feature and the microgenerator will add the `\\\"@modern-js/runtime\\\"` dependency.\\n\\nAlso, the Storybook debugging tool will determine if the project needs to use the Runtime API by checking the project's dependencies and providing the same Runtime API runtime environment as the Modern.js application project.\\n\\n:::tip\\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration.\\n``` ts\\nimport moduleTools, { defineConfig } from '@modern-js/module-tools';\\nimport runtime from '@modern-js/runtime/cli';\\n\\nexport default defineConfig({\\n plugins: [\\n moduleTools(),\\n runtime(),\\n ],\\n});\\n```\\n:::\\n\"";
1212
- function _createMdxContent(props) {
1213
- const _components = Object.assign({
1214
- h1: "h1",
1215
- a: "a",
1216
- p: "p",
1217
- ul: "ul",
1218
- li: "li",
1219
- code: "code",
1220
- strong: "strong",
1221
- h2: "h2",
1222
- div: "div"
1223
- }, props.components);
1224
- if (!CH) _missingMdxReference("CH", false, "24:1-34:4");
1225
- if (!CH.Code) _missingMdxReference("CH.Code", true, "24:1-34:4");
1226
- return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {
1227
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h1, {
1228
- id: "using-the-microgenerator",
1229
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1230
- className: "header-anchor",
1231
- "aria-hidden": "true",
1232
- href: "#using-the-microgenerator",
1233
- children: "#"
1234
- }), "Using the Microgenerator"]
1235
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1236
- children: "The Module Engineering solution provides the Microgenerator tool, which allows for the current project to."
1237
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
1238
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1239
- children: "add new directories and files"
1240
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.li, {
1241
- children: ["Modify the contents of the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1242
- children: "package.json"
1243
- }), " file"]
1244
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
1245
- children: "Execute commands"
1246
- }), "\n"]
1247
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1248
- children: ["Thus with these capabilities, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1249
- children: "Microgenerator can enable additional feature functionality for the project"
1250
- }), "."]
1251
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1252
- children: ["The microgenerator can be started via ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1253
- href: "/module-tools/en/guide/basic/command-preview.html",
1254
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1255
- children: "modern new"
1256
- })
1257
- }), ". The current Microgenerator features supported by the Module Engineering program are:"]
1258
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1259
- id: "test",
1260
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1261
- className: "header-anchor",
1262
- "aria-hidden": "true",
1263
- href: "#test",
1264
- children: "#"
1265
- }), "Test"]
1266
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1267
- children: ["When we want to test some modules, we can enable the test feature. When this feature is enabled, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
1268
- children: ["a ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1269
- children: "tests"
1270
- }), " directory and related files will be created in the project directory, and a new ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1271
- children: "\"@modern-js/plugin-testing\""
1272
- }), " dependency will be added to package.json"]
1273
- }), "."]
1274
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1275
- className: "modern-directive tip",
1276
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1277
- className: "modern-directive-title",
1278
- children: "TIP"
1279
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1280
- className: "modern-directive-content",
1281
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1282
- children: "\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration."
1283
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1284
- codeConfig: chCodeConfig,
1285
- northPanel: {
1286
- "tabs": [""],
1287
- "active": "",
1288
- "heightRatio": 1
1289
- },
1290
- files: [{
1291
- "name": "",
1292
- "focus": "",
1293
- "code": {
1294
- "lines": [{
1295
- "tokens": [{
1296
- "content": "import",
1297
- "props": {
1298
- "style": {
1299
- "color": "#81A1C1"
1300
- }
1301
- }
1302
- }, {
1303
- "content": " ",
1304
- "props": {
1305
- "style": {
1306
- "color": "#D8DEE9FF"
1307
- }
1308
- }
1309
- }, {
1310
- "content": "moduleTools",
1311
- "props": {
1312
- "style": {
1313
- "color": "#D8DEE9"
1314
- }
1315
- }
1316
- }, {
1317
- "content": ",",
1318
- "props": {
1319
- "style": {
1320
- "color": "#ECEFF4"
1321
- }
1322
- }
1323
- }, {
1324
- "content": " ",
1325
- "props": {
1326
- "style": {
1327
- "color": "#D8DEE9FF"
1328
- }
1329
- }
1330
- }, {
1331
- "content": "{",
1332
- "props": {
1333
- "style": {
1334
- "color": "#ECEFF4"
1335
- }
1336
- }
1337
- }, {
1338
- "content": " ",
1339
- "props": {
1340
- "style": {
1341
- "color": "#D8DEE9FF"
1342
- }
1343
- }
1344
- }, {
1345
- "content": "defineConfig",
1346
- "props": {
1347
- "style": {
1348
- "color": "#D8DEE9"
1349
- }
1350
- }
1351
- }, {
1352
- "content": " ",
1353
- "props": {
1354
- "style": {
1355
- "color": "#D8DEE9FF"
1356
- }
1357
- }
1358
- }, {
1359
- "content": "}",
1360
- "props": {
1361
- "style": {
1362
- "color": "#ECEFF4"
1363
- }
1364
- }
1365
- }, {
1366
- "content": " ",
1367
- "props": {
1368
- "style": {
1369
- "color": "#D8DEE9FF"
1370
- }
1371
- }
1372
- }, {
1373
- "content": "from",
1374
- "props": {
1375
- "style": {
1376
- "color": "#81A1C1"
1377
- }
1378
- }
1379
- }, {
1380
- "content": " ",
1381
- "props": {
1382
- "style": {
1383
- "color": "#D8DEE9FF"
1384
- }
1385
- }
1386
- }, {
1387
- "content": "'",
1388
- "props": {
1389
- "style": {
1390
- "color": "#ECEFF4"
1391
- }
1392
- }
1393
- }, {
1394
- "content": "@modern-js/module-tools",
1395
- "props": {
1396
- "style": {
1397
- "color": "#A3BE8C"
1398
- }
1399
- }
1400
- }, {
1401
- "content": "'",
1402
- "props": {
1403
- "style": {
1404
- "color": "#ECEFF4"
1405
- }
1406
- }
1407
- }, {
1408
- "content": ";",
1409
- "props": {
1410
- "style": {
1411
- "color": "#81A1C1"
1412
- }
1413
- }
1414
- }]
1415
- }, {
1416
- "tokens": [{
1417
- "content": "import",
1418
- "props": {
1419
- "style": {
1420
- "color": "#81A1C1"
1421
- }
1422
- }
1423
- }, {
1424
- "content": " ",
1425
- "props": {
1426
- "style": {
1427
- "color": "#D8DEE9FF"
1428
- }
1429
- }
1430
- }, {
1431
- "content": "testPlugin",
1432
- "props": {
1433
- "style": {
1434
- "color": "#D8DEE9"
1435
- }
1436
- }
1437
- }, {
1438
- "content": " ",
1439
- "props": {
1440
- "style": {
1441
- "color": "#D8DEE9FF"
1442
- }
1443
- }
1444
- }, {
1445
- "content": "from",
1446
- "props": {
1447
- "style": {
1448
- "color": "#81A1C1"
1449
- }
1450
- }
1451
- }, {
1452
- "content": " ",
1453
- "props": {
1454
- "style": {
1455
- "color": "#D8DEE9FF"
1456
- }
1457
- }
1458
- }, {
1459
- "content": "'",
1460
- "props": {
1461
- "style": {
1462
- "color": "#ECEFF4"
1463
- }
1464
- }
1465
- }, {
1466
- "content": "@modern-js/plugin-testing",
1467
- "props": {
1468
- "style": {
1469
- "color": "#A3BE8C"
1470
- }
1471
- }
1472
- }, {
1473
- "content": "'",
1474
- "props": {
1475
- "style": {
1476
- "color": "#ECEFF4"
1477
- }
1478
- }
1479
- }, {
1480
- "content": ";",
1481
- "props": {
1482
- "style": {
1483
- "color": "#81A1C1"
1484
- }
1485
- }
1486
- }]
1487
- }, {
1488
- "tokens": []
1489
- }, {
1490
- "tokens": [{
1491
- "content": "export",
1492
- "props": {
1493
- "style": {
1494
- "color": "#81A1C1"
1495
- }
1496
- }
1497
- }, {
1498
- "content": " ",
1499
- "props": {
1500
- "style": {
1501
- "color": "#D8DEE9FF"
1502
- }
1503
- }
1504
- }, {
1505
- "content": "default",
1506
- "props": {
1507
- "style": {
1508
- "color": "#81A1C1"
1509
- }
1510
- }
1511
- }, {
1512
- "content": " ",
1513
- "props": {
1514
- "style": {
1515
- "color": "#D8DEE9FF"
1516
- }
1517
- }
1518
- }, {
1519
- "content": "defineConfig",
1520
- "props": {
1521
- "style": {
1522
- "color": "#88C0D0"
1523
- }
1524
- }
1525
- }, {
1526
- "content": "(",
1527
- "props": {
1528
- "style": {
1529
- "color": "#D8DEE9FF"
1530
- }
1531
- }
1532
- }, {
1533
- "content": "{",
1534
- "props": {
1535
- "style": {
1536
- "color": "#ECEFF4"
1537
- }
1538
- }
1539
- }]
1540
- }, {
1541
- "tokens": [{
1542
- "content": " ",
1543
- "props": {
1544
- "style": {
1545
- "color": "#D8DEE9FF"
1546
- }
1547
- }
1548
- }, {
1549
- "content": "plugins",
1550
- "props": {
1551
- "style": {
1552
- "color": "#D8DEE9"
1553
- }
1554
- }
1555
- }, {
1556
- "content": ":",
1557
- "props": {
1558
- "style": {
1559
- "color": "#ECEFF4"
1560
- }
1561
- }
1562
- }, {
1563
- "content": " [",
1564
- "props": {
1565
- "style": {
1566
- "color": "#D8DEE9FF"
1567
- }
1568
- }
1569
- }]
1570
- }, {
1571
- "tokens": [{
1572
- "content": " ",
1573
- "props": {
1574
- "style": {
1575
- "color": "#D8DEE9FF"
1576
- }
1577
- }
1578
- }, {
1579
- "content": "moduleTools",
1580
- "props": {
1581
- "style": {
1582
- "color": "#88C0D0"
1583
- }
1584
- }
1585
- }, {
1586
- "content": "()",
1587
- "props": {
1588
- "style": {
1589
- "color": "#D8DEE9FF"
1590
- }
1591
- }
1592
- }, {
1593
- "content": ",",
1594
- "props": {
1595
- "style": {
1596
- "color": "#ECEFF4"
1597
- }
1598
- }
1599
- }]
1600
- }, {
1601
- "tokens": [{
1602
- "content": " ",
1603
- "props": {
1604
- "style": {
1605
- "color": "#D8DEE9FF"
1606
- }
1607
- }
1608
- }, {
1609
- "content": "testPlugin",
1610
- "props": {
1611
- "style": {
1612
- "color": "#88C0D0"
1613
- }
1614
- }
1615
- }, {
1616
- "content": "()",
1617
- "props": {
1618
- "style": {
1619
- "color": "#D8DEE9FF"
1620
- }
1621
- }
1622
- }, {
1623
- "content": ",",
1624
- "props": {
1625
- "style": {
1626
- "color": "#ECEFF4"
1627
- }
1628
- }
1629
- }]
1630
- }, {
1631
- "tokens": [{
1632
- "content": " ]",
1633
- "props": {
1634
- "style": {
1635
- "color": "#D8DEE9FF"
1636
- }
1637
- }
1638
- }, {
1639
- "content": ",",
1640
- "props": {
1641
- "style": {
1642
- "color": "#ECEFF4"
1643
- }
1644
- }
1645
- }]
1646
- }, {
1647
- "tokens": [{
1648
- "content": "}",
1649
- "props": {
1650
- "style": {
1651
- "color": "#ECEFF4"
1652
- }
1653
- }
1654
- }, {
1655
- "content": ")",
1656
- "props": {
1657
- "style": {
1658
- "color": "#D8DEE9FF"
1659
- }
1660
- }
1661
- }, {
1662
- "content": ";",
1663
- "props": {
1664
- "style": {
1665
- "color": "#81A1C1"
1666
- }
1667
- }
1668
- }]
1669
- }],
1670
- "lang": "ts"
1671
- },
1672
- "annotations": []
1673
- }]
1674
- })]
1675
- })]
1676
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
1677
- id: "storybook",
1678
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
1679
- className: "header-anchor",
1680
- "aria-hidden": "true",
1681
- href: "#storybook",
1682
- children: "#"
1683
- }), "Storybook"]
1684
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
1685
- children: ["The ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
1686
- children: "Storybook feature"
1687
- }), " can be enabled when we want to debug a component or a common module. When this feature is enabled, ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.strong, {
1688
- children: ["the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1689
- children: "stories"
1690
- }), " directory and related files are created in the project directory, and a new ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
1691
- children: "\"@modern-js/plugin-storybook\""
1692
- }), " dependency is added to package.json"]
1693
- }), "."]
1694
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1695
- className: "modern-directive tip",
1696
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1697
- className: "modern-directive-title",
1698
- children: "TIP"
1699
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
1700
- className: "modern-directive-content",
1701
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
1702
- children: "\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration."
1703
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
1704
- codeConfig: chCodeConfig,
1705
- northPanel: {
1706
- "tabs": [""],
1707
- "active": "",
1708
- "heightRatio": 1
1709
- },
1710
- files: [{
1711
- "name": "",
1712
- "focus": "",
1713
- "code": {
1714
- "lines": [{
1715
- "tokens": [{
1716
- "content": "import",
1717
- "props": {
1718
- "style": {
1719
- "color": "#81A1C1"
1720
- }
1721
- }
1722
- }, {
1723
- "content": " ",
1724
- "props": {
1725
- "style": {
1726
- "color": "#D8DEE9FF"
1727
- }
1728
- }
1729
- }, {
1730
- "content": "moduleTools",
1731
- "props": {
1732
- "style": {
1733
- "color": "#D8DEE9"
1734
- }
1735
- }
1736
- }, {
1737
- "content": ",",
1738
- "props": {
1739
- "style": {
1740
- "color": "#ECEFF4"
1741
- }
1742
- }
1743
- }, {
1744
- "content": " ",
1745
- "props": {
1746
- "style": {
1747
- "color": "#D8DEE9FF"
1748
- }
1749
- }
1750
- }, {
1751
- "content": "{",
1752
- "props": {
1753
- "style": {
1754
- "color": "#ECEFF4"
1755
- }
1756
- }
1757
- }, {
1758
- "content": " ",
1759
- "props": {
1760
- "style": {
1761
- "color": "#D8DEE9FF"
1762
- }
1763
- }
1764
- }, {
1765
- "content": "defineConfig",
1766
- "props": {
1767
- "style": {
1768
- "color": "#D8DEE9"
1769
- }
1770
- }
1771
- }, {
1772
- "content": " ",
1773
- "props": {
1774
- "style": {
1775
- "color": "#D8DEE9FF"
1776
- }
1777
- }
1778
- }, {
1779
- "content": "}",
1780
- "props": {
1781
- "style": {
1782
- "color": "#ECEFF4"
1783
- }
1784
- }
1785
- }, {
1786
- "content": " ",
1787
- "props": {
1788
- "style": {
1789
- "color": "#D8DEE9FF"
1790
- }
1791
- }
1792
- }, {
1793
- "content": "from",
1794
- "props": {
1795
- "style": {
1796
- "color": "#81A1C1"
1797
- }
1798
- }
1799
- }, {
1800
- "content": " ",
1801
- "props": {
1802
- "style": {
1803
- "color": "#D8DEE9FF"
1804
- }
1805
- }
1806
- }, {
1807
- "content": "'",
1808
- "props": {
1809
- "style": {
1810
- "color": "#ECEFF4"
1811
- }
1812
- }
1813
- }, {
1814
- "content": "@modern-js/module-tools",
1815
- "props": {
1816
- "style": {
1817
- "color": "#A3BE8C"
1818
- }
1819
- }
1820
- }, {
1821
- "content": "'",
1822
- "props": {
1823
- "style": {
1824
- "color": "#ECEFF4"
1825
- }
1826
- }
1827
- }, {
1828
- "content": ";",
1829
- "props": {
1830
- "style": {
1831
- "color": "#81A1C1"
1832
- }
1833
- }
1834
- }]
1835
- }, {
1836
- "tokens": [{
1837
- "content": "import",
1838
- "props": {
1839
- "style": {
1840
- "color": "#81A1C1"
1841
- }
1842
- }
1843
- }, {
1844
- "content": " ",
1845
- "props": {
1846
- "style": {
1847
- "color": "#D8DEE9FF"
1848
- }
1849
- }
1850
- }, {
1851
- "content": "storybookPlugin",
1852
- "props": {
1853
- "style": {
1854
- "color": "#D8DEE9"
1855
- }
1856
- }
1857
- }, {
1858
- "content": " ",
1859
- "props": {
1860
- "style": {
1861
- "color": "#D8DEE9FF"
1862
- }
1863
- }
1864
- }, {
1865
- "content": "from",
1866
- "props": {
1867
- "style": {
1868
- "color": "#81A1C1"
1869
- }
1870
- }
1871
- }, {
1872
- "content": " ",
1873
- "props": {
1874
- "style": {
1875
- "color": "#D8DEE9FF"
1876
- }
1877
- }
1878
- }, {
1879
- "content": "'",
1880
- "props": {
1881
- "style": {
1882
- "color": "#ECEFF4"
1883
- }
1884
- }
1885
- }, {
1886
- "content": "@modern-js/plugin-storybook",
1887
- "props": {
1888
- "style": {
1889
- "color": "#A3BE8C"
1890
- }
1891
- }
1892
- }, {
1893
- "content": "'",
1894
- "props": {
1895
- "style": {
1896
- "color": "#ECEFF4"
1897
- }
1898
- }
1899
- }, {
1900
- "content": ";",
1901
- "props": {
1902
- "style": {
1903
- "color": "#81A1C1"
1904
- }
1905
- }
1906
- }]
1907
- }, {
1908
- "tokens": []
1909
- }, {
1910
- "tokens": [{
1911
- "content": "export",
1912
- "props": {
1913
- "style": {
1914
- "color": "#81A1C1"
1915
- }
1916
- }
1917
- }, {
1918
- "content": " ",
1919
- "props": {
1920
- "style": {
1921
- "color": "#D8DEE9FF"
1922
- }
1923
- }
1924
- }, {
1925
- "content": "default",
1926
- "props": {
1927
- "style": {
1928
- "color": "#81A1C1"
1929
- }
1930
- }
1931
- }, {
1932
- "content": " ",
1933
- "props": {
1934
- "style": {
1935
- "color": "#D8DEE9FF"
1936
- }
1937
- }
1938
- }, {
1939
- "content": "defineConfig",
1940
- "props": {
1941
- "style": {
1942
- "color": "#88C0D0"
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": "plugins",
1970
- "props": {
1971
- "style": {
1972
- "color": "#D8DEE9"
1973
- }
1974
- }
1975
- }, {
1976
- "content": ":",
1977
- "props": {
1978
- "style": {
1979
- "color": "#ECEFF4"
1980
- }
1981
- }
1982
- }, {
1983
- "content": " [",
1984
- "props": {
1985
- "style": {
1986
- "color": "#D8DEE9FF"
1987
- }
1988
- }
1989
- }]
1990
- }, {
1991
- "tokens": [{
1992
- "content": " ",
1993
- "props": {
1994
- "style": {
1995
- "color": "#D8DEE9FF"
1996
- }
1997
- }
1998
- }, {
1999
- "content": "moduleTools",
2000
- "props": {
2001
- "style": {
2002
- "color": "#88C0D0"
2003
- }
2004
- }
2005
- }, {
2006
- "content": "()",
2007
- "props": {
2008
- "style": {
2009
- "color": "#D8DEE9FF"
2010
- }
2011
- }
2012
- }, {
2013
- "content": ",",
2014
- "props": {
2015
- "style": {
2016
- "color": "#ECEFF4"
2017
- }
2018
- }
2019
- }]
2020
- }, {
2021
- "tokens": [{
2022
- "content": " ",
2023
- "props": {
2024
- "style": {
2025
- "color": "#D8DEE9FF"
2026
- }
2027
- }
2028
- }, {
2029
- "content": "storybookPlugin",
2030
- "props": {
2031
- "style": {
2032
- "color": "#88C0D0"
2033
- }
2034
- }
2035
- }, {
2036
- "content": "()",
2037
- "props": {
2038
- "style": {
2039
- "color": "#D8DEE9FF"
2040
- }
2041
- }
2042
- }, {
2043
- "content": ",",
2044
- "props": {
2045
- "style": {
2046
- "color": "#ECEFF4"
2047
- }
2048
- }
2049
- }]
2050
- }, {
2051
- "tokens": [{
2052
- "content": " ]",
2053
- "props": {
2054
- "style": {
2055
- "color": "#D8DEE9FF"
2056
- }
2057
- }
2058
- }, {
2059
- "content": ",",
2060
- "props": {
2061
- "style": {
2062
- "color": "#ECEFF4"
2063
- }
2064
- }
2065
- }]
2066
- }, {
2067
- "tokens": [{
2068
- "content": "}",
2069
- "props": {
2070
- "style": {
2071
- "color": "#ECEFF4"
2072
- }
2073
- }
2074
- }, {
2075
- "content": ")",
2076
- "props": {
2077
- "style": {
2078
- "color": "#D8DEE9FF"
2079
- }
2080
- }
2081
- }, {
2082
- "content": ";",
2083
- "props": {
2084
- "style": {
2085
- "color": "#81A1C1"
2086
- }
2087
- }
2088
- }]
2089
- }],
2090
- "lang": "ts"
2091
- },
2092
- "annotations": []
2093
- }]
2094
- })]
2095
- })]
2096
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2097
- children: "For more information on how to start Storybook and how to use it, check out the following link."
2098
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2099
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2100
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2101
- href: "/module-tools/en/guide/basic/command-preview.html#modern-dev-3",
2102
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2103
- children: "modern dev"
2104
- })
2105
- })
2106
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2107
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2108
- href: "/module-tools/en/guide/basic/using-storybook.html",
2109
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2110
- children: "using Storybook"
2111
- })
2112
- })
2113
- }), "\n"]
2114
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2115
- id: "tailwind-css-support",
2116
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2117
- className: "header-anchor",
2118
- "aria-hidden": "true",
2119
- href: "#tailwind-css-support",
2120
- children: "#"
2121
- }), "Tailwind CSS support"]
2122
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2123
- children: ["This can be enabled when we want to add ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2124
- href: "https://v2.tailwindcss.com/",
2125
- target: "_blank",
2126
- rel: "nofollow",
2127
- children: "Tailwind CSS"
2128
- }), " support to our project. Tailwind CSS is a CSS library that provides out-of-the-box styling."]
2129
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2130
- children: "For more information on how to use Tailwind CSS in your module projects, check out."
2131
- }), "\n", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.ul, {
2132
- children: ["\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.li, {
2133
- children: "Using Tailwind CSS"
2134
- }), "\n"]
2135
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
2136
- className: "modern-directive tip",
2137
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2138
- className: "modern-directive-title",
2139
- children: "TIP"
2140
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
2141
- className: "modern-directive-content",
2142
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2143
- children: "\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration."
2144
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2145
- codeConfig: chCodeConfig,
2146
- northPanel: {
2147
- "tabs": [""],
2148
- "active": "",
2149
- "heightRatio": 1
2150
- },
2151
- files: [{
2152
- "name": "",
2153
- "focus": "",
2154
- "code": {
2155
- "lines": [{
2156
- "tokens": [{
2157
- "content": "import",
2158
- "props": {
2159
- "style": {
2160
- "color": "#81A1C1"
2161
- }
2162
- }
2163
- }, {
2164
- "content": " ",
2165
- "props": {
2166
- "style": {
2167
- "color": "#D8DEE9FF"
2168
- }
2169
- }
2170
- }, {
2171
- "content": "moduleTools",
2172
- "props": {
2173
- "style": {
2174
- "color": "#D8DEE9"
2175
- }
2176
- }
2177
- }, {
2178
- "content": ",",
2179
- "props": {
2180
- "style": {
2181
- "color": "#ECEFF4"
2182
- }
2183
- }
2184
- }, {
2185
- "content": " ",
2186
- "props": {
2187
- "style": {
2188
- "color": "#D8DEE9FF"
2189
- }
2190
- }
2191
- }, {
2192
- "content": "{",
2193
- "props": {
2194
- "style": {
2195
- "color": "#ECEFF4"
2196
- }
2197
- }
2198
- }, {
2199
- "content": " ",
2200
- "props": {
2201
- "style": {
2202
- "color": "#D8DEE9FF"
2203
- }
2204
- }
2205
- }, {
2206
- "content": "defineConfig",
2207
- "props": {
2208
- "style": {
2209
- "color": "#D8DEE9"
2210
- }
2211
- }
2212
- }, {
2213
- "content": " ",
2214
- "props": {
2215
- "style": {
2216
- "color": "#D8DEE9FF"
2217
- }
2218
- }
2219
- }, {
2220
- "content": "}",
2221
- "props": {
2222
- "style": {
2223
- "color": "#ECEFF4"
2224
- }
2225
- }
2226
- }, {
2227
- "content": " ",
2228
- "props": {
2229
- "style": {
2230
- "color": "#D8DEE9FF"
2231
- }
2232
- }
2233
- }, {
2234
- "content": "from",
2235
- "props": {
2236
- "style": {
2237
- "color": "#81A1C1"
2238
- }
2239
- }
2240
- }, {
2241
- "content": " ",
2242
- "props": {
2243
- "style": {
2244
- "color": "#D8DEE9FF"
2245
- }
2246
- }
2247
- }, {
2248
- "content": "'",
2249
- "props": {
2250
- "style": {
2251
- "color": "#ECEFF4"
2252
- }
2253
- }
2254
- }, {
2255
- "content": "@modern-js/module-tools",
2256
- "props": {
2257
- "style": {
2258
- "color": "#A3BE8C"
2259
- }
2260
- }
2261
- }, {
2262
- "content": "'",
2263
- "props": {
2264
- "style": {
2265
- "color": "#ECEFF4"
2266
- }
2267
- }
2268
- }, {
2269
- "content": ";",
2270
- "props": {
2271
- "style": {
2272
- "color": "#81A1C1"
2273
- }
2274
- }
2275
- }]
2276
- }, {
2277
- "tokens": [{
2278
- "content": "import",
2279
- "props": {
2280
- "style": {
2281
- "color": "#81A1C1"
2282
- }
2283
- }
2284
- }, {
2285
- "content": " ",
2286
- "props": {
2287
- "style": {
2288
- "color": "#D8DEE9FF"
2289
- }
2290
- }
2291
- }, {
2292
- "content": "tailwindPlugin",
2293
- "props": {
2294
- "style": {
2295
- "color": "#D8DEE9"
2296
- }
2297
- }
2298
- }, {
2299
- "content": " ",
2300
- "props": {
2301
- "style": {
2302
- "color": "#D8DEE9FF"
2303
- }
2304
- }
2305
- }, {
2306
- "content": "from",
2307
- "props": {
2308
- "style": {
2309
- "color": "#81A1C1"
2310
- }
2311
- }
2312
- }, {
2313
- "content": " ",
2314
- "props": {
2315
- "style": {
2316
- "color": "#D8DEE9FF"
2317
- }
2318
- }
2319
- }, {
2320
- "content": "'",
2321
- "props": {
2322
- "style": {
2323
- "color": "#ECEFF4"
2324
- }
2325
- }
2326
- }, {
2327
- "content": "@modern-js/plugin-tailwindcss",
2328
- "props": {
2329
- "style": {
2330
- "color": "#A3BE8C"
2331
- }
2332
- }
2333
- }, {
2334
- "content": "'",
2335
- "props": {
2336
- "style": {
2337
- "color": "#ECEFF4"
2338
- }
2339
- }
2340
- }, {
2341
- "content": ";",
2342
- "props": {
2343
- "style": {
2344
- "color": "#81A1C1"
2345
- }
2346
- }
2347
- }]
2348
- }, {
2349
- "tokens": []
2350
- }, {
2351
- "tokens": [{
2352
- "content": "export",
2353
- "props": {
2354
- "style": {
2355
- "color": "#81A1C1"
2356
- }
2357
- }
2358
- }, {
2359
- "content": " ",
2360
- "props": {
2361
- "style": {
2362
- "color": "#D8DEE9FF"
2363
- }
2364
- }
2365
- }, {
2366
- "content": "default",
2367
- "props": {
2368
- "style": {
2369
- "color": "#81A1C1"
2370
- }
2371
- }
2372
- }, {
2373
- "content": " ",
2374
- "props": {
2375
- "style": {
2376
- "color": "#D8DEE9FF"
2377
- }
2378
- }
2379
- }, {
2380
- "content": "defineConfig",
2381
- "props": {
2382
- "style": {
2383
- "color": "#88C0D0"
2384
- }
2385
- }
2386
- }, {
2387
- "content": "(",
2388
- "props": {
2389
- "style": {
2390
- "color": "#D8DEE9FF"
2391
- }
2392
- }
2393
- }, {
2394
- "content": "{",
2395
- "props": {
2396
- "style": {
2397
- "color": "#ECEFF4"
2398
- }
2399
- }
2400
- }]
2401
- }, {
2402
- "tokens": [{
2403
- "content": " ",
2404
- "props": {
2405
- "style": {
2406
- "color": "#D8DEE9FF"
2407
- }
2408
- }
2409
- }, {
2410
- "content": "plugins",
2411
- "props": {
2412
- "style": {
2413
- "color": "#D8DEE9"
2414
- }
2415
- }
2416
- }, {
2417
- "content": ":",
2418
- "props": {
2419
- "style": {
2420
- "color": "#ECEFF4"
2421
- }
2422
- }
2423
- }, {
2424
- "content": " [",
2425
- "props": {
2426
- "style": {
2427
- "color": "#D8DEE9FF"
2428
- }
2429
- }
2430
- }]
2431
- }, {
2432
- "tokens": [{
2433
- "content": " ",
2434
- "props": {
2435
- "style": {
2436
- "color": "#D8DEE9FF"
2437
- }
2438
- }
2439
- }, {
2440
- "content": "moduleTools",
2441
- "props": {
2442
- "style": {
2443
- "color": "#88C0D0"
2444
- }
2445
- }
2446
- }, {
2447
- "content": "()",
2448
- "props": {
2449
- "style": {
2450
- "color": "#D8DEE9FF"
2451
- }
2452
- }
2453
- }, {
2454
- "content": ",",
2455
- "props": {
2456
- "style": {
2457
- "color": "#ECEFF4"
2458
- }
2459
- }
2460
- }]
2461
- }, {
2462
- "tokens": [{
2463
- "content": " ",
2464
- "props": {
2465
- "style": {
2466
- "color": "#D8DEE9FF"
2467
- }
2468
- }
2469
- }, {
2470
- "content": "tailwindPlugin",
2471
- "props": {
2472
- "style": {
2473
- "color": "#88C0D0"
2474
- }
2475
- }
2476
- }, {
2477
- "content": "()",
2478
- "props": {
2479
- "style": {
2480
- "color": "#D8DEE9FF"
2481
- }
2482
- }
2483
- }, {
2484
- "content": ",",
2485
- "props": {
2486
- "style": {
2487
- "color": "#ECEFF4"
2488
- }
2489
- }
2490
- }]
2491
- }, {
2492
- "tokens": [{
2493
- "content": " ]",
2494
- "props": {
2495
- "style": {
2496
- "color": "#D8DEE9FF"
2497
- }
2498
- }
2499
- }, {
2500
- "content": ",",
2501
- "props": {
2502
- "style": {
2503
- "color": "#ECEFF4"
2504
- }
2505
- }
2506
- }]
2507
- }, {
2508
- "tokens": [{
2509
- "content": "}",
2510
- "props": {
2511
- "style": {
2512
- "color": "#ECEFF4"
2513
- }
2514
- }
2515
- }, {
2516
- "content": ")",
2517
- "props": {
2518
- "style": {
2519
- "color": "#D8DEE9FF"
2520
- }
2521
- }
2522
- }, {
2523
- "content": ";",
2524
- "props": {
2525
- "style": {
2526
- "color": "#81A1C1"
2527
- }
2528
- }
2529
- }]
2530
- }],
2531
- "lang": "ts"
2532
- },
2533
- "annotations": []
2534
- }]
2535
- })]
2536
- })]
2537
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.h2, {
2538
- id: "modernjs-runtime-api",
2539
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.a, {
2540
- className: "header-anchor",
2541
- "aria-hidden": "true",
2542
- href: "#modernjs-runtime-api",
2543
- children: "#"
2544
- }), "Modern.js Runtime API"]
2545
- }), "\n", "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.p, {
2546
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.strong, {
2547
- children: "Modern.js provides Runtime API capabilities that can only be used in the Modern.js application project environment"
2548
- }), ". If you need to develop a component for use in a Modern.js application environment, then you can turn on this feature and the microgenerator will add the ", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.code, {
2549
- children: "\"@modern-js/runtime\""
2550
- }), " dependency."]
2551
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2552
- children: "Also, the Storybook debugging tool will determine if the project needs to use the Runtime API by checking the project's dependencies and providing the same Runtime API runtime environment as the Modern.js application project."
2553
- }), "\n", (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
2554
- className: "modern-directive tip",
2555
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2556
- className: "modern-directive-title",
2557
- children: "TIP"
2558
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_components.div, {
2559
- className: "modern-directive-content",
2560
- children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_components.p, {
2561
- children: "\nAfter successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration."
2562
- }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(CH.Code, {
2563
- codeConfig: chCodeConfig,
2564
- northPanel: {
2565
- "tabs": [""],
2566
- "active": "",
2567
- "heightRatio": 1
2568
- },
2569
- files: [{
2570
- "name": "",
2571
- "focus": "",
2572
- "code": {
2573
- "lines": [{
2574
- "tokens": [{
2575
- "content": "import",
2576
- "props": {
2577
- "style": {
2578
- "color": "#81A1C1"
2579
- }
2580
- }
2581
- }, {
2582
- "content": " ",
2583
- "props": {
2584
- "style": {
2585
- "color": "#D8DEE9FF"
2586
- }
2587
- }
2588
- }, {
2589
- "content": "moduleTools",
2590
- "props": {
2591
- "style": {
2592
- "color": "#D8DEE9"
2593
- }
2594
- }
2595
- }, {
2596
- "content": ",",
2597
- "props": {
2598
- "style": {
2599
- "color": "#ECEFF4"
2600
- }
2601
- }
2602
- }, {
2603
- "content": " ",
2604
- "props": {
2605
- "style": {
2606
- "color": "#D8DEE9FF"
2607
- }
2608
- }
2609
- }, {
2610
- "content": "{",
2611
- "props": {
2612
- "style": {
2613
- "color": "#ECEFF4"
2614
- }
2615
- }
2616
- }, {
2617
- "content": " ",
2618
- "props": {
2619
- "style": {
2620
- "color": "#D8DEE9FF"
2621
- }
2622
- }
2623
- }, {
2624
- "content": "defineConfig",
2625
- "props": {
2626
- "style": {
2627
- "color": "#D8DEE9"
2628
- }
2629
- }
2630
- }, {
2631
- "content": " ",
2632
- "props": {
2633
- "style": {
2634
- "color": "#D8DEE9FF"
2635
- }
2636
- }
2637
- }, {
2638
- "content": "}",
2639
- "props": {
2640
- "style": {
2641
- "color": "#ECEFF4"
2642
- }
2643
- }
2644
- }, {
2645
- "content": " ",
2646
- "props": {
2647
- "style": {
2648
- "color": "#D8DEE9FF"
2649
- }
2650
- }
2651
- }, {
2652
- "content": "from",
2653
- "props": {
2654
- "style": {
2655
- "color": "#81A1C1"
2656
- }
2657
- }
2658
- }, {
2659
- "content": " ",
2660
- "props": {
2661
- "style": {
2662
- "color": "#D8DEE9FF"
2663
- }
2664
- }
2665
- }, {
2666
- "content": "'",
2667
- "props": {
2668
- "style": {
2669
- "color": "#ECEFF4"
2670
- }
2671
- }
2672
- }, {
2673
- "content": "@modern-js/module-tools",
2674
- "props": {
2675
- "style": {
2676
- "color": "#A3BE8C"
2677
- }
2678
- }
2679
- }, {
2680
- "content": "'",
2681
- "props": {
2682
- "style": {
2683
- "color": "#ECEFF4"
2684
- }
2685
- }
2686
- }, {
2687
- "content": ";",
2688
- "props": {
2689
- "style": {
2690
- "color": "#81A1C1"
2691
- }
2692
- }
2693
- }]
2694
- }, {
2695
- "tokens": [{
2696
- "content": "import",
2697
- "props": {
2698
- "style": {
2699
- "color": "#81A1C1"
2700
- }
2701
- }
2702
- }, {
2703
- "content": " ",
2704
- "props": {
2705
- "style": {
2706
- "color": "#D8DEE9FF"
2707
- }
2708
- }
2709
- }, {
2710
- "content": "runtime",
2711
- "props": {
2712
- "style": {
2713
- "color": "#D8DEE9"
2714
- }
2715
- }
2716
- }, {
2717
- "content": " ",
2718
- "props": {
2719
- "style": {
2720
- "color": "#D8DEE9FF"
2721
- }
2722
- }
2723
- }, {
2724
- "content": "from",
2725
- "props": {
2726
- "style": {
2727
- "color": "#81A1C1"
2728
- }
2729
- }
2730
- }, {
2731
- "content": " ",
2732
- "props": {
2733
- "style": {
2734
- "color": "#D8DEE9FF"
2735
- }
2736
- }
2737
- }, {
2738
- "content": "'",
2739
- "props": {
2740
- "style": {
2741
- "color": "#ECEFF4"
2742
- }
2743
- }
2744
- }, {
2745
- "content": "@modern-js/runtime/cli",
2746
- "props": {
2747
- "style": {
2748
- "color": "#A3BE8C"
2749
- }
2750
- }
2751
- }, {
2752
- "content": "'",
2753
- "props": {
2754
- "style": {
2755
- "color": "#ECEFF4"
2756
- }
2757
- }
2758
- }, {
2759
- "content": ";",
2760
- "props": {
2761
- "style": {
2762
- "color": "#81A1C1"
2763
- }
2764
- }
2765
- }]
2766
- }, {
2767
- "tokens": []
2768
- }, {
2769
- "tokens": [{
2770
- "content": "export",
2771
- "props": {
2772
- "style": {
2773
- "color": "#81A1C1"
2774
- }
2775
- }
2776
- }, {
2777
- "content": " ",
2778
- "props": {
2779
- "style": {
2780
- "color": "#D8DEE9FF"
2781
- }
2782
- }
2783
- }, {
2784
- "content": "default",
2785
- "props": {
2786
- "style": {
2787
- "color": "#81A1C1"
2788
- }
2789
- }
2790
- }, {
2791
- "content": " ",
2792
- "props": {
2793
- "style": {
2794
- "color": "#D8DEE9FF"
2795
- }
2796
- }
2797
- }, {
2798
- "content": "defineConfig",
2799
- "props": {
2800
- "style": {
2801
- "color": "#88C0D0"
2802
- }
2803
- }
2804
- }, {
2805
- "content": "(",
2806
- "props": {
2807
- "style": {
2808
- "color": "#D8DEE9FF"
2809
- }
2810
- }
2811
- }, {
2812
- "content": "{",
2813
- "props": {
2814
- "style": {
2815
- "color": "#ECEFF4"
2816
- }
2817
- }
2818
- }]
2819
- }, {
2820
- "tokens": [{
2821
- "content": " ",
2822
- "props": {
2823
- "style": {
2824
- "color": "#D8DEE9FF"
2825
- }
2826
- }
2827
- }, {
2828
- "content": "plugins",
2829
- "props": {
2830
- "style": {
2831
- "color": "#D8DEE9"
2832
- }
2833
- }
2834
- }, {
2835
- "content": ":",
2836
- "props": {
2837
- "style": {
2838
- "color": "#ECEFF4"
2839
- }
2840
- }
2841
- }, {
2842
- "content": " [",
2843
- "props": {
2844
- "style": {
2845
- "color": "#D8DEE9FF"
2846
- }
2847
- }
2848
- }]
2849
- }, {
2850
- "tokens": [{
2851
- "content": " ",
2852
- "props": {
2853
- "style": {
2854
- "color": "#D8DEE9FF"
2855
- }
2856
- }
2857
- }, {
2858
- "content": "moduleTools",
2859
- "props": {
2860
- "style": {
2861
- "color": "#88C0D0"
2862
- }
2863
- }
2864
- }, {
2865
- "content": "()",
2866
- "props": {
2867
- "style": {
2868
- "color": "#D8DEE9FF"
2869
- }
2870
- }
2871
- }, {
2872
- "content": ",",
2873
- "props": {
2874
- "style": {
2875
- "color": "#ECEFF4"
2876
- }
2877
- }
2878
- }]
2879
- }, {
2880
- "tokens": [{
2881
- "content": " ",
2882
- "props": {
2883
- "style": {
2884
- "color": "#D8DEE9FF"
2885
- }
2886
- }
2887
- }, {
2888
- "content": "runtime",
2889
- "props": {
2890
- "style": {
2891
- "color": "#88C0D0"
2892
- }
2893
- }
2894
- }, {
2895
- "content": "()",
2896
- "props": {
2897
- "style": {
2898
- "color": "#D8DEE9FF"
2899
- }
2900
- }
2901
- }, {
2902
- "content": ",",
2903
- "props": {
2904
- "style": {
2905
- "color": "#ECEFF4"
2906
- }
2907
- }
2908
- }]
2909
- }, {
2910
- "tokens": [{
2911
- "content": " ]",
2912
- "props": {
2913
- "style": {
2914
- "color": "#D8DEE9FF"
2915
- }
2916
- }
2917
- }, {
2918
- "content": ",",
2919
- "props": {
2920
- "style": {
2921
- "color": "#ECEFF4"
2922
- }
2923
- }
2924
- }]
2925
- }, {
2926
- "tokens": [{
2927
- "content": "}",
2928
- "props": {
2929
- "style": {
2930
- "color": "#ECEFF4"
2931
- }
2932
- }
2933
- }, {
2934
- "content": ")",
2935
- "props": {
2936
- "style": {
2937
- "color": "#D8DEE9FF"
2938
- }
2939
- }
2940
- }, {
2941
- "content": ";",
2942
- "props": {
2943
- "style": {
2944
- "color": "#81A1C1"
2945
- }
2946
- }
2947
- }]
2948
- }],
2949
- "lang": "ts"
2950
- },
2951
- "annotations": []
2952
- }]
2953
- })]
2954
- })]
2955
- })]
2956
- });
2957
- }
2958
- function MDXContent(props = {}) {
2959
- const {wrapper: MDXLayout} = props.components || ({});
2960
- return MDXLayout ? (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(MDXLayout, Object.assign({}, props, {
2961
- children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_createMdxContent, props)
2962
- })) : _createMdxContent(props);
2963
- }
2964
- /* harmony default export */ __webpack_exports__["default"] = (MDXContent);
2965
- function _missingMdxReference(id, component, place) {
2966
- 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/en/guide/basic/use-micro-generator.md`" : ""));
2967
- }
2968
-
2969
-
2970
- /***/ })
2971
-
2972
- }]);
2973
- //# sourceMappingURL=en_guide_basic_use-micro-generator.js.map