@bleedingdev/modern-js-main-doc 3.5.0-ultramodern.100 → 3.5.0-ultramodern.102
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.
|
@@ -18,7 +18,7 @@ AI agents use them to get APIs, config, and conventions that exactly match your
|
|
|
18
18
|
`AGENTS.md` gives AI coding agents project-level guidance — telling them to read the bundled docs before making changes and to follow Modern.js conventions. A `CLAUDE.md` is generated alongside it, reusing the same guidance for Claude Code via the `@AGENTS.md` import.
|
|
19
19
|
|
|
20
20
|
- **New projects**: `npx @modern-js/create` generates both files by default; pass `--no-agents-md` to skip them.
|
|
21
|
-
- **Existing projects**: run `npx @modern-js/create agents-md` at the project root to create or update them. Re-run it any time; your own additions are preserved.
|
|
21
|
+
- **Existing projects**: run `npx @modern-js/create --agents-md-only` at the project root to create or update them. Re-run it any time; your own additions are preserved.
|
|
22
22
|
|
|
23
23
|
Modern.js only maintains the content inside the `<!-- BEGIN:modernjs-agent-rules -->` markers in `AGENTS.md`; anything you write outside them is left untouched.
|
|
24
24
|
|
|
@@ -24,7 +24,7 @@ All Modern.js official packages are released with a **uniform version number**,
|
|
|
24
24
|
- Visit [npm](https://www.npmjs.com/package/@modern-js/app-tools) to check the latest version of `@modern-js/app-tools`
|
|
25
25
|
- Check [GitHub Releases](https://github.com/web-infra-dev/modern.js/releases)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
<ReleaseNote />
|
|
28
28
|
|
|
29
29
|
2. **Update package.json**
|
|
30
30
|
|
|
@@ -46,7 +46,7 @@ All Modern.js official packages are released with a **uniform version number**,
|
|
|
46
46
|
|
|
47
47
|
After updating `package.json`, reinstall dependencies:
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
<PackageManagerTabs command="install" />
|
|
50
50
|
|
|
51
51
|
:::tip
|
|
52
52
|
When upgrading, you need to upgrade all packages provided by Modern.js uniformly, rather than upgrading individual dependencies. Ensure that all `@modern-js/**` packages have the same version number.
|
|
@@ -18,7 +18,7 @@ AI Agent 由此获取与当前框架版本严格匹配的 API、配置与约定
|
|
|
18
18
|
`AGENTS.md` 是给 AI 编码助手的项目指引,告诉它在动手前先阅读随包文档、并遵循 Modern.js 的约定;同时会生成 `CLAUDE.md`,通过 `@AGENTS.md` 让 Claude Code 复用同一份指引。
|
|
19
19
|
|
|
20
20
|
- **新建项目**:`npx @modern-js/create` 默认生成这两个文件,加 `--no-agents-md` 可跳过。
|
|
21
|
-
- **已有项目**:在项目根运行 `npx @modern-js/create agents-md` 生成或更新,可随时重复运行,你添加的自定义内容会被保留。
|
|
21
|
+
- **已有项目**:在项目根运行 `npx @modern-js/create --agents-md-only` 生成或更新,可随时重复运行,你添加的自定义内容会被保留。
|
|
22
22
|
|
|
23
23
|
Modern.js 只维护 `AGENTS.md` 中 `<!-- BEGIN:modernjs-agent-rules -->` 标记内的内容,标记之外你写的内容不会被改动。
|
|
24
24
|
|
|
@@ -24,7 +24,7 @@ Modern.js 所有的官方包使用**统一版本号**进行发布,因此升级
|
|
|
24
24
|
- 访问 [npm](https://www.npmjs.com/package/@modern-js/app-tools) 查看 `@modern-js/app-tools` 的最新版本
|
|
25
25
|
- 查看 [GitHub Releases](https://github.com/web-infra-dev/modern.js/releases)
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
<ReleaseNote />
|
|
28
28
|
|
|
29
29
|
2. **更新 package.json**
|
|
30
30
|
|
|
@@ -46,7 +46,7 @@ Modern.js 所有的官方包使用**统一版本号**进行发布,因此升级
|
|
|
46
46
|
|
|
47
47
|
更新完 `package.json` 后,重新安装依赖:
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
<PackageManagerTabs command="install" />
|
|
50
50
|
|
|
51
51
|
:::tip
|
|
52
52
|
当升级时,需要对 Modern.js 官方提供的所有包做统一升级,而不是升级单个依赖。确保所有 `@modern-js/**` 包的版本号保持一致。
|
package/package.json
CHANGED
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"modern.js",
|
|
20
20
|
"ultramodern.js"
|
|
21
21
|
],
|
|
22
|
-
"version": "3.5.0-ultramodern.
|
|
22
|
+
"version": "3.5.0-ultramodern.102",
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.5.0-ultramodern.
|
|
27
|
+
"@modern-js/sandpack-react": "npm:@bleedingdev/modern-js-sandpack-react@3.5.0-ultramodern.102",
|
|
28
28
|
"mermaid": "^11.16.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
@@ -45,6 +45,21 @@
|
|
|
45
45
|
"ts-node": "^10.9.2",
|
|
46
46
|
"typescript": "^7.0.2"
|
|
47
47
|
},
|
|
48
|
+
"nx": {
|
|
49
|
+
"targets": {
|
|
50
|
+
"build": {
|
|
51
|
+
"inputs": [
|
|
52
|
+
"build",
|
|
53
|
+
"^build",
|
|
54
|
+
"{projectRoot}/docs/**/*",
|
|
55
|
+
"{projectRoot}/rspress.config.ts"
|
|
56
|
+
],
|
|
57
|
+
"outputs": [
|
|
58
|
+
"{projectRoot}/doc_build"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
48
63
|
"scripts": {
|
|
49
64
|
"dev": "rspress dev",
|
|
50
65
|
"dev:no_lazy": "LAZY=false rspress dev",
|