@batijs/cli 0.0.512 → 0.0.514

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.
Files changed (122) hide show
  1. package/dist/boilerplates/@batijs/auth0/bati.config.js +17 -0
  2. package/dist/boilerplates/@batijs/auth0/files/$.env.js +1 -1
  3. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
  4. package/dist/boilerplates/@batijs/authjs/bati.config.js +17 -0
  5. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -11
  6. package/dist/boilerplates/@batijs/aws/bati.config.js +18 -0
  7. package/dist/boilerplates/@batijs/aws/files/$README.md.js +7 -5
  8. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +4 -2
  9. package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -7
  10. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
  11. package/dist/boilerplates/@batijs/biome/bati.config.js +17 -0
  12. package/dist/boilerplates/@batijs/biome/files/$package.json.js +2 -7
  13. package/dist/boilerplates/@batijs/cloudflare/bati.config.js +18 -0
  14. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -7
  15. package/dist/boilerplates/@batijs/compiled/bati.config.js +17 -0
  16. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -7
  17. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
  18. package/dist/boilerplates/@batijs/d1/bati.config.js +17 -0
  19. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +5 -3
  20. package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -14
  21. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +1 -1
  22. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +17 -0
  23. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -11
  24. package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -0
  25. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
  26. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +5 -3
  27. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -6
  28. package/dist/boilerplates/@batijs/eslint/bati.config.js +17 -0
  29. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -6
  30. package/dist/boilerplates/@batijs/express/bati.config.js +17 -0
  31. package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -6
  32. package/dist/boilerplates/@batijs/fastify/bati.config.js +17 -0
  33. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -6
  34. package/dist/boilerplates/@batijs/google-analytics/bati.config.js +17 -0
  35. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
  36. package/dist/boilerplates/@batijs/h3/bati.config.js +17 -0
  37. package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -6
  38. package/dist/boilerplates/@batijs/hono/bati.config.js +17 -0
  39. package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -6
  40. package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -2
  41. package/dist/boilerplates/@batijs/mantine/bati.config.js +18 -0
  42. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
  43. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -12
  44. package/dist/boilerplates/@batijs/photon/bati.config.js +17 -0
  45. package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
  46. package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -15
  47. package/dist/boilerplates/@batijs/plausible.io/bati.config.js +17 -0
  48. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
  49. package/dist/boilerplates/@batijs/pnpm/bati.config.js +18 -0
  50. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
  51. package/dist/boilerplates/@batijs/prettier/bati.config.js +17 -0
  52. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +2 -7
  53. package/dist/boilerplates/@batijs/prisma/bati.config.js +17 -0
  54. package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
  55. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
  56. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +2 -7
  57. package/dist/boilerplates/@batijs/react/bati.config.js +17 -0
  58. package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
  59. package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -6
  60. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
  61. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
  62. package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +1 -1
  63. package/dist/boilerplates/@batijs/react-sentry/bati.config.js +17 -0
  64. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -11
  65. package/dist/boilerplates/@batijs/sentry/bati.config.js +17 -0
  66. package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
  67. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +4 -2
  68. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
  69. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -6
  70. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
  71. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
  72. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +17 -0
  73. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +4 -2
  74. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -6
  75. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
  76. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
  77. package/dist/boilerplates/@batijs/shared/bati.config.js +15 -0
  78. package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
  79. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +1 -1
  80. package/dist/boilerplates/@batijs/shared-db/bati.config.js +17 -0
  81. package/dist/boilerplates/@batijs/shared-server/bati.config.js +17 -0
  82. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -13
  83. package/dist/boilerplates/@batijs/shared-todo/bati.config.js +15 -0
  84. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
  85. package/dist/boilerplates/@batijs/solid/bati.config.js +17 -0
  86. package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
  87. package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -6
  88. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
  89. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
  90. package/dist/boilerplates/@batijs/solid/files/pages/todo/TodoList.tsx +1 -1
  91. package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +17 -0
  92. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -11
  93. package/dist/boilerplates/@batijs/sqlite/bati.config.js +17 -0
  94. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
  95. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
  96. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -15
  97. package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +17 -0
  98. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -7
  99. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
  100. package/dist/boilerplates/@batijs/telefunc/bati.config.js +17 -0
  101. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -6
  102. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
  103. package/dist/boilerplates/@batijs/trpc/bati.config.js +17 -0
  104. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -6
  105. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
  106. package/dist/boilerplates/@batijs/ts-rest/bati.config.js +17 -0
  107. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -6
  108. package/dist/boilerplates/@batijs/vercel/bati.config.js +17 -0
  109. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -7
  110. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
  111. package/dist/boilerplates/@batijs/vue/bati.config.js +17 -0
  112. package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
  113. package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -6
  114. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
  115. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
  116. package/dist/boilerplates/@batijs/vue/files/pages/todo/TodoList.vue +2 -2
  117. package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +17 -0
  118. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -11
  119. package/dist/boilerplates/boilerplates.json +0 -264
  120. package/dist/{chunk-6D3FLEBD.js → chunk-5P3K3DOP.js} +4 -4
  121. package/dist/index.js +25 -798
  122. package/package.json +5 -6
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("auth0");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  CBs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  zEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("authjs") || meta.BATI.has("auth0");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -62,16 +62,6 @@ var require_package = __commonJS({
62
62
  files: [
63
63
  "dist/"
64
64
  ],
65
- bati: {
66
- if: {
67
- flag: {
68
- $in: [
69
- "authjs",
70
- "auth0"
71
- ]
72
- }
73
- }
74
- },
75
65
  exports: {
76
66
  "./server/authjs-handler": {
77
67
  types: "./dist/types/server/authjs-handler.d.ts"
@@ -0,0 +1,18 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("aws");
13
+ },
14
+ enforce: "post"
15
+ });
16
+ export {
17
+ bati_config_default as default
18
+ };
@@ -3,14 +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
+ ffs,
6
7
  zEs
7
- } from "../../../../chunk-6D3FLEBD.js";
8
+ } from "../../../../chunk-5P3K3DOP.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
10
  import "../../../../chunk-DHZ7AZKP.js";
