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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fluixi",
3
- "version": "0.1.0-alpha.12",
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
  }
@@ -2,3 +2,4 @@ node_modules
2
2
  dist
3
3
  *.log
4
4
  .DS_Store
5
+ .fluixi
@@ -17,6 +17,7 @@
17
17
  "devDependencies": {
18
18
  "@fluixi/ts-plugin": "alpha",
19
19
  "@fluixi/vite-plugin": "alpha",
20
+ "typescript": "^5.9.0",
20
21
  "vite": "^5.0.0"
21
22
  }
22
23
  }
@@ -2,3 +2,4 @@ node_modules
2
2
  dist
3
3
  *.log
4
4
  .DS_Store
5
+ .fluixi
@@ -16,6 +16,7 @@
16
16
  "devDependencies": {
17
17
  "@fluixi/ts-plugin": "alpha",
18
18
  "@fluixi/vite-plugin": "alpha",
19
+ "typescript": "^5.9.0",
19
20
  "vite": "^5.0.0"
20
21
  }
21
22
  }
@@ -2,3 +2,4 @@ node_modules
2
2
  dist
3
3
  *.log
4
4
  .DS_Store
5
+ .fluixi
@@ -20,6 +20,7 @@
20
20
  "devDependencies": {
21
21
  "@fluixi/ts-plugin": "alpha",
22
22
  "@types/node": "^20.0.0",
23
+ "typescript": "^5.9.0",
23
24
  "vite": "^5.0.0"
24
25
  }
25
26
  }
@@ -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';
@@ -2,3 +2,4 @@ node_modules
2
2
  dist
3
3
  *.log
4
4
  .DS_Store
5
+ .fluixi
@@ -19,6 +19,7 @@
19
19
  "devDependencies": {
20
20
  "@fluixi/ts-plugin": "alpha",
21
21
  "@types/node": "^20.0.0",
22
+ "typescript": "^5.9.0",
22
23
  "vite": "^5.0.0"
23
24
  }
24
25
  }
@@ -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';