@icebreakers/monorepo-templates 1.0.3 → 1.0.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@icebreakers/monorepo-templates",
3
3
  "type": "module",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "description": "Template assets for icebreaker monorepo scaffolding",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
7
  "license": "MIT",
@@ -42,7 +42,7 @@
42
42
  "hono": "^4.12.18",
43
43
  "tailwindcss": "^4.2.4",
44
44
  "typescript": "~6.0.3",
45
- "vite": "^8.0.10",
45
+ "vite": "^8.0.11",
46
46
  "vite-plugin-vue-devtools": "^8.1.1",
47
47
  "vite-tsconfig-paths": "^6.1.1",
48
48
  "vue-tsc": "3.2.8",
@@ -1,3 +1,4 @@
1
+ import type { PluginOption, UserConfig } from 'vite'
1
2
  import path from 'node:path'
2
3
  import { cloudflare } from '@cloudflare/vite-plugin'
3
4
  import Tailwindcss from '@tailwindcss/vite'
@@ -8,27 +9,32 @@ import VueDevTools from 'vite-plugin-vue-devtools'
8
9
  import VueRouter from 'vue-router/vite'
9
10
 
10
11
  // https://vite.dev/config/
11
- export default defineConfig(({ command }) => ({
12
- build: {
13
- target: 'baseline-widely-available',
14
- },
15
- resolve: {
16
- alias: {
17
- '@': path.resolve(import.meta.dirname, 'src'),
18
- '~': import.meta.dirname,
19
- },
20
- },
21
- plugins: [
22
- VueRouter(
23
- {
24
- dts: path.resolve(import.meta.dirname, 'src/route-map.d.ts'),
25
- watch: command === 'serve',
26
- },
27
- ),
12
+ export default defineConfig(({ command }): UserConfig => {
13
+ const plugins: PluginOption[] = [
14
+ VueRouter({
15
+ dts: path.resolve(import.meta.dirname, 'src/route-map.d.ts'),
16
+ watch: command === 'serve',
17
+ }) as PluginOption,
28
18
  Vue(),
29
19
  VueJsx(),
30
20
  Tailwindcss(),
31
- cloudflare(),
32
- command === 'serve' ? VueDevTools() : null,
33
- ],
34
- }))
21
+ cloudflare() as unknown as PluginOption,
22
+ ]
23
+
24
+ if (command === 'serve') {
25
+ plugins.push(VueDevTools() as unknown as PluginOption)
26
+ }
27
+
28
+ return {
29
+ build: {
30
+ target: 'baseline-widely-available',
31
+ },
32
+ resolve: {
33
+ alias: {
34
+ '@': path.resolve(import.meta.dirname, 'src'),
35
+ '~': import.meta.dirname,
36
+ },
37
+ },
38
+ plugins,
39
+ }
40
+ })
@@ -1,5 +1,6 @@
1
1
  import Tailwindcss from '@tailwindcss/vite'
2
2
  import { defineConfig } from 'vitepress'
3
+ import llmstxt from 'vitepress-plugin-llms'
3
4
  import { withMermaid } from 'vitepress-plugin-mermaid'
4
5
 
5
6
  const repoctlSidebar = [
@@ -32,6 +33,12 @@ const repoctlSidebar = [
32
33
  { text: '改进并发布现代 npm 包', link: '/why/index' },
33
34
  ],
34
35
  },