10
11
 
11
12
  // ../../boilerplates/aws/dist/files/$README.md.js
12
13
  async function getReadme(props) {
13
14
  const content = await zEs(props);
15
+ const pmCmd = ffs().run;
14
16
  const about = `
15
17
  ## AWS CDK Deployment
16
18
 
@@ -25,10 +27,10 @@ This boilerplate is a starting point for deploying your Vike app to AWS. You can
25
27
 
26
28
  ### Deployment to AWS
27
29
 
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\`.
30
+ If you want to have a look at the synthesized CloudFormation template, you can run \`${pmCmd} cdk synth\` and see the template as YAML on screen or in \`cdk.out/VikeStack.template.json\`.
29
31
 
30
32
  You can deploy your Vike App via the following command:
31
- \`pnpm deploy:aws\` or \`pnpm cdk deploy\`
33
+ \`${pmCmd} deploy:aws\` or \`${pmCmd} cdk deploy\`
32
34
 
33
35
  The URL to the CloudFront distribution will be displayed in the output of the deployment.
34
36
  You can also access the CloudFront distribution domainname in the AWS SSM registry und \`vike/distribution/url\`.
@@ -57,13 +59,13 @@ If you have a custom domain, you can add it to the stack configuration in the \`
57
59
 
58
60
  > [!NOTE]
59
61
  > If you deploy your App to a region different than \`us-east-1\` and you have never deployed to this region before, you will need to bootstrap this region too:
60
- \`CDK_DEFAULT_REGION=us-east-1 pnpm deploy:cdk bootstrap\`
62
+ \`CDK_DEFAULT_REGION=us-east-1 ${pmCmd} deploy:cdk bootstrap\`
61
63
 
62
64
 
63
65
  ### Destroying the Stack on AWS
64
66
 
65
67
  To destroy the stack on AWS, run the following command:
66
- \`pnpm cdk destroy\`
68
+ \`${pmCmd} cdk destroy\`
67
69
 
68
70
  Or delete the CloudFormation stack which starts with "VikeStack-<Your App Name>" created by this project.
69
71
  `;
@@ -3,14 +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
+ ffs,
6
7
  zEs
7
- } from "../../../../chunk-6D3FLEBD.js";
8
+ } from "../../../../chunk-5P3K3DOP.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
10
  import "../../../../chunk-DHZ7AZKP.js";
