mvframe 1.0.95 → 1.1.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.
- package/.cursor/rules/style-system.mdc +1 -1
- package/README.cn.md +25 -0
- package/README.md +25 -0
- package/dist/css/style.css +1 -1
- package/dist/vendor.js +1 -1
- package/package.json +7 -1
- package/scripts/init-rules.js +41 -0
- package/scripts/install-cursor-rules.js +67 -0
- package/scripts/scaffold-app.js +15 -23
|
@@ -119,7 +119,7 @@ alwaysApply: true
|
|
|
119
119
|
|
|
120
120
|
### 渐变色字体 .colorfulFont
|
|
121
121
|
|
|
122
|
-
需配合 `background-clip: text
|
|
122
|
+
需配合 `background-clip: text`;颜色变体与 `var.scss` 中 `$colorNames` 自动同步,当前会为 `primary`、`blue`、`green`、`orange`、`red`、`purple`、`pink`、`yellow` 生成渐变类,不为 `white` / `black` / `body` / `dark` / `gray` 生成。
|
|
123
123
|
|
|
124
124
|
## 4. 布局(layout.scss)
|
|
125
125
|
|
package/README.cn.md
CHANGED
|
@@ -293,16 +293,41 @@ Codex 不会自动读取 Cursor 的 `.cursor/rules/*.mdc`。宿主项目需要
|
|
|
293
293
|
|
|
294
294
|
```bash
|
|
295
295
|
cd /path/to/your-app
|
|
296
|
+
yarn exec mvframe-init-rules
|
|
297
|
+
# 或:npx mvframe-init-rules
|
|
298
|
+
|
|
299
|
+
# 仅初始化 Codex 规则
|
|
296
300
|
yarn exec mvframe-install-codex-rules
|
|
297
301
|
# 或:npx mvframe-install-codex-rules
|
|
298
302
|
|
|
299
303
|
# 克隆 / monorepo 中指向 mvframe 源码时
|
|
304
|
+
node /path/to/mvframe/scripts/init-rules.js
|
|
305
|
+
node /path/to/mvframe/scripts/init-rules.js /path/to/your-app
|
|
306
|
+
|
|
307
|
+
# 仅初始化 Codex 规则
|
|
300
308
|
node /path/to/mvframe/scripts/install-codex-agents.js
|
|
301
309
|
node /path/to/mvframe/scripts/install-codex-agents.js /path/to/your-app
|
|
302
310
|
```
|
|
303
311
|
|
|
304
312
|
脚手架命令已自动执行这一步。生成区块带有 `MVFRAME-CODEX-RULES` 标记,重复执行只更新这段内容,不覆盖你在 `AGENTS.md` 中的其它规则。
|
|
305
313
|
|
|
314
|
+
## Cursor 规则(`.cursor/rules`)
|
|
315
|
+
|
|
316
|
+
统一命令 `mvframe-init-rules` 会同时把 **mvframe 包内**与仓库一致的 **`*.mdc`** 补充到目标项目 **`/.cursor/rules/`**(`component-hierarchy`、`script-setup`、`style-system`、`views`、`router`、`global-components`、`data`、`util`)。
|
|
317
|
+
若宿主项目已存在同名规则文件,则保留宿主文件,仅补缺失项。
|
|
318
|
+
|
|
319
|
+
仅安装 Cursor 规则时:
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
cd /path/to/your-app
|
|
323
|
+
yarn exec mvframe-install-cursor-rules
|
|
324
|
+
# 或:npx mvframe-install-cursor-rules
|
|
325
|
+
|
|
326
|
+
# 克隆 / monorepo 中指向 mvframe 源码时
|
|
327
|
+
node /path/to/mvframe/scripts/install-cursor-rules.js
|
|
328
|
+
node /path/to/mvframe/scripts/install-cursor-rules.js /path/to/your-app
|
|
329
|
+
```
|
|
330
|
+
|
|
306
331
|
## Cursor Skill(应用初始化)
|
|
307
332
|
|
|
308
333
|
本仓库自带 **`.cursor/skills/mvframe-app-init`**,消费方项目可复制到自身 `.cursor/skills` 以便 Cursor 识别 MVFrame 接入规范。
|
package/README.md
CHANGED
|
@@ -278,16 +278,41 @@ Codex does **not** automatically read Cursor `.cursor/rules/*.mdc`. For host pro
|
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
280
|
cd /path/to/your-app
|
|
281
|
+
yarn exec mvframe-init-rules
|
|
282
|
+
# or: npx mvframe-init-rules
|
|
283
|
+
|
|
284
|
+
# Codex rules only
|
|
281
285
|
yarn exec mvframe-install-codex-rules
|
|
282
286
|
# or: npx mvframe-install-codex-rules
|
|
283
287
|
|
|
284
288
|
# Full checkout / monorepo path to mvframe
|
|
289
|
+
node /path/to/mvframe/scripts/init-rules.js
|
|
290
|
+
node /path/to/mvframe/scripts/init-rules.js /path/to/your-app
|
|
291
|
+
|
|
292
|
+
# Codex rules only
|
|
285
293
|
node /path/to/mvframe/scripts/install-codex-agents.js
|
|
286
294
|
node /path/to/mvframe/scripts/install-codex-agents.js /path/to/your-app
|
|
287
295
|
```
|
|
288
296
|
|
|
289
297
|
The scaffold command already runs this step. The generated block is bounded by `MVFRAME-CODEX-RULES` markers, so rerunning the command updates only that block and preserves other `AGENTS.md` content.
|
|
290
298
|
|
|
299
|
+
## Cursor Rules (`.cursor/rules`)
|
|
300
|
+
|
|
301
|
+
The unified `mvframe-init-rules` command also adds the package’s **`*.mdc`** files into the target project’s **`/.cursor/rules/`** (`component-hierarchy`, `script-setup`, `style-system`, `views`, `router`, `global-components`, `data`, `util`).
|
|
302
|
+
If the host project already has a same-named rule file, the host file is kept and only missing rules are added.
|
|
303
|
+
|
|
304
|
+
Install Cursor rules only:
|
|
305
|
+
|
|
306
|
+
```bash
|
|
307
|
+
cd /path/to/your-app
|
|
308
|
+
yarn exec mvframe-install-cursor-rules
|
|
309
|
+
# or: npx mvframe-install-cursor-rules
|
|
310
|
+
|
|
311
|
+
# Full checkout / monorepo path to mvframe
|
|
312
|
+
node /path/to/mvframe/scripts/install-cursor-rules.js
|
|
313
|
+
node /path/to/mvframe/scripts/install-cursor-rules.js /path/to/your-app
|
|
314
|
+
```
|
|
315
|
+
|
|
291
316
|
## Cursor Skill (app scaffold)
|
|
292
317
|
|
|
293
318
|
This repo ships **`.cursor/skills/mvframe-app-init`**. Copy it into your app’s **`.cursor/skills`** so Cursor can pick up MVFrame integration conventions.
|