ubean 0.0.1 → 0.1.0-beta.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/LICENSE +21 -0
- package/bin/ubean.mjs +14 -0
- package/dist/index.d.ts +33 -2
- package/dist/index.js +34 -5
- package/dist/runtime/app.d.ts +1 -0
- package/dist/runtime/app.js +2 -0
- package/dist/runtime/i18n.d.ts +1 -0
- package/dist/runtime/i18n.js +2 -0
- package/dist/runtime/vue.d.ts +1 -0
- package/dist/runtime/vue.js +2 -0
- package/dist/vite.d.ts +23 -0
- package/dist/vite.js +52 -0
- package/dist/vue-ssr.d.ts +1 -0
- package/dist/vue-ssr.js +2 -0
- package/package.json +75 -30
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Soybean
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/bin/ubean.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* ubean CLI binary (command: `ubean`).
|
|
4
|
+
*
|
|
5
|
+
* This binary is a forwarding entry — the actual command implementation
|
|
6
|
+
* lives in `@ubean/cli`. Importing `@ubean/cli/cli` triggers `runMain(main)`
|
|
7
|
+
* at module top-level, so a bare import is sufficient.
|
|
8
|
+
*
|
|
9
|
+
* Design rationale:
|
|
10
|
+
* 1. The `ubean` package is the aggregator — bin and lib come from
|
|
11
|
+
* the same package, so users install one package and get everything.
|
|
12
|
+
* 2. CLI implementation is centralized in `@ubean/cli` for maintainability.
|
|
13
|
+
*/
|
|
14
|
+
import '@ubean/cli/cli';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,35 @@
|
|
|
1
|
+
import { InternalFetchOptions, PageAssetTags, PageRenderer, defineDataKey } from "@ubean/pages";
|
|
2
|
+
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
3
|
+
import { useRouter } from "@ubean/routing";
|
|
4
|
+
import { AppPluginConfig, CreateUbeanRouterOptions, DataCacheStore, DefineAppOptions, Head, HeadClient, HydrateIslandsOptions, IslandHydrateOptions, IslandRecord, Link, LinkProps, PageView, ResolvedAppConfig, RouteLocation, RouteLocationRaw, TypedLinkProps, UbeanAppInstance, UbeanVueContext, UseAsyncDataOptions, UseAsyncDataReturn, UseCacheViewsReturn, UsePageTransitionReturn, UseReloadSignalReturn, ViewTransitionOptions, VueHeadClient, VueI18nInstance, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/runtime";
|
|
5
|
+
import { UbeanPluginOptions as UbeanCorePluginOptions, ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
+
import { UbeanVuePluginOptions, VUE_PLUGIN_INCLUDE, ubeanVuePlugin } from "@ubean/vite";
|
|
7
|
+
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
+
import { getIslandsBootstrapScript } from "@ubean/islands";
|
|
9
|
+
import { VueRendererOptions, VueRendererRouterOptions, VueRendererSimpleOptions, createVueRenderer } from "@ubean/ssr";
|
|
10
|
+
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
11
|
+
import { I18nRoutingOptions, I18nRoutingStrategy, createI18nMiddleware, getLocalePath, getPathWithoutLocale, localeRoutes, switchLocalePath } from "@ubean/i18n/routing";
|
|
12
|
+
import { BackupOptions, FsOps, FsOpsOptions, ScaffoldOptions, ScaffoldResult, ScaffoldType, createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
13
|
+
import { DevToolsTabDefinition, clearCustomTabs, defineDevToolsTab, getCustomTabs } from "@ubean/devtools";
|
|
14
|
+
export * from "@ubean/types";
|
|
15
|
+
export * from "@ubean/utils";
|
|
16
|
+
export * from "@ubean/error";
|
|
17
|
+
export * from "@ubean/env";
|
|
18
|
+
export * from "@ubean/seo";
|
|
19
|
+
export * from "@ubean/pages";
|
|
20
|
+
export * from "@ubean/markdown";
|
|
21
|
+
export * from "@ubean/i18n";
|
|
22
|
+
export * from "@ubean/api-routes";
|
|
23
|
+
export * from "@ubean/server";
|
|
24
|
+
export * from "@ubean/app";
|
|
25
|
+
export * from "@ubean/auto-imports";
|
|
26
|
+
export * from "@ubean/prerender";
|
|
27
|
+
export * from "@ubean/preset";
|
|
28
|
+
export * from "@ubean/config";
|
|
29
|
+
export * from "@ubean/codegen";
|
|
30
|
+
export * from "@ubean/modules";
|
|
31
|
+
export * from "@ubean/routing";
|
|
1
32
|
//#region src/index.d.ts
|
|
2
|
-
declare
|
|
33
|
+
declare const logger: import("consola").ConsolaInstance;
|
|
3
34
|
//#endregion
|
|
4
|
-
export {
|
|
35
|
+
export { type AppPluginConfig, type BackupOptions, type CreateUbeanRouterOptions, type DataCacheStore, type DefineAppOptions, type DevToolsTabDefinition, type FsOps, type FsOpsOptions, Head, type HeadClient, type HydrateIslandsOptions, type I18nRoutingOptions, type I18nRoutingStrategy, type InternalFetchOptions, type IslandHydrateOptions, type IslandRecord, Link, type LinkProps, type PageAssetTags, type PageRenderer, PageView, type ResolvedAppConfig, type RouteLocation, type RouteLocationRaw, type ScaffoldOptions, type ScaffoldResult, type ScaffoldType, type TypedLinkProps, type UbeanAppInstance, type UbeanCorePluginOptions, type UbeanVueContext, type UbeanVuePluginOptions, type UseAsyncDataOptions, type UseAsyncDataReturn, type UseCacheViewsReturn, type UsePageTransitionReturn, type UseReloadSignalReturn, VUE_PLUGIN_INCLUDE, type ViewTransitionOptions, type VueHeadClient, type VueI18nInstance, type VueRendererOptions, type VueRendererRouterOptions, type VueRendererSimpleOptions, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineMeta, definePage, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getIslandsBootstrapScript, getLocalePath, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanVuePlugin, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, validator, withViewTransition };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,36 @@
|
|
|
1
|
+
import { defineDataKey } from "@ubean/pages";
|
|
2
|
+
import { rawSql as sqlRawAlias } from "@ubean/server";
|
|
3
|
+
import { useRouter } from "@ubean/routing";
|
|
4
|
+
import { Head, Link, PageView, addLocale as addVueLocale, applyAppConfig, clearCache, clearLocales as clearVueLocales, clearPageTransition, collectIslands, createDataCacheStore, createDefaultAppConfig, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, defineApp, defineLocale as defineVueLocale, defineMeta, definePage, detectBrowserLocale as detectVueBrowserLocale, detectLocale as detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractLocaleFromPath as extractVueLocaleFromPath, extractPageData, getCacheEnabled, getCachedViewNames, getDefaultLocale as getDefaultVueLocale, getExcludedViewNames, getI18nConfig as getVueI18nConfig, getInitialPageData, getLocale as getVueLocale, getLocaleDir as getVueLocaleDir, getLocaleName as getVueLocaleName, getNavigationType, getPageTransitionName, getRegisteredLocales as getVueRegisteredLocales, getReloadCounter, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, localizePath as localizeVuePath, mergeLocale as mergeVueLocale, onLocaleChange as onVueLocaleChange, reloadPage, resetRouteCache, resolveRoute, setI18nConfig as setVueI18nConfig, setLocale as setVueLocale, setPageTransition, supportsViewTransitions, switchLocalePath as switchVueLocalePath, t as tVue, useCacheViews, useHead, useHeadInstance, useI18n as useVueI18n, useLocalePath, usePage, usePageTransition, useReloadSignal, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, withViewTransition } from "@ubean/runtime";
|
|
5
|
+
import { ubeanPlugin, ubeanPlugin as ubeanCorePlugin } from "@ubean/build/vite";
|
|
6
|
+
import { VUE_PLUGIN_INCLUDE, ubeanVuePlugin } from "@ubean/vite";
|
|
7
|
+
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
8
|
+
import { getIslandsBootstrapScript } from "@ubean/islands";
|
|
9
|
+
import { createVueRenderer } from "@ubean/ssr";
|
|
10
|
+
import { describeRoute, openAPIRouteHandler, resolver, validator } from "hono-openapi";
|
|
11
|
+
import { createI18nMiddleware, getLocalePath, getPathWithoutLocale, localeRoutes, switchLocalePath } from "@ubean/i18n/routing";
|
|
12
|
+
import { createFsOps, deleteScaffold, listScaffoldableFiles, recoverScaffold, scaffold } from "@ubean/cli";
|
|
13
|
+
import { clearCustomTabs, defineDevToolsTab, getCustomTabs } from "@ubean/devtools";
|
|
14
|
+
import { consola } from "consola";
|
|
15
|
+
export * from "@ubean/types";
|
|
16
|
+
export * from "@ubean/utils";
|
|
17
|
+
export * from "@ubean/error";
|
|
18
|
+
export * from "@ubean/env";
|
|
19
|
+
export * from "@ubean/seo";
|
|
20
|
+
export * from "@ubean/pages";
|
|
21
|
+
export * from "@ubean/markdown";
|
|
22
|
+
export * from "@ubean/i18n";
|
|
23
|
+
export * from "@ubean/api-routes";
|
|
24
|
+
export * from "@ubean/server";
|
|
25
|
+
export * from "@ubean/app";
|
|
26
|
+
export * from "@ubean/auto-imports";
|
|
27
|
+
export * from "@ubean/prerender";
|
|
28
|
+
export * from "@ubean/preset";
|
|
29
|
+
export * from "@ubean/config";
|
|
30
|
+
export * from "@ubean/codegen";
|
|
31
|
+
export * from "@ubean/modules";
|
|
32
|
+
export * from "@ubean/routing";
|
|
1
33
|
//#region src/index.ts
|
|
2
|
-
|
|
3
|
-
return "";
|
|
4
|
-
}
|
|
5
|
-
|
|
34
|
+
const logger = consola.withTag("ubean");
|
|
6
35
|
//#endregion
|
|
7
|
-
export {
|
|
36
|
+
export { Head, Link, PageView, VUE_PLUGIN_INCLUDE, addVueLocale, applyAppConfig, clearCache, clearCustomTabs, clearPageTransition, clearVueLocales, collectIslands, createDataCacheStore, createDefaultAppConfig, createFsOps, createI18nMiddleware, createLinkHandler, createUbeanRouter, createUbeanSSRApp, createUseAsyncData, createVueRenderer, defineApp, defineDataKey, defineDevToolsTab, defineMeta, definePage, defineVueLocale, deleteScaffold, describeRoute, detectVueBrowserLocale, detectVueLocale, disablePageCache, enablePageCache, excludePageCache, extractPageData, extractVueLocaleFromPath, getCacheEnabled, getCachedViewNames, getCustomTabs, getDefaultVueLocale, getExcludedViewNames, getInitialPageData, getIslandsBootstrapScript, getLocalePath, getNavigationType, getPageTransitionName, getPathWithoutLocale, getReloadCounter, getVueI18nConfig, getVueLocale, getVueLocaleDir, getVueLocaleName, getVueRegisteredLocales, hydrateIsland, hydrateIslands, includePageCache, initCachedViewsFromRoutes, injectHead, invalidateCache, invalidatePageCache, isActiveRoute, isCacheEnabled, isPageCached, isPageExcluded, isReloading, listScaffoldableFiles, localeRoutes, localizeVuePath, logger, mergeVueLocale, onVueLocaleChange, openAPIRouteHandler, recoverScaffold, reloadPage, resetRouteCache, resolveRoute, resolver, scaffold, setPageTransition, setVueI18nConfig, setVueLocale, sqlRawAlias, supportsViewTransitions, switchLocalePath, switchVueLocalePath, tVue, ubeanCorePlugin, ubeanIslandsPlugin, ubeanPlugin, ubeanVuePlugin, useCacheViews, useHead, useHeadInstance, useLocalePath, usePage, usePageTransition, useReloadSignal, useRouter, useServerData, useSwitchLocalePath, useViewTransition, useViewTransitionState, useVueI18n, validator, withViewTransition };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ubean/app";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ubean/i18n";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ubean/runtime";
|
package/dist/vite.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UbeanPluginOptions } from "@ubean/build/vite";
|
|
2
|
+
import { UbeanVuePluginOptions } from "@ubean/vite";
|
|
3
|
+
import { Plugin } from "vite";
|
|
4
|
+
//#region src/vite.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* ubean 默认 Vite 插件组合。
|
|
7
|
+
*
|
|
8
|
+
* 返回一个扁平的 `Plugin[]`,包含:
|
|
9
|
+
* 1. `ubeanCorePlugin` — 框架无关的核心插件(路由扫描、虚拟模块、宏转换)
|
|
10
|
+
* 2. `ubeanVuePlugin` — Vue 专属插件(页面/入口虚拟模块、自动导入、组件解析)
|
|
11
|
+
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `client:*` 指令转换)
|
|
12
|
+
*
|
|
13
|
+
* Config 解析顺序:
|
|
14
|
+
* 1. 显式传入的 `options.config`
|
|
15
|
+
* 2. `tryGetConfig()` 返回的全局缓存(CLI `dev`/`build` 命令已加载时可用)
|
|
16
|
+
* 3. 同步 `loadUbeanConfig()`(仅在以上两者均未命中时调用)
|
|
17
|
+
*
|
|
18
|
+
* 注意:此函数返回 `Plugin[]`,消费者可直接展开使用 `...ubeanPlugin()`,
|
|
19
|
+
* 也可以整体作为一个数组传入 `plugins` 字段。
|
|
20
|
+
*/
|
|
21
|
+
declare function ubeanPlugin(options?: UbeanPluginOptions & Partial<UbeanVuePluginOptions>): Plugin[];
|
|
22
|
+
//#endregion
|
|
23
|
+
export { type UbeanPluginOptions, type UbeanVuePluginOptions, ubeanPlugin };
|
package/dist/vite.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { loadUbeanConfig, tryGetConfig } from "@ubean/config";
|
|
2
|
+
import { ubeanPlugin as ubeanPlugin$1 } from "@ubean/build/vite";
|
|
3
|
+
import { ubeanVuePlugin } from "@ubean/vite";
|
|
4
|
+
import { ubeanIslandsPlugin } from "@ubean/islands/vite";
|
|
5
|
+
//#region src/vite.ts
|
|
6
|
+
/**
|
|
7
|
+
* ubean 默认 Vite 插件组合。
|
|
8
|
+
*
|
|
9
|
+
* 返回一个扁平的 `Plugin[]`,包含:
|
|
10
|
+
* 1. `ubeanCorePlugin` — 框架无关的核心插件(路由扫描、虚拟模块、宏转换)
|
|
11
|
+
* 2. `ubeanVuePlugin` — Vue 专属插件(页面/入口虚拟模块、自动导入、组件解析)
|
|
12
|
+
* 3. `ubeanIslandsPlugin` — Islands 架构插件(SFC 中 `client:*` 指令转换)
|
|
13
|
+
*
|
|
14
|
+
* Config 解析顺序:
|
|
15
|
+
* 1. 显式传入的 `options.config`
|
|
16
|
+
* 2. `tryGetConfig()` 返回的全局缓存(CLI `dev`/`build` 命令已加载时可用)
|
|
17
|
+
* 3. 同步 `loadUbeanConfig()`(仅在以上两者均未命中时调用)
|
|
18
|
+
*
|
|
19
|
+
* 注意:此函数返回 `Plugin[]`,消费者可直接展开使用 `...ubeanPlugin()`,
|
|
20
|
+
* 也可以整体作为一个数组传入 `plugins` 字段。
|
|
21
|
+
*/
|
|
22
|
+
function ubeanPlugin(options = {}) {
|
|
23
|
+
let config = options.config ?? tryGetConfig();
|
|
24
|
+
if (!config) config = loadUbeanConfigSync();
|
|
25
|
+
if (!config) throw new Error("[ubean] ubeanPlugin requires a resolved config. Pass it explicitly: `ubeanPlugin({ config: await loadUbeanConfig() })`, or use the individual plugins from @ubean/build/vite (auto-loads config in buildStart).");
|
|
26
|
+
return [
|
|
27
|
+
ubeanPlugin$1({ config }),
|
|
28
|
+
...ubeanVuePlugin({
|
|
29
|
+
config,
|
|
30
|
+
ssr: options.ssr
|
|
31
|
+
}),
|
|
32
|
+
ubeanIslandsPlugin()
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 同步加载 ubean 配置的兜底工具。
|
|
37
|
+
*
|
|
38
|
+
* `loadUbeanConfig` 是异步的,但在大多数场景下 c12 已经缓存了配置
|
|
39
|
+
* (CLI 命令在调用 vite 之前已加载),`tryGetConfig` 会命中。
|
|
40
|
+
* 此函数仅在 `tryGetConfig` 未命中时尝试同步触发加载并返回缓存结果,
|
|
41
|
+
* 若仍不可用则返回 undefined(由调用方决定是否抛错)。
|
|
42
|
+
*/
|
|
43
|
+
function loadUbeanConfigSync() {
|
|
44
|
+
try {
|
|
45
|
+
loadUbeanConfig();
|
|
46
|
+
return tryGetConfig();
|
|
47
|
+
} catch {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { ubeanPlugin };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@ubean/ssr";
|
package/dist/vue-ssr.js
ADDED
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ubean",
|
|
3
|
-
"version": "0.0.1",
|
|
3
|
+
"version": "0.1.0-beta.1",
|
|
4
|
+
"description": "Vue-first full-stack meta-framework built on Vite-Plus with Hono (aggregator of all @ubean/* subpackages)",
|
|
5
|
+
"bin": {
|
|
6
|
+
"ubean": "./bin/ubean.mjs"
|
|
7
|
+
},
|
|
4
8
|
"files": [
|
|
5
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"bin"
|
|
6
11
|
],
|
|
7
12
|
"type": "module",
|
|
8
13
|
"main": "./dist/index.js",
|
|
@@ -11,41 +16,81 @@
|
|
|
11
16
|
"exports": {
|
|
12
17
|
".": {
|
|
13
18
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"import": "./dist/index.js"
|
|
15
|
-
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./vite": {
|
|
22
|
+
"types": "./dist/vite.d.ts",
|
|
23
|
+
"import": "./dist/vite.js"
|
|
24
|
+
},
|
|
25
|
+
"./vue-ssr": {
|
|
26
|
+
"types": "./dist/vue-ssr.d.ts",
|
|
27
|
+
"import": "./dist/vue-ssr.js"
|
|
28
|
+
},
|
|
29
|
+
"./runtime/vue": {
|
|
30
|
+
"types": "./dist/runtime/vue.d.ts",
|
|
31
|
+
"import": "./dist/runtime/vue.js"
|
|
32
|
+
},
|
|
33
|
+
"./runtime/app": {
|
|
34
|
+
"types": "./dist/runtime/app.d.ts",
|
|
35
|
+
"import": "./dist/runtime/app.js"
|
|
36
|
+
},
|
|
37
|
+
"./runtime/i18n": {
|
|
38
|
+
"types": "./dist/runtime/i18n.d.ts",
|
|
39
|
+
"import": "./dist/runtime/i18n.js"
|
|
16
40
|
}
|
|
17
41
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@hono/standard-validator": "^0.3.0",
|
|
44
|
+
"@standard-community/standard-json": "^0.3.5",
|
|
45
|
+
"@standard-community/standard-openapi": "^0.2.9",
|
|
46
|
+
"consola": "^3.4.2",
|
|
47
|
+
"hono": "4.12.32",
|
|
48
|
+
"hono-openapi": "^1.3.1",
|
|
49
|
+
"@ubean/api-routes": "0.1.0-beta.1",
|
|
50
|
+
"@ubean/app": "0.1.0-beta.1",
|
|
51
|
+
"@ubean/build": "0.1.0-beta.1",
|
|
52
|
+
"@ubean/auto-imports": "0.1.0-beta.1",
|
|
53
|
+
"@ubean/cli": "0.1.0-beta.1",
|
|
54
|
+
"@ubean/codegen": "0.1.0-beta.1",
|
|
55
|
+
"@ubean/config": "0.1.0-beta.1",
|
|
56
|
+
"@ubean/dev-server": "0.1.0-beta.1",
|
|
57
|
+
"@ubean/devtools": "0.1.0-beta.1",
|
|
58
|
+
"@ubean/env": "0.1.0-beta.1",
|
|
59
|
+
"@ubean/error": "0.1.0-beta.1",
|
|
60
|
+
"@ubean/i18n": "0.1.0-beta.1",
|
|
61
|
+
"@ubean/islands": "0.1.0-beta.1",
|
|
62
|
+
"@ubean/markdown": "0.1.0-beta.1",
|
|
63
|
+
"@ubean/modules": "0.1.0-beta.1",
|
|
64
|
+
"@ubean/pages": "0.1.0-beta.1",
|
|
65
|
+
"@ubean/prerender": "0.1.0-beta.1",
|
|
66
|
+
"@ubean/routing": "0.1.0-beta.1",
|
|
67
|
+
"@ubean/preset": "0.1.0-beta.1",
|
|
68
|
+
"@ubean/ssr": "0.1.0-beta.1",
|
|
69
|
+
"@ubean/seo": "0.1.0-beta.1",
|
|
70
|
+
"@ubean/runtime": "0.1.0-beta.1",
|
|
71
|
+
"@ubean/server": "0.1.0-beta.1",
|
|
72
|
+
"@ubean/types": "0.1.0-beta.1",
|
|
73
|
+
"@ubean/utils": "0.1.0-beta.1",
|
|
74
|
+
"@ubean/vite": "0.1.0-beta.1"
|
|
20
75
|
},
|
|
21
|
-
"dependencies": {},
|
|
22
76
|
"devDependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"simple-git-hooks": "^2.13.1",
|
|
29
|
-
"tsdown": "^0.21.4",
|
|
30
|
-
"tsx": "^4.21.0",
|
|
31
|
-
"typescript": "^5.9.3"
|
|
77
|
+
"@types/node": "^26.1.1",
|
|
78
|
+
"typescript": "6.0.3",
|
|
79
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.6",
|
|
80
|
+
"vite-plus": "0.2.6",
|
|
81
|
+
"vue": "^3.5.40"
|
|
32
82
|
},
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"pre-commit": "pnpm typecheck && pnpm lint-staged"
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"vue": "^3.0.0"
|
|
36
85
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
86
|
+
"peerDependenciesMeta": {
|
|
87
|
+
"vue": {
|
|
88
|
+
"optional": true
|
|
89
|
+
}
|
|
39
90
|
},
|
|
40
91
|
"scripts": {
|
|
41
|
-
"build": "
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"lint": "oxlint --fix",
|
|
45
|
-
"fmt": "oxfmt",
|
|
46
|
-
"publish-pkg": "pnpm publish --access public",
|
|
47
|
-
"release": "soy release",
|
|
48
|
-
"typecheck": "tsc --noEmit --skipLibCheck",
|
|
49
|
-
"upkg": "soy ncu"
|
|
92
|
+
"build": "vp pack",
|
|
93
|
+
"dev": "vp pack --watch",
|
|
94
|
+
"typecheck": "tsc --noEmit --skipLibCheck"
|
|
50
95
|
}
|
|
51
96
|
}
|