@bndynet/vue-site 0.1.0 → 0.1.2
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/README.md +11 -2
- package/bin/vue-site.mjs +8 -2
- package/dist/composables/useTheme.d.ts +6 -2
- package/dist/create-app.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +7642 -7624
- package/dist/types.d.ts +13 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'vue';
|
|
1
|
+
import { App, Component } from 'vue';
|
|
2
2
|
import { UserConfig as ViteUserConfig } from 'vite';
|
|
3
3
|
export interface NavItem {
|
|
4
4
|
label: string;
|
|
@@ -97,6 +97,18 @@ export interface SiteConfig {
|
|
|
97
97
|
packageRepository?: string | null;
|
|
98
98
|
/** Development / build environment configuration */
|
|
99
99
|
env?: SiteEnvConfig;
|
|
100
|
+
/**
|
|
101
|
+
* Optional. Path to a module under the site root (Vite `root`), loaded once **before** the Vue app
|
|
102
|
+
* is created. Omit or leave unset to skip. Use for global side effects (polyfills, telemetry,
|
|
103
|
+
* `window` setup). Relative to root, e.g. `./bootstrap.ts` or `src/bootstrap.ts` (resolved as
|
|
104
|
+
* `/bootstrap.ts`, `/src/bootstrap.ts`).
|
|
105
|
+
*/
|
|
106
|
+
bootstrap?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Called after the app is created, context is provided, and the router is installed — before
|
|
109
|
+
* `createSiteApp` resolves (call `.mount()` after `await`). Use for `app.use()`, global directives, etc.
|
|
110
|
+
*/
|
|
111
|
+
configureApp?: (app: App) => void;
|
|
100
112
|
}
|
|
101
113
|
export interface ResolvedNavItem extends NavItem {
|
|
102
114
|
resolvedPath: string;
|