@ubean/build 0.2.2 → 0.3.0

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/vue.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import { t as VirtualModule } from "./virtual-registry-BF0jYPle.js";
2
+ import { ResolvedConfig } from "@ubean/config";
3
+ import { ScannedAppEntry, ScannedLayout, ScannedPageRoute, ScannedServerEntry } from "@ubean/scan";
4
+ import { Plugin } from "vite";
5
+ //#region src/vue-plugin.d.ts
6
+ interface UbeanViteOptions {
7
+ config: ResolvedConfig;
8
+ ssr?: boolean;
9
+ }
10
+ declare const VUE_PLUGIN_INCLUDE: RegExp[];
11
+ declare function ubeanVite(options: UbeanViteOptions): Plugin[];
12
+ //#endregion
13
+ //#region src/vue-virtual-modules.d.ts
14
+ /**
15
+ * 页面虚拟模块(`virtual:ubean-pages`)。
16
+ *
17
+ * 生成逻辑已沉淀到 `@ubean/vue/vite` 的 `generatePagesModuleSource`
18
+ * (页面路由唯一所有者,与精简内核 `virtual:ubean-vue-routes` 共用同一
19
+ * 生成器)。此处仅保留框架层的模块 ID 注册(`defineVirtualModule`)与
20
+ * 兼容签名;route meta 相比旧版额外携带 `matchers` / `transition` /
21
+ * `requiresAuth` / `head` / `definePage({ meta })` 透传字段(超集,
22
+ * 使 `createMatcherGuard()` 与 SPA head guard 在框架模式下同样可用)。
23
+ */
24
+ declare function createVuePagesVirtualModule(pages: ScannedPageRoute[], layouts: ScannedLayout[], notFoundPage?: ScannedPageRoute, loadingPage?: ScannedPageRoute, errorPage?: ScannedPageRoute, localeVueParam?: string): VirtualModule;
25
+ declare function createVueAppEntryVirtualModule(appEntry?: ScannedAppEntry): VirtualModule;
26
+ declare function createClientEntryVirtualModule(): VirtualModule;
27
+ declare function createServerEntryVirtualModule(serverEntry?: ScannedServerEntry): VirtualModule;
28
+ //#endregion
29
+ export { type UbeanViteOptions, VUE_PLUGIN_INCLUDE, createClientEntryVirtualModule, createServerEntryVirtualModule, createVueAppEntryVirtualModule, createVuePagesVirtualModule, ubeanVite as default, ubeanVite };
package/dist/vue.js ADDED
@@ -0,0 +1,2 @@
1
+ import { a as createVueAppEntryVirtualModule, i as createServerEntryVirtualModule, n as ubeanVite, o as createVuePagesVirtualModule, r as createClientEntryVirtualModule, t as VUE_PLUGIN_INCLUDE } from "./vue-BJO18Lwe.js";
2
+ export { VUE_PLUGIN_INCLUDE, createClientEntryVirtualModule, createServerEntryVirtualModule, createVueAppEntryVirtualModule, createVuePagesVirtualModule, ubeanVite as default, ubeanVite };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ubean/build",
3
- "version": "0.2.2",
4
- "description": "Core Vite plugin (framework-agnostic) for ubean (ubeanPlugin, virtual modules: routes/pages/meta/app-config/locales, macros)",
3
+ "version": "0.3.0",
4
+ "description": "Vite plugins, production build, SSG prerender, type codegen, and Server Actions plugin for ubean",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -18,31 +18,54 @@
18
18
  "types": "./dist/vite.d.ts",
19
19
  "import": "./dist/vite.js"
20
20
  },
21
+ "./vue": {
22
+ "types": "./dist/vue.d.ts",
23
+ "import": "./dist/vue.js"
24
+ },
21
25
  "./production": {
22
26
  "types": "./dist/production.d.ts",
23
27
  "import": "./dist/production.js"
28
+ },
29
+ "./prerender": {
30
+ "types": "./dist/prerender.d.ts",
31
+ "import": "./dist/prerender.js"
32
+ },
33
+ "./codegen": {
34
+ "types": "./dist/codegen/index.d.ts",
35
+ "import": "./dist/codegen/index.js"
36
+ },
37
+ "./actions": {
38
+ "types": "./dist/actions-plugin.d.ts",
39
+ "import": "./dist/actions-plugin.js"
24
40
  }
25
41
  },
26
42
  "dependencies": {
43
+ "@intlify/unplugin-vue-i18n": "11.2.5",
27
44
  "@vitejs/plugin-vue": "^6.0.8",
45
+ "openapi-typescript": "^7.13.0",
28
46
  "oxc-transform": "^0.146.0",
29
47
  "pathe": "^2.0.3",
30
- "@ubean/build-core": "0.2.2",
31
- "@ubean/client": "0.2.2",
32
- "@ubean/config": "0.2.2",
33
- "@ubean/islands": "0.2.2",
34
- "@ubean/modules": "0.2.2",
35
- "@ubean/logger": "0.2.2",
36
- "@ubean/preset": "0.2.2",
37
- "@ubean/routes": "0.2.2",
38
- "@ubean/shared": "0.2.2",
39
- "@ubean/scan": "0.2.2",
40
- "@ubean/ssr": "0.2.2",
41
- "@ubean/vue": "0.2.2",
42
- "@ubean/vite": "0.2.2"
48
+ "tinyglobby": "^0.2.17",
49
+ "unimport": "^6.4.0",
50
+ "unplugin-auto-import": "21.1.0",
51
+ "unplugin-vue-components": "^32.1.0",
52
+ "unplugin-vue-markdown": "^32.0.0",
53
+ "vue-i18n": "11.4.8",
54
+ "@ubean/config": "0.3.0",
55
+ "@ubean/client": "0.3.0",
56
+ "@ubean/i18n": "0.3.0",
57
+ "@ubean/pages": "0.3.0",
58
+ "@ubean/islands": "0.3.0",
59
+ "@ubean/preset": "0.3.0",
60
+ "@ubean/scan": "0.3.0",
61
+ "@ubean/markdown": "0.3.0",
62
+ "@ubean/shared": "0.3.0",
63
+ "@ubean/routes": "0.3.0",
64
+ "@ubean/vue": "0.3.0"
43
65
  },
44
66
  "devDependencies": {
45
67
  "@types/node": "^26.2.0",
68
+ "hono": "4.13.3",
46
69
  "typescript": "7.0.2",
47
70
  "vite": "npm:@voidzero-dev/vite-plus-core@0.2.9",
48
71
  "vite-plus": "0.2.9"