@modern-js/main-doc 2.60.1-alpha.0 → 2.60.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/en/apis/app/commands.mdx +0 -16
- package/docs/en/components/output-polyfill-extend.mdx +1 -0
- package/docs/en/guides/topic-detail/_meta.json +0 -6
- package/docs/en/guides/topic-detail/model/quick-start.mdx +5 -0
- package/docs/zh/apis/app/commands.mdx +0 -18
- package/docs/zh/components/output-polyfill-extend.mdx +1 -0
- package/docs/zh/guides/topic-detail/_meta.json +0 -6
- package/docs/zh/guides/topic-detail/model/quick-start.mdx +5 -0
- package/package.json +4 -3
@@ -249,19 +249,3 @@ Inspect config succeed, open following files to view the content:
|
|
249
249
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
250
250
|
- Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
|
251
251
|
```
|
252
|
-
|
253
|
-
## modern lint
|
254
|
-
|
255
|
-
Run ESLint to check the syntax of the code.
|
256
|
-
|
257
|
-
```bash
|
258
|
-
Usage: modern lint [options] [...files]
|
259
|
-
|
260
|
-
Options:
|
261
|
-
--no-fix disable auto fix source file
|
262
|
-
-h, --help display help for command
|
263
|
-
```
|
264
|
-
|
265
|
-
Normally, only the part of the code modified by this commit needs to be checked by `lint-staged` during the `git commit` phase.
|
266
|
-
|
267
|
-
- `--no-fix` close auto fix by lint.
|
@@ -0,0 +1 @@
|
|
1
|
+
Modern.js also provides a runtime Polyfill solution based on browser [UA](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/User-Agent) information. For detailed usage instructions, please refer to [Polyfill At Runtime](https://modernjs.dev/en/guides/advanced-features/compatibility.html#polyfill-at-runtime).
|
@@ -2,6 +2,11 @@
|
|
2
2
|
sidebar_position: 1
|
3
3
|
title: Quick Start
|
4
4
|
---
|
5
|
+
|
6
|
+
:::caution
|
7
|
+
New projects are no longer recommended to use Reduck. You can use state management tools from the community, such as [Jotai](https://jotai.org/), [zustand](https://zustand.docs.pmnd.rs/getting-started/introduction), [valtio](https://valtio.dev/docs/introduction/getting-started), etc.
|
8
|
+
:::
|
9
|
+
|
5
10
|
# Quick Start
|
6
11
|
|
7
12
|
import ReduckMigration from "@site-docs-en/components/reduck-migration"
|
@@ -249,21 +249,3 @@ Inspect config succeed, open following files to view the content:
|
|
249
249
|
- Webpack Config (web): /root/my-project/dist/webpack.config.web.mjs
|
250
250
|
- Webpack Config (node): /root/my-project/dist/webpack.config.node.mjs
|
251
251
|
```
|
252
|
-
|
253
|
-
## modern lint
|
254
|
-
|
255
|
-
运行 `ESLint` 进行代码语法检查。
|
256
|
-
|
257
|
-
```bash
|
258
|
-
Usage: modern lint [options] [...files]
|
259
|
-
|
260
|
-
lint and fix source files
|
261
|
-
|
262
|
-
Options:
|
263
|
-
--no-fix disable auto fix source file
|
264
|
-
-h, --help display help for command
|
265
|
-
```
|
266
|
-
|
267
|
-
通常情况下,我们只需要在 `git commit` 阶段通过 `lint-staged` 检查本次提交修改的部分代码。
|
268
|
-
|
269
|
-
- 设置 `--no-fix` 参数后可以关闭自动修复 lint 错误代码的能力。
|
@@ -0,0 +1 @@
|
|
1
|
+
Modern.js 还支持了基于浏览器 [UA](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/User-Agent) 信息的运行时按需 Polyfill 方案,具体使用姿势可查看 [运行时按需 Polyfill](/guides/advanced-features/compatibility.html#运行时按需-polyfill)
|
@@ -2,6 +2,11 @@
|
|
2
2
|
sidebar_position: 1
|
3
3
|
title: 快速上手
|
4
4
|
---
|
5
|
+
|
6
|
+
:::caution
|
7
|
+
新项目不再推荐使用 Reduck,可以使用社区中的状态管理工具,例如 [Jotai](https://jotai.org/)、[zustand](https://zustand.docs.pmnd.rs/getting-started/introduction)、[valtio](https://valtio.dev/docs/introduction/getting-started) 等。
|
8
|
+
:::
|
9
|
+
|
5
10
|
# 快速上手
|
6
11
|
|
7
12
|
import ReduckMigration from "@site-docs/components/reduck-migration"
|
package/package.json
CHANGED
@@ -15,13 +15,14 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.60.1
|
18
|
+
"version": "2.60.1",
|
19
19
|
"publishConfig": {
|
20
20
|
"registry": "https://registry.npmjs.org/",
|
21
|
-
"access": "public"
|
21
|
+
"access": "public",
|
22
|
+
"provenance": true
|
22
23
|
},
|
23
24
|
"dependencies": {
|
24
|
-
"@modern-js/sandpack-react": "2.60.
|
25
|
+
"@modern-js/sandpack-react": "2.60.1"
|
25
26
|
},
|
26
27
|
"devDependencies": {
|
27
28
|
"@rspress/shared": "1.31.0",
|