Skip to content

Commit 23bf11a

Browse files
committed
build(Makefile): 添加 preview-docs
1 parent 1f73a27 commit 23bf11a

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ close #1
141141
- packages/components 前端组件库;
142142
- packages/illustrations 为前端组件库提供的插图;
143143
- packages/admin 前端的后台管理界面;
144+
- packages/themes 前端的主题库;
144145

145146
### 本地化
146147

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ watch-docs:
113113
# make watch -j2
114114
watch: watch-server watch-admin
115115

116+
########################### preview ###################################
117+
118+
.PHONY: preview preview-docs
119+
120+
preview-docs:
121+
pnpm --filter=./apps/docs run preview
122+
116123
########################### test ###################################
117124

118125
.PHONY: test test-go test-ts lint-ts

apps/dashboard/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"jsxImportSource": "solid-js",
77
"paths": {
88
"@dashboard/*": ["./src/*"]
9-
},
9+
}
1010
},
1111
"include": ["src/**/*.ts", "src/**/*.mts", "src/**/*.mjs", "src/**/*.js", "src/**/*.tsx"],
1212
"exclude": ["dist"],

packages/components/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default defineConfig({
5757
postBanner: buildPostBanner(pkg),
5858
},
5959
// 不需要打包的内容
60-
external: ['solid-js', '@solidjs/router', '@cmfx/core', 'shiki/bundle/full'],
60+
external: ['solid-js', '@solidjs/router', '@cmfx/core', '@cmfx/themes', 'shiki/bundle/full'],
6161
},
6262
},
6363
});

0 commit comments

Comments
 (0)