10
11
 
11
12
  // ../../boilerplates/aws/dist/files/$TODO.md.js
12
13
  async function getTodo(props) {
13
14
  const content = await zEs(props);
15
+ const pmCmd = ffs().run;
14
16
  const todo = `
15
17
  ## AWS CDK Deployment
16
18
 
@@ -54,7 +56,7 @@ This is often the most convenient way to configure credentials when deploying yo
54
56
  ### Deployment to AWS
55
57
 
56
58
  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)
59
+ \`${pmCmd} cdk bootstrap\`. (The default region based on your AWS CLI configuration will be used)
58
60
 
59
61
  `;
60
62
  content.addMarkdownFeature(todo, "aws");
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -71,12 +71,6 @@ var require_package = __commonJS({
71
71
  files: [
72
72
  "dist/"
73
73
  ],
74
- bati: {
75
- if: {
76
- flag: "aws"
77
- },
78
- enforce: "post"
79
- },
80
74
  exports: {
81
75
  "./vitest.config": {
82
76
  types: "./dist/types/vitest.config.d.ts"
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  YEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("biome");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -60,12 +60,7 @@ var require_package = __commonJS({
60
60
  },
61
61
  files: [
62
62
  "dist/"
63
- ],
64
- bati: {
65
- if: {
66
- flag: "biome"
67
- }
68
- }
63
+ ]
69
64
  };
70
65
  }
71
66
  });
@@ -0,0 +1,18 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("cloudflare");
13
+ },
14
+ enforce: "post"
15
+ });
16
+ export {
17
+ bati_config_default as default
18
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -62,12 +62,6 @@ var require_package = __commonJS({
62
62
  files: [
63
63
  "dist/"
64
64
  ],
65
- bati: {
66
- if: {
67
- flag: "cloudflare"
68
- },
69
- enforce: "post"
70
- },
71
65
  exports: {
72
66
  "./cloudflare-entry": {
73
67
  types: "./dist/types/cloudflare-entry.d.ts"
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("compiled-css");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -61,12 +61,7 @@ var require_package = __commonJS({
61
61
  },
62
62
  files: [
63
63
  "dist/"
64
- ],
65
- bati: {
66
- if: {
67
- flag: "compiled-css"
68
- }
69
- }
64
+ ]
70
65
  };
71
66
  }
72
67
  });
@@ -5,7 +5,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  JEs,
7
7
  Zti
8
- } from "../../../../chunk-6D3FLEBD.js";
8
+ } from "../../../../chunk-5P3K3DOP.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.hasD1;
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -3,25 +3,27 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
+ ffs,
6
7
  zEs
7
- } from "../../../../chunk-6D3FLEBD.js";
8
+ } from "../../../../chunk-5P3K3DOP.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
10
  import "../../../../chunk-DHZ7AZKP.js";
10
11
 
11
12
  // ../../boilerplates/d1/dist/files/$TODO.md.js
