create-fluixi 0.1.0-alpha.7 → 0.1.0-alpha.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fluixi",
3
- "version": "0.1.0-alpha.7",
3
+ "version": "0.1.0-alpha.8",
4
4
  "license": "MIT",
5
5
  "description": "Scaffold a new Fluixi app — `npm create fluixi <dir>`.",
6
6
  "type": "module",
@@ -11,5 +11,5 @@
11
11
  "types": ["vite/client"],
12
12
  "plugins": [{ "name": "@fluixi/ts-plugin" }]
13
13
  },
14
- "include": ["src", "vite.config.ts"]
14
+ "include": ["src", "fluixi.d.ts", "vite.config.ts"]
15
15
  }
@@ -9,5 +9,5 @@
9
9
  "types": ["vite/client"],
10
10
  "plugins": [{ "name": "@fluixi/ts-plugin" }]
11
11
  },
12
- "include": ["src", "vite.config.ts"]
12
+ "include": ["src", "fluixi.d.ts", "vite.config.ts"]
13
13
  }
@@ -1,5 +1,10 @@
1
1
  import { defineConfig } from '@fluixi/start/config';
2
+ import { nodeAdapter } from '@fluixi/start/adapter';
2
3
 
3
4
  export default defineConfig({
4
5
  port: 3000,
6
+ // `pnpm start` runs a Node process from this directory, so the framework stays an
7
+ // import rather than being copied into dist/server. Swap in a deploy adapter —
8
+ // cloudflare, netlify, vercel — to get the layout that platform expects.
9
+ adapter: nodeAdapter,
5
10
  });
@@ -1,6 +1,6 @@
1
1
  import { Router, Outlet, createMemoryHistory } from '@fluixi/start/router';
2
2
  import { Suspense } from '@fluixi/core';
3
- import { routes } from 'virtual:fluixi-routes';
3
+ import { routes } from '@fluixi/core/routes';
4
4
 
5
5
  // Shell layout around the routed page. File-routes (src/routes/*) are lazy, so the
6
6
  // <Outlet/> sits under <Suspense> — async SSR resolves their content server-side.
@@ -13,5 +13,5 @@ export function renderStream(url: string): ReadableStream<Uint8Array> {
13
13
 
14
14
  // Server-function RPC dispatch — re-exported so the dispatcher shares the registry that
15
15
  // this app's `"use server"` modules populate. @fluixi/start routes RPC calls here.
16
- import 'virtual:fluixi-server-fns'; // registers every "use server" module (incl. lazy routes)
16
+ import '@fluixi/start/server-fns'; // registers every "use server" module (incl. lazy routes)
17
17
  export { isServerFnRequest, handleServerFn } from '@fluixi/start/server-fn';
@@ -11,5 +11,5 @@
11
11
  "types": ["node", "vite/client"],
12
12
  "plugins": [{ "name": "@fluixi/ts-plugin" }]
13
13
  },
14
- "include": ["src", "fluixi.config.ts"]
14
+ "include": ["src", "fluixi.d.ts", "fluixi.config.ts"]
15
15
  }
@@ -1,5 +1,10 @@
1
1
  import { defineConfig } from '@fluixi/start/config';
2
+ import { nodeAdapter } from '@fluixi/start/adapter';
2
3
 
3
4
  export default defineConfig({
4
5
  port: 3000,
6
+ // `pnpm start` runs a Node process from this directory, so the framework stays an
7
+ // import rather than being copied into dist/server. Swap in a deploy adapter —
8
+ // cloudflare, netlify, vercel — to get the layout that platform expects.
9
+ adapter: nodeAdapter,
5
10
  });
@@ -1,7 +1,7 @@
1
1
  import { Router, Outlet, createMemoryHistory } from '@fluixi/start/router';
2
2
  import { Suspense } from '@fluixi/core';
3
3
  import { html } from '@fluixi/start';
4
- import { routes } from 'virtual:fluixi-routes';
4
+ import { routes } from '@fluixi/core/routes';
5
5
 
6
6
  // Shell layout around the routed page. File-routes (src/routes/*) are lazy, so the
7
7
  // <Outlet/> sits under <Suspense> — async SSR resolves their content server-side.
@@ -13,5 +13,5 @@ export function renderStream(url: string): ReadableStream<Uint8Array> {
13
13
 
14
14
  // Server-function RPC dispatch — re-exported so the dispatcher shares the registry that
15
15
  // this app's `"use server"` modules populate. @fluixi/start routes RPC calls here.
16
- import 'virtual:fluixi-server-fns'; // registers every "use server" module (incl. lazy routes)
16
+ import '@fluixi/start/server-fns'; // registers every "use server" module (incl. lazy routes)
17
17
  export { isServerFnRequest, handleServerFn } from '@fluixi/start/server-fn';
@@ -9,5 +9,5 @@
9
9
  "types": ["node", "vite/client"],
10
10
  "plugins": [{ "name": "@fluixi/ts-plugin" }]
11
11
  },
12
- "include": ["src", "fluixi.config.ts"]
12
+ "include": ["src", "fluixi.d.ts", "fluixi.config.ts"]
13
13
  }
@@ -1,7 +0,0 @@
1
- // Auto-generated by @fluixi/core fluixiRoutesPlugin — do not edit manually
2
- declare module 'virtual:fluixi-routes' {
3
- import type { RouteDefinition } from '@fluixi/core/router-next';
4
- export const routes: RouteDefinition[];
5
- }
6
-
7
- declare module 'virtual:fluixi-server-fns';
@@ -1,7 +0,0 @@
1
- // Auto-generated by @fluixi/core fluixiRoutesPlugin — do not edit manually
2
- declare module 'virtual:fluixi-routes' {
3
- import type { RouteDefinition } from '@fluixi/core/router-next';
4
- export const routes: RouteDefinition[];
5
- }
6
-
7
- declare module 'virtual:fluixi-server-fns';