@rspress-theme-anatole/core 0.0.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/dist/index.d.ts +40 -0
- package/dist/index.js +1707 -0
- package/dist/loader.d.ts +86 -0
- package/dist/loader.js +582 -0
- package/dist/runtime/App.d.ts +10 -0
- package/dist/runtime/App.js +111 -0
- package/dist/runtime/clientEntry.d.ts +1 -0
- package/dist/runtime/clientEntry.js +77 -0
- package/dist/runtime/ssrEntry.d.ts +6 -0
- package/dist/runtime/ssrEntry.js +32 -0
- package/dist/runtime/tsconfig.js +4 -0
- package/index.html +15 -0
- package/package.json +104 -0
- package/runtime.ts +1 -0
- package/theme.ts +2 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { mergeDocConfig } from '@rspress-theme-anatole/shared/node-utils';
|
|
2
|
+
import type { RsbuildConfig } from '@rsbuild/core';
|
|
3
|
+
import { RsbuildInstance } from '@rsbuild/core';
|
|
4
|
+
import { UserConfig } from '@rspress-theme-anatole/shared';
|
|
5
|
+
|
|
6
|
+
export declare function build(options: BuildOptions): Promise<void>;
|
|
7
|
+
|
|
8
|
+
declare interface BuildOptions {
|
|
9
|
+
appDirectory: string;
|
|
10
|
+
docDirectory: string;
|
|
11
|
+
config: UserConfig;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare function dev(options: DevOptions): Promise<ServerInstance>;
|
|
15
|
+
|
|
16
|
+
declare interface DevOptions {
|
|
17
|
+
appDirectory: string;
|
|
18
|
+
docDirectory: string;
|
|
19
|
+
config: UserConfig;
|
|
20
|
+
extraBuilderConfig?: RsbuildConfig;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { mergeDocConfig }
|
|
24
|
+
|
|
25
|
+
export declare function serve(options: ServeOptions): Promise<ReturnType<RsbuildInstance['preview']>>;
|
|
26
|
+
|
|
27
|
+
declare interface ServeOptions {
|
|
28
|
+
config: UserConfig;
|
|
29
|
+
port?: number;
|
|
30
|
+
host?: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare interface ServerInstance {
|
|
34
|
+
close: () => Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
export * from "@rspress-theme-anatole/shared";
|
|
39
|
+
|
|
40
|
+
export { }
|