Skip to content

Commit a7a148d

Browse files
authored
docs: chrome devtools (#2292)
1 parent 06ea45d commit a7a148d

File tree

7 files changed

+2320
-2636
lines changed

7 files changed

+2320
-2636
lines changed

.github/workflows/deploy-website.yml

Lines changed: 0 additions & 81 deletions
This file was deleted.

apps/website-new/docs/en/guide/basic/chrome-devtool.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Chrome DevTools
22

3-
In implementation 🚧
4-
5-
{/*
63
The `Microfrontend` architecture differs from the traditional monolithic application development model. Its characteristics of separate development, deployment, and debugging necessitate a new set of debugging tools to meet new usage scenarios, such as: how to verify the effect of modules in actual projects when developing `Module Federation`, whether the dependencies of `Module Federation` are reused with the host environment, which `Module Federation` modules are loaded on the current page, the dependency relationships of `Module Federation`, and how the data flow between `Module Federation` works.
74

85
`Chrome DevTools` provides the following capabilities:
@@ -32,7 +29,7 @@ Development and production environments:
3229

3330
## How to Install
3431

35-
1. Open the [Module Federation plugin detail page](https://chromewebstore.google.com/detail/module-federation-live-re/likboddddbpaicmnhpddhhjeclggkejj?hl=zh-CN&utm_source=ext_sidebar), and click the `Add to Chrome` button.
32+
1. Open the [Module Federation plugin detail page](https://chromewebstore.google.com/detail/module-federation/aeoilchhomapofiopejjlecddfldpeom?hl=zh-CN&utm_source=ext_sidebar), and click the `Add to Chrome` button.
3633

3734
![](@public/guide/chrome-devtools/chrome-store-add-devtool.png)
3835

@@ -78,8 +75,7 @@ You can open DevTools in a separate window.
7875
- ✅ Configuration rules are checked.
7976
- ✅ Configuration is filled in correctly, the page shows: Proxy configuration is effective, remote module retrieval is successful, the corresponding page has been automatically refreshed.
8077

81-
![](@public/guide/chrome-devtools/proxy-rule.png)
8278

8379
### Partial Configuration Complies with Rules
8480

85-
The plugin will filter out **modules that comply with the configuration rules** for proxying. */}
81+
The plugin will filter out **modules that comply with the configuration rules** for proxying.
-82.9 KB
Loading

apps/website-new/docs/zh/guide/basic/chrome-devtool.mdx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Chrome Devtool
22

3-
施工中🚧
4-
5-
6-
{/* `微前端` 架构不同于传统单体应用的开发模式,其分开开发、部署、调试的特征使其需要一套新的调试工具来满足新的使用场景,诸如:在开发 `Module Federation` 时怎么验证模块在实际项目中的效果、 `Module Federation` 的依赖是否和宿主环境进行了复用、当前页面加载了哪些 `Module Federation` , `Module Federation` 的依赖关系、`Module Federation` 间的数据流转是怎么样的。
3+
`微前端` 架构不同于传统单体应用的开发模式,其分开开发、部署、调试的特征使其需要一套新的调试工具来满足新的使用场景,诸如:在开发 `Module Federation` 时怎么验证模块在实际项目中的效果、 `Module Federation` 的依赖是否和宿主环境进行了复用、当前页面加载了哪些 `Module Federation``Module Federation` 的依赖关系、`Module Federation` 间的数据流转是怎么样的。
74

85
`Chrome Devtool` 提供了以下能力:
96

@@ -32,7 +29,7 @@
3229

3330
## 如何安装
3431

35-
1. 打开 [Module Federation 插件详情页](https://chromewebstore.google.com/detail/module-federation-live-re/likboddddbpaicmnhpddhhjeclggkejj?hl=zh-CN&utm_source=ext_sidebar), 点击 `添加到 Chrome` 按钮
32+
1. 打开 [Module Federation 插件详情页](https://chromewebstore.google.com/detail/module-federation/aeoilchhomapofiopejjlecddfldpeom?hl=zh-CN&utm_source=ext_sidebar), 点击 `添加到 Chrome` 按钮
3633

3734
![](@public/guide/chrome-devtools/chrome-store-add-devtool.png)
3835

@@ -80,4 +77,4 @@
8077

8178
### 部分配置符合规则
8279

83-
插件会筛选出**符合配置规则的模块**进行代理 */}
80+
插件会筛选出**符合配置规则的模块**进行代理

apps/website-new/netlify.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
[build]
22
publish = "apps/website-new/doc_build"
3+
4+
[[redirects]]
5+
from = "/*"
6+
to = "/"
7+
status = 200
8+

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"lint-fix": "nx format:write --uncommitted",
3030
"trigger-release": "node -e 'import(\"open\").then(open => open.default(\"https://github.com/module-federation/universe/actions/workflows/trigger-release.yml\"))'",
3131
"serve:next": "nx run-many --target=serve --all --parallel=3 -exclude='*,!tag:nextjs'",
32-
"serve:website": "nx run website:serve",
33-
"build:website": "nx run website:build.netlify",
32+
"serve:website": "nx run website-new:serve",
33+
"build:website": "nx run website-new:build",
3434
"extract-i18n:website": "nx run website:extract-i18n",
3535
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\"",
3636
"app:next:dev": "nx run-many --target=serve --configuration=development -p 3000-home,3001-shop,3002-checkout",
@@ -69,7 +69,6 @@
6969
"unplugin": "1.9.0"
7070
},
7171
"devDependencies": {
72-
"terser-webpack-plugin": "^5.3.10",
7372
"@antora/cli": "3.1.5",
7473
"@antora/lunr-extension": "1.0.0-alpha.8",
7574
"@antora/site-generator": "3.1.7",
@@ -103,16 +102,16 @@
103102
"@nx/node": "17.2.8",
104103
"@nx/react": "17.2.8",
105104
"@nx/rollup": "17.2.8",
105+
"@nx/rspack": "17.2.8",
106106
"@nx/storybook": "17.2.8",
107107
"@nx/vite": "17.2.8",
108108
"@nx/web": "17.2.8",
109109
"@nx/webpack": "17.2.8",
110-
"@nx/rspack": "17.2.8",
111-
"@rspack/dev-server": "^0.5.4",
112-
"@rspack/core": "^0.5.4",
113110
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
114111
"@rollup/plugin-alias": "5.1.0",
115112
"@rollup/plugin-replace": "5.0.5",
113+
"@rspack/core": "^0.5.4",
114+
"@rspack/dev-server": "^0.5.4",
116115
"@semantic-release/changelog": "^6.0.3",
117116
"@semantic-release/exec": "^6.0.3",
118117
"@semantic-release/git": "^10.0.1",
@@ -134,10 +133,11 @@
134133
"@tailwindcss/forms": "0.5.7",
135134
"@testing-library/react": "14.0.0",
136135
"@types/adm-zip": "0.5.5",
136+
"@types/chrome": "^0.0.260",
137137
"@types/download": "8.0.5",
138-
"@types/fs-extra": "9.0.6",
139138
"@types/eslint": "~8.37.0",
140139
"@types/express": "4.17.21",
140+
"@types/fs-extra": "9.0.6",
141141
"@types/jest": "29.5.12",
142142
"@types/lodash.clonedeepwith": "^4.5.9",
143143
"@types/lodash.get": "4.4.9",
@@ -149,7 +149,6 @@
149149
"@types/webpack-sources": "3.2.3",
150150
"@typescript-eslint/eslint-plugin": "6.21.0",
151151
"@typescript-eslint/parser": "6.21.0",
152-
"@types/chrome": "^0.0.260",
153152
"@vitest/coverage-istanbul": "1.2.2",
154153
"@vitest/coverage-v8": "1.2.2",
155154
"@vitest/ui": "1.2.2",
@@ -216,6 +215,7 @@
216215
"strip-ansi": "^6.0.0",
217216
"swc-loader": "0.2.3",
218217
"tailwindcss": "3.4.1",
218+
"terser-webpack-plugin": "^5.3.10",
219219
"ts-jest": "29.1.2",
220220
"ts-node": "10.9.1",
221221
"tslib": "2.6.2",
@@ -232,7 +232,8 @@
232232
"wast-loader": "^1.11.5",
233233
"webpack": "^5.90.0",
234234
"webpack-virtual-modules": "0.6.1",
235-
"whatwg-fetch": "^3.6.2"
235+
"whatwg-fetch": "^3.6.2",
236+
"yargs": "^17.7.2"
236237
},
237238
"config": {
238239
"commitizen": {

0 commit comments

Comments
 (0)