36
+ {
37
+ text: 'AI',
38
+ items: [
39
+ { text: 'AI 文档入口', link: '/tools/llms-txt' },
40
+ ],
41
+ },
35
42
  {
36
43
  text: '工具专题',
37
44
  items: [
@@ -99,6 +106,7 @@ export default withMermaid(defineConfig({
99
106
  { text: '快速开始', link: '/repoctl/getting-started' },
100
107
  { text: '命令', link: '/repoctl/commands' },
101
108
  { text: '知识库', link: '/monorepo/' },
109
+ { text: 'AI 文档', link: '/tools/llms-txt' },
102
110
  { text: '工具专题', link: '/tools/turborepo' },
103
111
  ],
104
112
  outline: {
@@ -132,6 +140,7 @@ export default withMermaid(defineConfig({
132
140
  { text: 'Getting Started', link: '/en/repoctl/getting-started' },
133
141
  { text: 'Commands', link: '/en/repoctl/commands' },
134
142
  { text: 'Knowledge Base', link: '/en/knowledge/monorepo' },
143
+ { text: 'AI Docs', link: '/tools/llms-txt' },
135
144
  ],
136
145
  outline: {
137
146
  label: 'On This Page',
@@ -158,6 +167,7 @@ export default withMermaid(defineConfig({
158
167
  plugins: [
159
168
  // @ts-ignore
160
169
  Tailwindcss(),
170
+ llmstxt(),
161
171
  ],
162
172
  },
163
173
  mermaid: {},
@@ -15,6 +15,9 @@ hero:
15
15
  - theme: alt
16
16
  text: Commands
17
17
  link: /en/repoctl/commands
18
+ - theme: alt
19
+ text: AI Docs
20
+ link: /tools/llms-txt
18
21
 
19
22
  features:
20
23
  - title: Adopt existing workspaces
@@ -23,6 +26,8 @@ features:
23
26
  details: Scaffold libraries, apps, services, docs, and CLIs with interactive prompts or explicit template keys.
24
27
  - title: Make checks repeatable
25
28
  details: Preview and run local verification plans that match your lint, typecheck, build, test, and tsd workflow.
29
+ - title: AI-readable documentation
30
+ details: Generate llms.txt, llms-full.txt, and Markdown page output so AI coding tools can read the repoctl docs directly.
26
31
  ---
27
32
 
28
33
  ## Fast Path
@@ -54,4 +59,5 @@ pnpm check
54
59
  - [Configuration](./repoctl/config.md)
55
60
  - [Templates](./repoctl/templates.md)
56
61
  - [Workflows and CI](./repoctl/workflows.md)
62
+ - [AI Docs: llms.txt](../tools/llms-txt.md)
57
63
  - [Knowledge Base: Why Monorepo](./knowledge/monorepo.md)
@@ -15,6 +15,9 @@ hero:
15
15
  - theme: alt
16
16
  text: 命令速查
17
17
  link: /repoctl/commands
18
+ - theme: alt
19
+ text: AI 文档入口
20
+ link: /tools/llms-txt
18
21
 
19
22
  features:
20
23
  - title: 从已有仓库开始
@@ -23,6 +26,8 @@ features:
23
26
  details: repo new 支持交互式创建、指定模板、dry-run、JSON 输出和创建计划落盘。
24
27
  - title: 把质量门禁变成日常命令
25
28
  details: repo check 统一预览和执行 lint、typecheck、build、test、tsd 等推荐校验。
29
+ - title: 给 AI 工具的文档入口
30
+ details: 构建时自动生成 llms.txt、llms-full.txt 和页面 Markdown,让 AI 编程工具更容易读取 repoctl 文档。
26
31
  ---
27
32
 
28
33
  ## 最短路径
@@ -54,4 +59,5 @@ pnpm check
54
59
  - [配置文件](./repoctl/config.md)
55
60
  - [模板与创建](./repoctl/templates.md)
56
61
  - [工作流与 CI](./repoctl/workflows.md)
62
+ - [AI 文档入口:llms.txt](./tools/llms-txt.md)
57
63
  - [知识库:为什么往 monorepo 方向演进](./monorepo/index.md)
@@ -2,9 +2,9 @@
2
2
  "name": "@icebreakers/website",
3
3
  "type": "module",
4
4
  "version": "0.0.0",
5
- "description": "https://monorepo.icebreaker.top source code",
5
+ "description": "https://repo.icebreaker.top source code",
6
6
  "author": "ice breaker <hi@sonofmagic.top>",
7
- "homepage": "https://monorepo.icebreaker.top",
7
+ "homepage": "https://repo.icebreaker.top",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/sonofmagic/monorepo-template.git",
@@ -35,6 +35,7 @@
35
35
  "mermaid": "^11.14.0",
36
36
  "tailwindcss": "^4.2.4",
37
37
  "vitepress": "^1.6.4",
38
+ "vitepress-plugin-llms": "^1.12.2",
38
39
  "vitepress-plugin-mermaid": "^2.0.17"
39
40
  }
40
41
  }
@@ -0,0 +1,29 @@
1
+ ---
2
+ description: 使用 llms.txt 为大语言模型提供更易读取的 repoctl 文档入口。
3
+ ---
4
+
5
+ # AI 文档入口:llms.txt
6
+
7
+ `llms.txt` 是面向大语言模型的文档入口文件。它把站点中的关键页面整理成更适合模型读取的 Markdown 索引,便于 AI 工具在回答 repoctl、pnpm workspace、Turborepo 和模板用法相关问题时快速定位上下文。
8
+
9
+ 本站通过 `vitepress-plugin-llms` 在构建阶段自动生成这些文件:
10
+
11
+ - `/llms.txt`:文档索引,列出可供模型读取的页面。
12
+ - `/llms-full.txt`:把站点文档合并成单个文本文件。
13
+ - 每个页面对应的 `.md` 文件:保留页面内容的 Markdown 版本。
14
+
15
+ ## 使用方式
16
+
17
+ 访问 `https://repo.icebreaker.top/llms.txt` 可以获取当前文档的 LLM 索引。如果需要一次性提供完整上下文,可以使用 `https://repo.icebreaker.top/llms-full.txt`。
18
+
19
+ 当你在 Cursor、Claude Code、Codex 或其他 AI 编程工具里引用 repoctl 文档时,优先提供 `llms.txt`,再按需要补充具体页面链接。
20
+
21
+ ## 维护约定
22
+
23
+ 新增重要文档页面时,在 frontmatter 中补充 `description`。构建插件会把描述写入 `llms.txt` 的链接说明中,让模型更容易判断每个页面的用途。
24
+
25
+ ```md
26
+ ---
27
+ description: 说明这个页面解决的问题和适用场景。
28
+ ---
29
+ ```
@@ -1 +1 @@
1
- https://monorepo.icebreaker.top/
1
+ https://repo.icebreaker.top/
@@ -1 +1 @@
1
- https://monorepo.icebreaker.top/
1
+ https://repo.icebreaker.top/
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://unpkg.com/wrangler/config-schema.json",
3
+ "name": "monorepo-template",
4
+ "pages_build_output_dir": ".vitepress/dist"
5
+ }
@@ -53,7 +53,7 @@
53
53
  "@vue/test-utils": "^2.4.10",
54
54
  "@vue/tsconfig": "^0.9.1",
55
55
  "jsdom": "^29.1.1",
56
- "vite": "^8.0.10",
56
+ "vite": "^8.0.11",
57
57
  "vite-plugin-dts": "^5.0.0",
58
58
  "vue": "^3.5.34",
59
59
  "vue-tsc": "^3.2.8"