create-fluixi 0.1.0-alpha.12 → 0.1.0-alpha.14
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.js +842 -373
- package/package.json +18 -2
- package/template-spa/_gitignore +1 -0
- package/template-spa/package.json +1 -0
- package/template-spa-html/_gitignore +1 -0
- package/template-spa-html/package.json +1 -0
- package/template-ssr/_gitignore +1 -0
- package/template-ssr/package.json +1 -0
- package/template-ssr/src/entry-server.ts +5 -0
- package/template-ssr-html/_gitignore +1 -0
- package/template-ssr-html/package.json +1 -0
- package/template-ssr-html/src/entry-server.ts +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fluixi",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.14",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Ibrahima Touré",
|
|
6
6
|
"description": "Scaffold a new Fluixi app — `npm create fluixi <dir>`.",
|
|
@@ -26,7 +26,23 @@
|
|
|
26
26
|
"url": "https://github.com/fluixi/core.git",
|
|
27
27
|
"directory": "packages/create"
|
|
28
28
|
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"esbuild": "^0.24.0",
|
|
31
|
+
"vitest": "^1.6.1",
|
|
32
|
+
"@fluixi/cli": "0.1.0-alpha.84",
|
|
33
|
+
"@fluixi/compiler": "1.0.0-alpha.93"
|
|
34
|
+
},
|
|
35
|
+
"nx": {
|
|
36
|
+
"targets": {
|
|
37
|
+
"test": {
|
|
38
|
+
"dependsOn": [
|
|
39
|
+
"build"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
29
44
|
"scripts": {
|
|
30
|
-
"build": "tsc -p tsconfig.lib.json"
|
|
45
|
+
"build": "tsc -p tsconfig.lib.json && esbuild src/index.ts --bundle --platform=node --format=esm --target=node18 --outfile=dist/index.js",
|
|
46
|
+
"test": "vitest run"
|
|
31
47
|
}
|
|
32
48
|
}
|
package/template-spa/_gitignore
CHANGED
package/template-ssr/_gitignore
CHANGED
|
@@ -15,3 +15,8 @@ export function renderStream(url: string): ReadableStream<Uint8Array> {
|
|
|
15
15
|
// this app's `"use server"` modules populate. @fluixi/start routes RPC calls here.
|
|
16
16
|
import '@fluixi/start/server-fns'; // registers every "use server" module (incl. lazy routes)
|
|
17
17
|
export { isServerFnRequest, handleServerFn } from '@fluixi/start/server-fn';
|
|
18
|
+
|
|
19
|
+
// File-based API routes under src/api. The dev server dispatches to them itself; a built
|
|
20
|
+
// server finds them through this, and without it every /api request would fall through
|
|
21
|
+
// to the page renderer. Harmless when there are no routes.
|
|
22
|
+
export { isApiRequest, handleApiRequest } from '@fluixi/start/api-routes';
|
|
@@ -15,3 +15,8 @@ export function renderStream(url: string): ReadableStream<Uint8Array> {
|
|
|
15
15
|
// this app's `"use server"` modules populate. @fluixi/start routes RPC calls here.
|
|
16
16
|
import '@fluixi/start/server-fns'; // registers every "use server" module (incl. lazy routes)
|
|
17
17
|
export { isServerFnRequest, handleServerFn } from '@fluixi/start/server-fn';
|
|
18
|
+
|
|
19
|
+
// File-based API routes under src/api. The dev server dispatches to them itself; a built
|
|
20
|
+
// server finds them through this, and without it every /api request would fall through
|
|
21
|
+
// to the page renderer. Harmless when there are no routes.
|
|
22
|
+
export { isApiRequest, handleApiRequest } from '@fluixi/start/api-routes';
|