@batijs/cli 0.0.499 → 0.0.501
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 +5 -5
- package/dist/boilerplates/@batijs/auth0/files/{$README.md.js → $TODO.md.js} +7 -7
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +6 -46
- package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +59 -0
- package/dist/boilerplates/@batijs/aws/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/d1/files/{$README.md.js → $TODO.md.js} +8 -10
- package/dist/boilerplates/@batijs/d1/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/drizzle/files/{$README.md.js → $TODO.md.js} +7 -7
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/eslint/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/express/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/fastify/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/h3/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/mantine/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/mantine/files/$package.json.js +7 -13
- package/dist/boilerplates/@batijs/mantine/files/{layouts/Layout.tsx → pages/+Layout.tsx} +7 -2
- package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/photon/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +25 -0
- package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/{$README.md.js → $TODO.md.js} +8 -11
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/react/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
- package/dist/boilerplates/@batijs/react/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +1 -3
- package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -9
- package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +30 -0
- package/dist/boilerplates/@batijs/sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
- package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +4 -4
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/shared/files/$README.md.js +8 -9
- package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +32 -0
- package/dist/boilerplates/@batijs/shared/hooks/after.js +11 -9
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +9 -9
- package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/{layouts/Layout.tsx → pages/+Layout.tsx} +1 -1
- package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +0 -2
- package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/sqlite/files/{$README.md.js → $TODO.md.js} +8 -8
- package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/trpc/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
- package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
- package/dist/boilerplates/@batijs/vue/files/pages/+Head.vue +1 -1
- package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +0 -4
- package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +3 -3
- package/dist/boilerplates/boilerplates.json +11 -0
- package/dist/{chunk-EHN5UPTR.js → chunk-SXCPSC7N.js} +26951 -26979
- package/dist/index.js +25 -82
- package/package.json +5 -5
- package/dist/boilerplates/@batijs/mantine/files/layouts/theme.ts +0 -9
- package/dist/boilerplates/@batijs/mantine/types/layouts/theme.d.ts +0 -3
- /package/dist/boilerplates/@batijs/mantine/files/{layouts/style.css → pages/Layout.css} +0 -0
- /package/dist/boilerplates/@batijs/mantine/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/react/files/{layouts → pages}/Layout.css +0 -0
- /package/dist/boilerplates/@batijs/react/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/shadcn-ui/files/{layouts → pages}/!tailwind.css +0 -0
- /package/dist/boilerplates/@batijs/solid/files/{layouts → pages}/Layout.css +0 -0
- /package/dist/boilerplates/@batijs/solid/types/{layouts/Layout.d.ts → pages/+Layout.d.ts} +0 -0
- /package/dist/boilerplates/@batijs/tailwindcss/files/{layouts → pages}/tailwind.css +0 -0
- /package/dist/boilerplates/@batijs/vue/files/{layouts/Layout.vue → pages/+Layout.vue} +0 -0
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
CBs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -15,9 +15,9 @@ async function getEnv(props) {
|
|
|
15
15
|
const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
|
|
16
16
|
const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
|
|
17
17
|
let envContent = await props.readfile?.();
|
|
18
|
-
envContent =
|
|
19
|
-
envContent =
|
|
20
|
-
envContent =
|
|
18
|
+
envContent = CBs(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
|
|
19
|
+
envContent = CBs(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
|
|
20
|
+
envContent = CBs(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
|
|
21
21
|
return envContent;
|
|
22
22
|
}
|
|
23
23
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
|
-
// ../../boilerplates/auth0/dist/files/$
|
|
12
|
-
async function
|
|
13
|
-
const content = await
|
|
11
|
+
// ../../boilerplates/auth0/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
|
+
const content = await zEs(props);
|
|
14
14
|
const todo = `
|
|
15
|
-
##
|
|
15
|
+
## Auth0
|
|
16
16
|
- Sign up or login to an Auth0 account, then go to [your Dashboard](https://manage.auth0.com/dashboard/)
|
|
17
17
|
- Create Application -> Regular Web Application
|
|
18
18
|
- What technology are you using for your project? -> Node.js (Express) -> Integrate Now
|
|
@@ -39,5 +39,5 @@ AUTH0_ISSUER_BASE_URL=https://<your-auth0-domain>.<eu>.auth0.com
|
|
|
39
39
|
return content;
|
|
40
40
|
}
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
getTodo as default
|
|
43
43
|
};
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -88,7 +88,7 @@ var require_package = __commonJS({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
async function getPackageJson(props) {
|
|
91
|
-
const packageJson = await
|
|
91
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
92
|
return packageJson.addDependencies(["@auth/core", "@universal-middleware/core"]);
|
|
93
93
|
}
|
|
94
94
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/aws/dist/files/$README.md.js
|
|
12
12
|
async function getReadme(props) {
|
|
13
|
-
const content = await
|
|
14
|
-
const
|
|
15
|
-
##
|
|
13
|
+
const content = await zEs(props);
|
|
14
|
+
const about = `
|
|
15
|
+
## AWS CDK Deployment
|
|
16
16
|
|
|
17
17
|
This is a boilerplate for deploying your Vike app to AWS using the AWS Cloud Development Kit (CDK) including creating a custom domain in Route53.
|
|
18
18
|
|
|
@@ -23,45 +23,6 @@ This is a boilerplate for deploying your Vike app to AWS using the AWS Cloud Dev
|
|
|
23
23
|
|
|
24
24
|
This boilerplate is a starting point for deploying your Vike app to AWS. You can customize the deployment by modifying the \`cdk/lib/vike-stack.ts\` file.
|
|
25
25
|
|
|
26
|
-
### Prerequisites
|
|
27
|
-
|
|
28
|
-
Before you get started, make sure to configure your AWS credentials.
|
|
29
|
-
|
|
30
|
-
**Loading from a file:**
|
|
31
|
-
|
|
32
|
-
You can keep your AWS credentials in a file. The credentials are found at:
|
|
33
|
-
|
|
34
|
-
\`~/.aws/credentials\` on Linux, Unix, and macOS;
|
|
35
|
-
\`C:\\Users\\USER_NAME\\.aws\\credentials\` on Windows
|
|
36
|
-
|
|
37
|
-
If the credentials file does not exist on your machine:
|
|
38
|
-
|
|
39
|
-
Download the AWS CLI from [here](https://aws.amazon.com/cli/) and configure your AWS credentials using the following command:
|
|
40
|
-
\`aws configure\`
|
|
41
|
-
|
|
42
|
-
And then use this guide to configure the credentials
|
|
43
|
-
The credentials file should look like:
|
|
44
|
-
|
|
45
|
-
\`
|
|
46
|
-
[default]
|
|
47
|
-
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
|
|
48
|
-
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
|
|
49
|
-
\`
|
|
50
|
-
|
|
51
|
-
**Loading from environment variables:**
|
|
52
|
-
|
|
53
|
-
AWS SDK automatically detects AWS credentials in your environment and uses them for making requests to AWS. The environment variables that you need to set are:
|
|
54
|
-
|
|
55
|
-
\`AWS_ACCESS_KEY_ID\`
|
|
56
|
-
\`AWS_SECRET_ACCESS_KEY\`
|
|
57
|
-
If you are using temporary credentials, also set:
|
|
58
|
-
|
|
59
|
-
\`AWS_SESSION_TOKEN\`
|
|
60
|
-
This is often the most convenient way to configure credentials when deploying your AWS CDK app in a CI environment.
|
|
61
|
-
|
|
62
|
-
> [!NOTE]
|
|
63
|
-
> 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.
|
|
64
|
-
|
|
65
26
|
### Deployment to AWS
|
|
66
27
|
|
|
67
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\`.
|
|
@@ -109,9 +70,8 @@ To destroy the stack on AWS, run the following command:
|
|
|
109
70
|
\`pnpm cdk destroy\`
|
|
110
71
|
|
|
111
72
|
Or delete the CloudFormation stack which starts with "VikeStack-<Your App Name>" created by this project.
|
|
112
|
-
|
|
113
73
|
`;
|
|
114
|
-
content.addMarkdownFeature(
|
|
74
|
+
content.addMarkdownFeature(about, "aws");
|
|
115
75
|
return content;
|
|
116
76
|
}
|
|
117
77
|
export {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
3
|
+
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
|
+
import "../../../../chunk-IAWYWZSL.js";
|
|
9
|
+
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
|
+
|
|
11
|
+
// ../../boilerplates/aws/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
|
+
const content = await zEs(props);
|
|
14
|
+
const todo = `
|
|
15
|
+
## AWS CDK Deployment
|
|
16
|
+
|
|
17
|
+
Before you get started, make sure to configure your AWS credentials.
|
|
18
|
+
|
|
19
|
+
**Loading from a file:**
|
|
20
|
+
|
|
21
|
+
You can keep your AWS credentials in a file. The credentials are found at:
|
|
22
|
+
|
|
23
|
+
\`~/.aws/credentials\` on Linux, Unix, and macOS;
|
|
24
|
+
\`C:\\Users\\USER_NAME\\.aws\\credentials\` on Windows
|
|
25
|
+
|
|
26
|
+
If the credentials file does not exist on your machine:
|
|
27
|
+
|
|
28
|
+
Download the AWS CLI from [here](https://aws.amazon.com/cli/) and configure your AWS credentials using the following command:
|
|
29
|
+
\`aws configure\`
|
|
30
|
+
|
|
31
|
+
And then use this guide to configure the credentials
|
|
32
|
+
The credentials file should look like:
|
|
33
|
+
|
|
34
|
+
\`
|
|
35
|
+
[default]
|
|
36
|
+
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
|
|
37
|
+
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>
|
|
38
|
+
\`
|
|
39
|
+
|
|
40
|
+
**Loading from environment variables:**
|
|
41
|
+
|
|
42
|
+
AWS SDK automatically detects AWS credentials in your environment and uses them for making requests to AWS. The environment variables that you need to set are:
|
|
43
|
+
|
|
44
|
+
\`AWS_ACCESS_KEY_ID\`
|
|
45
|
+
\`AWS_SECRET_ACCESS_KEY\`
|
|
46
|
+
If you are using temporary credentials, also set:
|
|
47
|
+
|
|
48
|
+
\`AWS_SESSION_TOKEN\`
|
|
49
|
+
This is often the most convenient way to configure credentials when deploying your AWS CDK app in a CI environment.
|
|
50
|
+
|
|
51
|
+
> [!NOTE]
|
|
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
|
+
content.addMarkdownFeature(todo, "aws");
|
|
55
|
+
return content;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
getTodo as default
|
|
59
|
+
};
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -111,7 +111,7 @@ var require_package = __commonJS({
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
async function getPackageJson(props) {
|
|
114
|
-
const packageJson = await
|
|
114
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
115
115
|
return packageJson.setScript("test", {
|
|
116
116
|
value: "vitest",
|
|
117
117
|
precedence: 0
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
YEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/aws/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await YEs(props);
|
|
14
14
|
tsConfig.compilerOptions.types = [
|
|
15
15
|
...tsConfig.compilerOptions.types ?? [],
|
|
16
16
|
"@types/node",
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -70,7 +70,7 @@ var require_package = __commonJS({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
async function getPackageJson(props) {
|
|
73
|
-
const packageJson = await
|
|
73
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
74
74
|
return packageJson.setScript("lint", {
|
|
75
75
|
value: "biome lint --write .",
|
|
76
76
|
precedence: 0
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -84,7 +84,7 @@ var require_package = __commonJS({
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
async function getPackageJson(props) {
|
|
87
|
-
const packageJson = await
|
|
87
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
88
88
|
return packageJson.setScript("prod", {
|
|
89
89
|
value: "vike build && wrangler dev ./dist/server/index.js -c ./dist/server/wrangler.json",
|
|
90
90
|
precedence: 25,
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -71,7 +71,7 @@ var require_package = __commonJS({
|
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
async function getPackageJson(props) {
|
|
74
|
-
const packageJson = await
|
|
74
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
75
75
|
return packageJson.addDevDependencies(["vite-plugin-compiled-react"]).addDependencies(["@compiled/react"]);
|
|
76
76
|
}
|
|
77
77
|
export {
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "../../../../chunk-
|
|
6
|
+
JEs,
|
|
7
|
+
Zti
|
|
8
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
9
9
|
import "../../../../chunk-IAWYWZSL.js";
|
|
10
10
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
11
11
|
|
|
12
12
|
// ../../boilerplates/compiled/dist/files/$vite.config.ts.js
|
|
13
13
|
async function getViteConfig(props) {
|
|
14
|
-
const mod = await
|
|
15
|
-
|
|
14
|
+
const mod = await JEs(props);
|
|
15
|
+
Zti(mod, {
|
|
16
16
|
from: "vite-plugin-compiled-react",
|
|
17
17
|
constructor: "compiled",
|
|
18
18
|
imported: "compiled",
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
|
-
// ../../boilerplates/d1/dist/files/$
|
|
12
|
-
async function
|
|
13
|
-
const content = await
|
|
11
|
+
// ../../boilerplates/d1/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
|
+
const content = await zEs(props);
|
|
14
14
|
const todo = `
|
|
15
|
-
##
|
|
15
|
+
## Cloudflare D1
|
|
16
16
|
|
|
17
17
|
### Setup
|
|
18
18
|
Create a D1 database with the following command:
|
|
@@ -30,11 +30,9 @@ Finally, update the \`${props.meta.BATI.has("drizzle") ? "drizzle" : "d1"}:migra
|
|
|
30
30
|
> - Descriptive of the use-case and environment. For example, \u201Cstaging-db-web\u201D or \u201Cproduction-db-backend\u201D.
|
|
31
31
|
> - Only used for describing the database, and is not directly referenced in code.
|
|
32
32
|
`;
|
|
33
|
-
content.addMarkdownFeature(todo, "sqlite"
|
|
34
|
-
position: "before"
|
|
35
|
-
});
|
|
33
|
+
content.addMarkdownFeature(todo, "sqlite");
|
|
36
34
|
return content;
|
|
37
35
|
}
|
|
38
36
|
export {
|
|
39
|
-
|
|
37
|
+
getTodo as default
|
|
40
38
|
};
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -92,7 +92,7 @@ var require_package = __commonJS({
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
async function getPackageJson(props) {
|
|
95
|
-
const packageJson = await
|
|
95
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
96
96
|
return packageJson.addDevDependencies(["@universal-middleware/core"]);
|
|
97
97
|
}
|
|
98
98
|
export {
|
|
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
YEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/d1/dist/files/$tsconfig.json.js
|
|
12
12
|
async function getTsConfig(props) {
|
|
13
|
-
const tsConfig = await
|
|
13
|
+
const tsConfig = await YEs(props);
|
|
14
14
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "@cloudflare/workers-types"];
|
|
15
15
|
return tsConfig;
|
|
16
16
|
}
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -88,7 +88,7 @@ var require_package = __commonJS({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
async function getPackageJson(props) {
|
|
91
|
-
const packageJson = await
|
|
91
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
92
|
return packageJson.setScript("d1:migrate", {
|
|
93
93
|
value: "wrangler d1 migrations apply YOUR_DATABASE_NAME --local",
|
|
94
94
|
precedence: 0
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
CBs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ import "../../../../chunk-DHZ7AZKP.js";
|
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
if (props.meta.BATI.hasD1) return;
|
|
14
14
|
const envContent = await props.readfile?.();
|
|
15
|
-
return
|
|
15
|
+
return CBs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
16
16
|
}
|
|
17
17
|
export {
|
|
18
18
|
getEnv as default
|
|
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
zEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
|
-
// ../../boilerplates/drizzle/dist/files/$
|
|
12
|
-
async function
|
|
13
|
-
const content = await
|
|
11
|
+
// ../../boilerplates/drizzle/dist/files/$TODO.md.js
|
|
12
|
+
async function getTodo(props) {
|
|
13
|
+
const content = await zEs(props);
|
|
14
14
|
const todo = `
|
|
15
|
-
##
|
|
15
|
+
## Drizzle
|
|
16
16
|
|
|
17
17
|
First, ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
|
|
18
18
|
\`\`\`bash
|
|
@@ -31,5 +31,5 @@ Read more on [Drizzle ORM documentation](https://orm.drizzle.team/docs/overview)
|
|
|
31
31
|
return content;
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
getTodo as default
|
|
35
35
|
};
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -103,7 +103,7 @@ var require_package = __commonJS({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
async function getPackageJson(props) {
|
|
106
|
-
const packageJson = await
|
|
106
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
107
107
|
return packageJson.setScript("drizzle:generate", {
|
|
108
108
|
value: "drizzle-kit generate",
|
|
109
109
|
precedence: 20
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -89,7 +89,7 @@ var require_package = __commonJS({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
92
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.setScript("lint", {
|
|
94
94
|
value: "eslint .",
|
|
95
95
|
precedence: 0
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -89,7 +89,7 @@ var require_package = __commonJS({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
async function getPackageJson(props) {
|
|
92
|
-
const packageJson = await
|
|
92
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.addDevDependencies(["@types/express"]).addDependencies(["@photonjs/express", "express", "vite", "vike"]).addDependencies(["dotenv"], props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase);
|
|
94
94
|
}
|
|
95
95
|
export {
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -90,7 +90,7 @@ var require_package = __commonJS({
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
async function getPackageJson(props) {
|
|
93
|
-
const packageJson = await
|
|
93
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
94
94
|
return packageJson.addDevDependencies(["@types/node"]).addDependencies(["@photonjs/fastify", "fastify", "fastify-raw-body", "vike", "vite"]).addDependencies(["dotenv"], props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase);
|
|
95
95
|
}
|
|
96
96
|
export {
|
|
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
CBs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
11
11
|
// ../../boilerplates/google-analytics/dist/files/$.env.js
|
|
12
12
|
async function getEnv(props) {
|
|
13
13
|
const envContent = await props.readfile?.();
|
|
14
|
-
return
|
|
14
|
+
return CBs(
|
|
15
15
|
envContent,
|
|
16
16
|
"PUBLIC_ENV__GOOGLE_ANALYTICS",
|
|
17
17
|
"G-XXXXXXXXXX",
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -91,7 +91,7 @@ var require_package = __commonJS({
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
async function getPackageJson(props) {
|
|
94
|
-
const packageJson = await
|
|
94
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
95
95
|
return packageJson.addDependencies(["h3", "vike", "vite", "@photonjs/h3", "@universal-middleware/core"]).addDependencies(["@auth/core"], props.meta.BATI.has("authjs") || props.meta.BATI.has("auth0")).addDependencies(
|
|
96
96
|
["dotenv"],
|
|
97
97
|
(props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase) && !props.meta.BATI.has("cloudflare")
|
|
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
|
|
|
3
3
|
const require = createRequire_BATI_CLI(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "../../../../chunk-
|
|
6
|
+
WEs
|
|
7
|
+
} from "../../../../chunk-SXCPSC7N.js";
|
|
8
8
|
import "../../../../chunk-IAWYWZSL.js";
|
|
9
9
|
import "../../../../chunk-DHZ7AZKP.js";
|
|
10
10
|
|
|
@@ -97,7 +97,7 @@ var require_package = __commonJS({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
async function getPackageJson(props) {
|
|
100
|
-
const packageJson = await
|
|
100
|
+
const packageJson = await WEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
101
101
|
return packageJson.addDevDependencies(["@types/node"]).addDevDependencies(["@types/aws-lambda", "vike-photon"], props.meta.BATI.has("aws")).addDependencies(["@photonjs/hono", "hono", "vite", "vike"]).addDependencies(
|
|
102
102
|
["dotenv"],
|
|
103
103
|
(props.meta.BATI.has("auth0") || props.meta.BATI.hasDatabase) && !props.meta.BATI.has("cloudflare")
|