12
13
  async function getTodo(props) {
13
14
  const content = await zEs(props);
15
+ const pmCmd = ffs().run;
14
16
  const todo = `
15
17
  ## Cloudflare D1
16
18
 
17
19
  Create the \`my-vike-demo-database\` database:
18
20
  \`\`\`sh
19
- pnpm wrangler d1 create my-vike-demo-database
21
+ ${pmCmd} wrangler d1 create my-vike-demo-database
20
22
  \`\`\`
21
23
 
22
24
  Then migrate:
23
25
  \`\`\`sh
24
- pnpm ${props.meta.BATI.has("drizzle") ? "drizzle" : "d1"}:migrate
26
+ ${pmCmd} ${props.meta.BATI.has("drizzle") ? "drizzle" : "d1"}:migrate
25
27
  \`\`\`
26
28
 
27
29
  More infos can be found at https://developers.cloudflare.com/d1/get-started/
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -63,19 +63,6 @@ var require_package = __commonJS({
63
63
  files: [
64
64
  "dist/"
65
65
  ],
66
- bati: {
67
- if: {
68
- flag: {
69
- $in: [
70
- "drizzle",
71
- "sqlite"
72
- ],
73
- $all: [
74
- "cloudflare"
75
- ]
76
- }
77
- }
78
- },
79
66
  exports: {
80
67
  "./database/d1/helpers": {
81
68
  types: "./dist/types/database/d1/helpers.d.ts"
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  YEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.hasD1 && meta.BATI.has("sqlite");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -62,16 +62,6 @@ var require_package = __commonJS({
62
62
  files: [
63
63
  "dist/"
64
64
  ],
65
- bati: {
66
- if: {
67
- flag: {
68
- $all: [
69
- "sqlite",
70
- "cloudflare"
71
- ]
72
- }
73
- }
74
- },
75
65
  exports: {
76
66
  "./database/d1/queries/todos": {
77
67
  types: "./dist/types/database/d1/queries/todos.d.ts"
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("drizzle");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  CBs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -3,21 +3,23 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
+ ffs,
6
7
  zEs
7
- } from "../../../../chunk-6D3FLEBD.js";
8
+ } from "../../../../chunk-5P3K3DOP.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
10
  import "../../../../chunk-DHZ7AZKP.js";
10
11
 
11
12
  // ../../boilerplates/drizzle/dist/files/$TODO.md.js
12
13
  async function getTodo(props) {
13
14
  const content = await zEs(props);
15
+ const pmCmd = ffs().run;
14
16
  const todo = `
15
17
  ## Drizzle
16
18
 
17
19
  First, ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
18
20
  \`\`\`bash
19
- pnpm drizzle:generate # a script that executes drizzle-kit generate.
20
- pnpm drizzle:migrate # a script that executes drizzle-kit migrate.
21
+ ${pmCmd} drizzle:generate # a script that executes drizzle-kit generate.
22
+ ${pmCmd} drizzle:migrate # a script that executes drizzle-kit migrate.
21
23
  \`\`\`
22
24
 
23
25
  > [!NOTE]
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -64,11 +64,6 @@ var require_package = __commonJS({
64
64
  files: [
65
65
  "dist/"
66
66
  ],
67
- bati: {
68
- if: {
69
- flag: "drizzle"
70
- }
71
- },
72
67
  exports: {
73
68
  "./drizzle.config": {
74
69
  types: "./dist/types/drizzle.config.d.ts"
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("eslint");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -68,11 +68,6 @@ var require_package = __commonJS({
68
68
  files: [
69
69
  "dist/"
70
70
  ],
71
- bati: {
72
- if: {
73
- flag: "eslint"
74
- }
75
- },
76
71
  exports: {
77
72
  "./eslint.config": {
78
73
  types: "./dist/types/eslint.config.d.ts"
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("express");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  WEs
7
- } from "../../../../chunk-6D3FLEBD.js";
7
+ } from "../../../../chunk-5P3K3DOP.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -68,11 +68,6 @@ var require_package = __commonJS({
68
68
  files: [
69
69
  "dist/"
70
70
  ],
71
- bati: {
72
- if: {
73
- flag: "express"
74
- }
75
- },
76
71
  exports: {
77
72
  "./server/entry": {
78
73
  types: "./dist/types/server/entry.d.ts"
@@ -0,0 +1,17 @@
1
+ // ../../packages/core/dist/config.js
2
+ function t(e, r) {
3
+ if (!e) throw new Error(r);
4
+ }
5
+ function i(e) {
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
7
+ }
8
+
9
+ // bati.config.ts
10
+ var bati_config_default = i({
11
+ if(meta) {
12
+ return meta.BATI.has("fastify");
13
+ }
14
+ });
15
+ export {
16
+ bati_config_default as default
17
+ };