@batijs/cli 0.0.208 → 0.0.209
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/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +4 -0
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +1 -0
- package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +7 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +4 -0
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +1 -0
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +4 -0
- package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +5 -5
|
@@ -42,8 +42,8 @@ var require_package = __commonJS({
|
|
|
42
42
|
},
|
|
43
43
|
devDependencies: {
|
|
44
44
|
"@batijs/compile": "workspace:^",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
46
|
-
"@typescript-eslint/parser": "^7.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
46
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
47
47
|
eslint: "^8.57.0"
|
|
48
48
|
},
|
|
49
49
|
dependencies: {
|
|
@@ -12,6 +12,10 @@ export default {
|
|
|
12
12
|
/*{ /if }*/
|
|
13
13
|
// <title>
|
|
14
14
|
title: "My Vike App",
|
|
15
|
+
stream:
|
|
16
|
+
BATI.has("express") || BATI.has("fastify") || BATI.has("h3") || BATI.has("hattip") || BATI.has("hono")
|
|
17
|
+
? "web"
|
|
18
|
+
: true,
|
|
15
19
|
extends: vikeReact,
|
|
16
20
|
/*{ @if (it.BATI.has("firebase-auth")) }*/
|
|
17
21
|
meta: {
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
/// <reference lib="webworker" />
|
|
1
2
|
import { renderPage } from "vike/server";
|
|
2
3
|
|
|
3
4
|
export async function vikeHandler<Context extends Record<string | number | symbol, unknown>>(
|
|
4
5
|
request: Request,
|
|
5
6
|
context?: Context,
|
|
6
7
|
): Promise<Response> {
|
|
7
|
-
const pageContextInit = { ...
|
|
8
|
+
const pageContextInit = { ...context, urlOriginal: request.url };
|
|
8
9
|
const pageContext = await renderPage(pageContextInit);
|
|
9
10
|
const response = pageContext.httpResponse;
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
const { readable, writable } = new TransformStream();
|
|
13
|
+
|
|
14
|
+
response?.pipe(writable);
|
|
15
|
+
|
|
16
|
+
return new Response(readable, {
|
|
12
17
|
status: response?.statusCode,
|
|
13
18
|
headers: response?.headers,
|
|
14
19
|
});
|
|
@@ -12,6 +12,10 @@ export default {
|
|
|
12
12
|
passToClient: ["user"],
|
|
13
13
|
/*{ /if }*/
|
|
14
14
|
title: "My Vike App",
|
|
15
|
+
stream:
|
|
16
|
+
BATI.has("express") || BATI.has("fastify") || BATI.has("h3") || BATI.has("hattip") || BATI.has("hono")
|
|
17
|
+
? "web"
|
|
18
|
+
: true,
|
|
15
19
|
extends: vikeSolid,
|
|
16
20
|
/*{ @if (it.BATI.has("firebase-auth")) }*/
|
|
17
21
|
meta: {
|
|
@@ -13,6 +13,10 @@ export default {
|
|
|
13
13
|
/*{ /if }*/
|
|
14
14
|
title: "My Vike App",
|
|
15
15
|
extends: vikeVue,
|
|
16
|
+
stream:
|
|
17
|
+
BATI.has("express") || BATI.has("fastify") || BATI.has("h3") || BATI.has("hattip") || BATI.has("hono")
|
|
18
|
+
? "web"
|
|
19
|
+
: true,
|
|
16
20
|
/*{ @if (it.BATI.has("firebase-auth")) }*/
|
|
17
21
|
meta: {
|
|
18
22
|
// Temporary workaround until +client.js is implemented: https://github.com/vikejs/vike/issues/1468
|
package/dist/index.js
CHANGED
|
@@ -1559,7 +1559,7 @@ var import_which_pm_runs = __toESM(require_which_pm_runs(), 1);
|
|
|
1559
1559
|
// package.json
|
|
1560
1560
|
var package_default = {
|
|
1561
1561
|
name: "@batijs/cli",
|
|
1562
|
-
version: "0.0.
|
|
1562
|
+
version: "0.0.209",
|
|
1563
1563
|
type: "module",
|
|
1564
1564
|
scripts: {
|
|
1565
1565
|
"check-types": "tsc --noEmit",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.209",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
"typescript": "^5.5.2",
|
|
22
22
|
"vite": "^5.3.1",
|
|
23
23
|
"which-pm-runs": "^1.1.0",
|
|
24
|
-
"@batijs/
|
|
25
|
-
"@batijs/
|
|
24
|
+
"@batijs/compile": "0.0.209",
|
|
25
|
+
"@batijs/build": "0.0.209"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@batijs/core": "0.0.
|
|
29
|
-
"@batijs/features": "0.0.
|
|
28
|
+
"@batijs/core": "0.0.209",
|
|
29
|
+
"@batijs/features": "0.0.209"
|
|
30
30
|
},
|
|
31
31
|
"bin": "./dist/index.js",
|
|
32
32
|
"exports": {
|