@batijs/cli 0.0.510 → 0.0.512
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/auth0/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -5
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +7 -1
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +2 -3
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/mantine/files/pages/+Layout.tsx +2 -1
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +4 -1
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$README.md.js +5 -2
- package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/+onPageTransitionStart.ts +2 -0
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +3 -1
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +5 -2
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+Layout.tsx +2 -0
- package/dist/boilerplates/@batijs/solid/files/pages/+onPageTransitionStart.ts +2 -0
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +5 -2
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+Layout.vue +2 -0
- package/dist/boilerplates/@batijs/vue/files/pages/+onPageTransitionStart.ts +2 -0
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
- package/dist/{chunk-SIUCNEAB.js → chunk-6D3FLEBD.js} +2 -2
- package/dist/index.js +5 -5
- package/package.json +5 -5
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
zEs
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-6D3FLEBD.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -27,10 +27,6 @@ This boilerplate is a starting point for deploying your Vike app to AWS. You can
|
|
|
27
27
|
|
|
28
28
|
If you want to have a look at the synthesized CloudFormation template, you can run \`pnpm cdk synth\` and see the template as YAML on screen or in \`cdk.out/VikeStack.template.json\`.
|
|
29
29
|
|
|
30
|
-
> [!NOTE]
|
|
31
|
-
> If this is your **first time deploying a CDK app** in this environment you need to **bootstrap**:
|
|
32
|
-
> \`pnpm cdk bootstrap\`. (The default region based on your AWS CLI configuration will be used)
|
|
33
|
-
|
|
34
30
|
You can deploy your Vike App via the following command:
|
|
35
31
|
\`pnpm deploy:aws\` or \`pnpm cdk deploy\`
|
|
36
32
|
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
zEs
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-6D3FLEBD.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -50,6 +50,12 @@ This is often the most convenient way to configure credentials when deploying yo
|
|
|
50
50
|
|
|
51
51
|
> [!NOTE]
|
|
52
52
|
> You should change the stack name to give your app stack a distinctive name in your AWS environment. You can do so by modifying the \`infrastructure.ts.ts\` file in the \`cdk/bin\` directory.
|
|
53
|
+
|
|
54
|
+
### Deployment to AWS
|
|
55
|
+
|
|
56
|
+
If this is your **first time deploying a CDK app** in this environment you need to **bootstrap**:
|
|
57
|
+
\`pnpm cdk bootstrap\`. (The default region based on your AWS CLI configuration will be used)
|
|
58
|
+
|
|
53
59
|
`;
|
|
54
60
|
content.addMarkdownFeature(todo, "aws");
|
|
55
61
|
return content;
|
|
@@ -11,12 +11,11 @@ async function getToml(props) {
|
|
|
11
11
|
throw new Error("wrangler.toml should not be empty");
|
|
12
12
|
}
|
|
13
13
|
const dbSnippet = `
|
|
14
|
-
# https://developers.cloudflare.com/d1/
|
|
14
|
+
# https://developers.cloudflare.com/d1/get-started/
|
|
15
15
|
[[d1_databases]]
|
|
16
|
-
binding = "DB"
|
|
16
|
+
binding = "DB"
|
|
17
17
|
database_name = "MY_VIKE_DEMO_DATABASE"
|
|
18
18
|
database_id = "my-vike-demo-database"
|
|
19
|
-
preview_database_id = "DB" # Required for Pages local development
|
|
20
19
|
migrations_dir = "database/migrations"
|
|
21
20
|
`;
|
|
22
21
|
return `${content}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// https://vike.dev/Layout
|
|
2
2
|
|
|
3
|
+
import "@mantine/core/styles.css";
|
|
3
4
|
import logoUrl from "@batijs/react/assets/logo.svg";
|
|
4
5
|
import type { MantineThemeOverride } from "@mantine/core";
|
|
5
6
|
import { AppShell, Burger, createTheme, Group, Image, MantineProvider } from "@mantine/core";
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
zEs
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-6D3FLEBD.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -20,6 +20,9 @@ and popular servers ([Hono](https://photonjs.dev/hono), [Express](https://photon
|
|
|
20
20
|
content.addMarkdown(photon, {
|
|
21
21
|
filter: {
|
|
22
22
|
section: "features"
|
|
23
|
+
},
|
|
24
|
+
wrapper: {
|
|
25
|
+
category: "Server"
|
|
23
26
|
}
|
|
24
27
|
});
|
|
25
28
|
return content;
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
zEs
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-6D3FLEBD.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -12,6 +12,7 @@ import "../../../../chunk-DHZ7AZKP.js";
|
|
|
12
12
|
async function getReadme(props) {
|
|
13
13
|
const content = await zEs(props);
|
|
14
14
|
const about = `
|
|
15
|
+
## Vike
|
|
15
16
|
|
|
16
17
|
This app is ready to start. It's powered by [Vike](https://vike.dev) and [React](https://react.dev/learn).
|
|
17
18
|
|
|
@@ -41,7 +42,9 @@ SSR is enabled by default. You can [disable it](https://vike.dev/ssr) for all or
|
|
|
41
42
|
### HTML Streaming
|
|
42
43
|
|
|
43
44
|
You can [enable/disable HTML streaming](https://vike.dev/stream) for all or specific pages.`;
|
|
44
|
-
content.addMarkdownFeature(about, "react"
|
|
45
|
+
content.addMarkdownFeature(about, "react", {
|
|
46
|
+
position: "before"
|
|
47
|
+
});
|
|
45
48
|
return content;
|
|
46
49
|
}
|
|
47
50
|
export {
|
|
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
WEs
|
|
7
|
-
} from "../../../../chunk-
|
|
7
|
+
} from "../../../../chunk-6D3FLEBD.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -187,7 +187,7 @@ var require_package = __commonJS({
|
|
|
187
187
|
});
|
|
188
188
|
async function getPackageJson(props) {
|
|
189
189
|
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
190
|
-
return packageJson.addDevDependencies(["vite", "@types/react", "@types/react-dom"]).addDependencies(["
|
|
190
|
+
return packageJson.addDevDependencies(["vite", "@vitejs/plugin-react", "@types/react", "@types/react-dom"]).addDependencies(["react", "react-dom", "vike", "vike-react"]);
|
|
191
191
|
}
|
|
192
192
|
export {
|
|
193
193
|
getPackageJson as default
|