@acmekit/docs-bundler 2.13.41
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.mts +31 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +751 -0
- package/dist/index.mjs +719 -0
- package/package.json +49 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IRouter } from 'express';
|
|
2
|
+
import { PluginDocsSource } from '@acmekit/docs-shared';
|
|
3
|
+
import { InlineConfig } from 'vite';
|
|
4
|
+
|
|
5
|
+
type DocsBundlerOptions = {
|
|
6
|
+
/** Base path where docs are served (e.g. "/docs") */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Output directory for production build */
|
|
9
|
+
outDir: string;
|
|
10
|
+
/** Source directories containing src/docs/ files */
|
|
11
|
+
sources?: string[];
|
|
12
|
+
/** Pre-built plugin docs paths */
|
|
13
|
+
plugins?: string[];
|
|
14
|
+
/** Plugin docs sources (local plugins with src/docs/) */
|
|
15
|
+
pluginSources?: PluginDocsSource[];
|
|
16
|
+
/** Backend URL for API calls */
|
|
17
|
+
backendUrl?: string;
|
|
18
|
+
/** Custom Vite configuration modifier */
|
|
19
|
+
vite?: (config: InlineConfig) => InlineConfig;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
declare function develop(options: DocsBundlerOptions): Promise<IRouter>;
|
|
23
|
+
|
|
24
|
+
type ServeOptions = {
|
|
25
|
+
outDir: string;
|
|
26
|
+
};
|
|
27
|
+
declare function serve(options: ServeOptions): Promise<IRouter>;
|
|
28
|
+
|
|
29
|
+
declare function build(options: DocsBundlerOptions): Promise<void>;
|
|
30
|
+
|
|
31
|
+
export { type DocsBundlerOptions, build, develop, serve };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IRouter } from 'express';
|
|
2
|
+
import { PluginDocsSource } from '@acmekit/docs-shared';
|
|
3
|
+
import { InlineConfig } from 'vite';
|
|
4
|
+
|
|
5
|
+
type DocsBundlerOptions = {
|
|
6
|
+
/** Base path where docs are served (e.g. "/docs") */
|
|
7
|
+
path: string;
|
|
8
|
+
/** Output directory for production build */
|
|
9
|
+
outDir: string;
|
|
10
|
+
/** Source directories containing src/docs/ files */
|
|
11
|
+
sources?: string[];
|
|
12
|
+
/** Pre-built plugin docs paths */
|
|
13
|
+
plugins?: string[];
|
|
14
|
+
/** Plugin docs sources (local plugins with src/docs/) */
|
|
15
|
+
pluginSources?: PluginDocsSource[];
|
|
16
|
+
/** Backend URL for API calls */
|
|
17
|
+
backendUrl?: string;
|
|
18
|
+
/** Custom Vite configuration modifier */
|
|
19
|
+
vite?: (config: InlineConfig) => InlineConfig;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
declare function develop(options: DocsBundlerOptions): Promise<IRouter>;
|
|
23
|
+
|
|
24
|
+
type ServeOptions = {
|
|
25
|
+
outDir: string;
|
|
26
|
+
};
|
|
27
|
+
declare function serve(options: ServeOptions): Promise<IRouter>;
|
|
28
|
+
|
|
29
|
+
declare function build(options: DocsBundlerOptions): Promise<void>;
|
|
30
|
+
|
|
31
|
+
export { type DocsBundlerOptions, build, develop, serve };
|