@modern-js/main-doc 0.0.0-nightly-20240131170643 → 0.0.0-nightly-20240201170631

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.
@@ -39,14 +39,14 @@ Modern.js will help you automatically register the plugin by following these ste
39
39
  1. Modern.js maintains an official list of plugins internally.
40
40
 
41
41
  ```js
42
- const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-i18n', ...];
42
+ const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-tailwindcss', ...];
43
43
  ```
44
44
 
45
45
  2. Modern.js will read your `package.json` and collect the dependency information.
46
46
 
47
47
  ```json title="package.json"
48
48
  "dependencies": {
49
- "@modern-js/plugin-i18n": "x.x.x"
49
+ "@modern-js/plugin-tailwindcss": "x.x.x"
50
50
  ...
51
51
  },
52
52
  "devDependencies": {
@@ -55,7 +55,7 @@ const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-i18n', ...];
55
55
  }
56
56
  ```
57
57
 
58
- 3. Modern.js observes that when you install dependencies such as `@modern-js/plugin-i18n` and `@modern-js/app-tools`, automatic plugin registration will be imported.
58
+ 3. Modern.js observes that when you install dependencies such as `@modern-js/plugin-tailwindcss` and `@modern-js/app-tools`, automatic plugin registration will be imported.
59
59
 
60
60
  You can notice that this approach is relatively black-box and you are not even aware of the process of loading the plugin. We want to expose more details to the developer and be able to let the developer control the process.
61
61
 
@@ -39,14 +39,14 @@ Modern.js 将通过以下几个步骤帮你自动注册插件
39
39
  1. Modern.js 在内部维护一份官方插件列表。
40
40
 
41
41
  ```js
42
- const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-i18n', ...];
42
+ const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-tailwindcss', ...];
43
43
  ```
44
44
 
45
45
  2. Modern.js 将读取你的 `package.json` 文件,收集依赖信息。
46
46
 
47
47
  ```json title="package.json"
48
48
  "dependencies": {
49
- "@modern-js/plugin-i18n": "x.x.x"
49
+ "@modern-js/plugin-tailwindcss": "x.x.x"
50
50
  ...
51
51
  },
52
52
  "devDependencies": {
@@ -55,7 +55,7 @@ const InternalPlugins = ['@modern-js/app-tools', '@modern-js/plugin-i18n', ...];
55
55
  }
56
56
  ```
57
57
 
58
- 3. Modern.js 观察到你安装了 `@modern-js/plugin-i18n` 和 `@modern-js/app-tools` 等依赖后,将会引入插件自动注册。
58
+ 3. Modern.js 观察到你安装了 `@modern-js/plugin-tailwindcss` 和 `@modern-js/app-tools` 等依赖后,将会引入插件自动注册。
59
59
 
60
60
  可以注意到这种方式相对黑盒,你甚至对加载插件的过程是无感知的。我们希望更多的细节暴露给开发者,能让开发者去控制这一过程。
61
61
 
package/package.json CHANGED
@@ -15,17 +15,17 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "0.0.0-nightly-20240131170643",
18
+ "version": "0.0.0-nightly-20240201170631",
19
19
  "publishConfig": {
20
20
  "registry": "https://registry.npmjs.org/",
21
21
  "access": "public",
22
22
  "provenance": true
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/sandpack-react": "0.0.0-nightly-20240131170643"
25
+ "@modern-js/sandpack-react": "0.0.0-nightly-20240201170631"
26
26
  },
27
27
  "peerDependencies": {
28
- "@modern-js/builder-doc": "0.0.0-nightly-20240131170643"
28
+ "@modern-js/builder-doc": "0.0.0-nightly-20240201170631"
29
29
  },
30
30
  "devDependencies": {
31
31
  "classnames": "^2",
@@ -39,8 +39,8 @@
39
39
  "@rspress/shared": "1.11.1",
40
40
  "@types/node": "^16",
41
41
  "@types/fs-extra": "9.0.13",
42
- "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240131170643",
43
- "@modern-js/builder-doc": "0.0.0-nightly-20240131170643"
42
+ "@modern-js/builder-doc": "0.0.0-nightly-20240201170631",
43
+ "@modern-js/doc-plugin-auto-sidebar": "0.0.0-nightly-20240201170631"
44
44
  },
45
45
  "scripts": {
46
46
  "dev": "rspress dev",