@batijs/cli 0.0.288 → 0.0.290
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 +5 -5
- package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/aws/files/$README.md.js +7 -6
- 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/aws/files/cdk/lib/vike-stack.ts +1 -1
- 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/cloudflare/files/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
- 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 +5 -5
- 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/files/$wrangler.toml.js +1 -1
- 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 +5 -5
- package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/edgedb/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/firebase-auth/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/firebase-auth/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/hattip/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
- package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/lucia-auth/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 +3 -3
- package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/prettier/files/.prettierignore +4 -0
- package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
- package/dist/boilerplates/@batijs/prisma/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/prisma/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/react/files/$README.md.js +6 -5
- package/dist/boilerplates/@batijs/react/files/$package.json.js +3 -3
- 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-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 +5 -5
- 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 +9 -9
- package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
- 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 +33 -11
- package/dist/boilerplates/@batijs/shared/files/.gitignore +4 -0
- package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
- package/dist/boilerplates/@batijs/solid/files/$README.md.js +5 -5
- package/dist/boilerplates/@batijs/solid/files/$package.json.js +3 -3
- 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-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 +5 -5
- 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/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/server/trpc-handler.d.ts +1 -1
- package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +12 -12
- 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/$tsconfig.json.js +3 -3
- package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
- package/dist/boilerplates/@batijs/vue/files/$README.md.js +5 -5
- 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-sentry/files/$package.json.js +3 -3
- package/dist/{chunk-BX6YHROU.js → chunk-A2ICK2V5.js} +115424 -112276
- package/dist/index.js +91 -17
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/auth0/dist/files/$.env.js
|
|
@@ -10,9 +10,9 @@ async function getEnv(props) {
|
|
|
10
10
|
const auth0ClientSecret = process.env.TEST_AUTH0_CLIENT_SECRET;
|
|
11
11
|
const auth0BaseUrl = process.env.TEST_AUTH0_ISSUER_BASE_URL;
|
|
12
12
|
let envContent = await props.readfile?.();
|
|
13
|
-
envContent =
|
|
14
|
-
envContent =
|
|
15
|
-
envContent =
|
|
13
|
+
envContent = vWs(envContent, "AUTH0_CLIENT_ID", auth0ClientId ?? "", "Auth0 Client ID");
|
|
14
|
+
envContent = vWs(envContent, "AUTH0_CLIENT_SECRET", auth0ClientSecret ?? "", "Auth0 Client Secret");
|
|
15
|
+
envContent = vWs(envContent, "AUTH0_ISSUER_BASE_URL", auth0BaseUrl ?? "", "Auth0 base URL");
|
|
16
16
|
return envContent;
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/auth0/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Auth0*
|
|
12
12
|
- Sign up or login to an Auth0 account, then go to [your Dashboard](https://manage.auth0.com/dashboard/)
|
|
@@ -31,8 +31,8 @@ AUTH0_ISSUER_BASE_URL=https://<your-auth0-domain>.<eu>.auth0.com
|
|
|
31
31
|
|
|
32
32
|
- Read more [Auth.js: Auth0 provider](https://authjs.dev/reference/core/providers/auth0)
|
|
33
33
|
`;
|
|
34
|
-
content.
|
|
35
|
-
return content
|
|
34
|
+
content.addMarkdownFeature(todo, "auth0");
|
|
35
|
+
return content;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
38
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/authjs/dist/files/$package.json.js
|
|
@@ -83,7 +83,7 @@ var require_package = __commonJS({
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
async function getPackageJson(props) {
|
|
86
|
-
const packageJson = await
|
|
86
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
87
87
|
return packageJson.addDependencies(["@auth/core", "@universal-middleware/core"]);
|
|
88
88
|
}
|
|
89
89
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/aws/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *AWS CDK Deployment*
|
|
12
12
|
|
|
@@ -75,8 +75,9 @@ You can also access the CloudFront distribution domainname in the AWS SSM regist
|
|
|
75
75
|
### Stack Configuration
|
|
76
76
|
|
|
77
77
|
You can configure the stack in the \`cdk/bin/infrastructure.ts\` file:
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
| Variable | Examples | Description |
|
|
80
|
+
| --- | --- | --- |
|
|
80
81
|
| \`domainName: "example.com",\` | "example.com" | |
|
|
81
82
|
| \`subDomain: "www",\` |"www" | |
|
|
82
83
|
| \`certificate: undefined,\` | "arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012" or a certificatemanager.ICertificate | reuse an existing AWS Certificate |
|
|
@@ -106,8 +107,8 @@ To destroy the stack on AWS, run the following command:
|
|
|
106
107
|
Or delete the CloudFormation stack which starts with "VikeStack-<Your App Name>" created by this project.
|
|
107
108
|
|
|
108
109
|
`;
|
|
109
|
-
content.
|
|
110
|
-
return content
|
|
110
|
+
content.addMarkdownFeature(todo, "aws");
|
|
111
|
+
return content;
|
|
111
112
|
}
|
|
112
113
|
export {
|
|
113
114
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/aws/dist/files/$package.json.js
|
|
@@ -107,7 +107,7 @@ var require_package = __commonJS({
|
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
async function getPackageJson(props) {
|
|
110
|
-
const packageJson = await
|
|
110
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
111
111
|
return packageJson.setScript("test", {
|
|
112
112
|
value: "vitest",
|
|
113
113
|
precedence: 0
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
cWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/aws/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await cWs(props);
|
|
10
10
|
tsConfig.compilerOptions.types = [
|
|
11
11
|
...tsConfig.compilerOptions.types ?? [],
|
|
12
12
|
"@types/node",
|
|
@@ -112,7 +112,7 @@ export class VikeStack extends cdk.Stack {
|
|
|
112
112
|
compress: true,
|
|
113
113
|
};
|
|
114
114
|
|
|
115
|
-
const assetOrigin =
|
|
115
|
+
const assetOrigin = origin.S3BucketOrigin.withOriginAccessControl(bucket);
|
|
116
116
|
const assetBehaviorOptions = {
|
|
117
117
|
viewerProtocolPolicy: cloudfront.ViewerProtocolPolicy.REDIRECT_TO_HTTPS,
|
|
118
118
|
compress: true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/biome/dist/files/$package.json.js
|
|
@@ -65,7 +65,7 @@ var require_package = __commonJS({
|
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
async function getPackageJson(props) {
|
|
68
|
-
const packageJson = await
|
|
68
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
69
69
|
return packageJson.setScript("lint", {
|
|
70
70
|
value: "biome lint --write .",
|
|
71
71
|
precedence: 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/cloudflare/dist/files/$package.json.js
|
|
@@ -82,7 +82,7 @@ var require_package = __commonJS({
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
async function getPackageJson(props) {
|
|
85
|
-
const packageJson = await
|
|
85
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
86
86
|
return packageJson.setScript("preview:wrangler", {
|
|
87
87
|
value: "wrangler pages dev",
|
|
88
88
|
precedence: 40,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
cWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/cloudflare/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await cWs(props);
|
|
10
10
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-cloudflare/types"];
|
|
11
11
|
return tsConfig;
|
|
12
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
Mhs,
|
|
4
|
+
uWs
|
|
5
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/cloudflare/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
10
|
+
const mod = await uWs(props);
|
|
11
11
|
let options = void 0;
|
|
12
12
|
if (props.meta.BATI.has("hattip") || props.meta.BATI.has("hono")) {
|
|
13
13
|
options = {
|
|
@@ -17,7 +17,7 @@ async function getViteConfig(props) {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
Mhs(mod, {
|
|
21
21
|
from: "vike-cloudflare",
|
|
22
22
|
constructor: "pages",
|
|
23
23
|
imported: "pages",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/compiled/dist/files/$package.json.js
|
|
@@ -67,7 +67,7 @@ var require_package = __commonJS({
|
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
async function getPackageJson(props) {
|
|
70
|
-
const packageJson = await
|
|
70
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
71
71
|
return packageJson.addDevDependencies(["vite-plugin-compiled-react"]).addDependencies(["@compiled/react"]);
|
|
72
72
|
}
|
|
73
73
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "../../../../chunk-
|
|
3
|
+
Mhs,
|
|
4
|
+
uWs
|
|
5
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
6
6
|
import "../../../../chunk-LU7IBQI7.js";
|
|
7
7
|
|
|
8
8
|
// ../../boilerplates/compiled/dist/files/$vite.config.ts.js
|
|
9
9
|
async function getViteConfig(props) {
|
|
10
|
-
const mod = await
|
|
11
|
-
|
|
10
|
+
const mod = await uWs(props);
|
|
11
|
+
Mhs(mod, {
|
|
12
12
|
from: "vite-plugin-compiled-react",
|
|
13
13
|
constructor: "compiled",
|
|
14
14
|
imported: "compiled",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/d1/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Cloudflare D1*
|
|
12
12
|
|
|
@@ -24,8 +24,8 @@ wrangler d1 create <your-db-name>
|
|
|
24
24
|
> - Only used for describing the database, and is not directly referenced in code.
|
|
25
25
|
|
|
26
26
|
Then copy the output to \`wrangler.toml\``;
|
|
27
|
-
content.
|
|
28
|
-
return content
|
|
27
|
+
content.addMarkdownFeature(todo, "sqlite");
|
|
28
|
+
return content;
|
|
29
29
|
}
|
|
30
30
|
export {
|
|
31
31
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/d1/dist/files/$package.json.js
|
|
@@ -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 lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
92
92
|
return packageJson.addDevDependencies(["@universal-middleware/core"]);
|
|
93
93
|
}
|
|
94
94
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
cWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/d1/dist/files/$tsconfig.json.js
|
|
8
8
|
async function getTsConfig(props) {
|
|
9
|
-
const tsConfig = await
|
|
9
|
+
const tsConfig = await cWs(props);
|
|
10
10
|
tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "@cloudflare/workers-types"];
|
|
11
11
|
return tsConfig;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/d1-sqlite/dist/files/$package.json.js
|
|
@@ -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 lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
94
94
|
return packageJson.setScript("d1:migrate", {
|
|
95
95
|
value: "wrangler d1 migrations apply YOUR_DATABASE_NAME --local",
|
|
96
96
|
precedence: 0
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/drizzle/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
if (props.meta.BATI.hasD1) return;
|
|
10
10
|
const envContent = await props.readfile?.();
|
|
11
|
-
return
|
|
11
|
+
return vWs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
14
|
getEnv as default
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/drizzle/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Drizzle*
|
|
12
12
|
|
|
@@ -23,8 +23,8 @@ pnpm drizzle:migrate # a script that executes drizzle-kit migrate.
|
|
|
23
23
|
|
|
24
24
|
Read more on [Drizzle ORM documentation](https://orm.drizzle.team/docs/overview)
|
|
25
25
|
`;
|
|
26
|
-
content.
|
|
27
|
-
return content
|
|
26
|
+
content.addMarkdownFeature(todo, "drizzle");
|
|
27
|
+
return content;
|
|
28
28
|
}
|
|
29
29
|
export {
|
|
30
30
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/drizzle/dist/files/$package.json.js
|
|
@@ -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 lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
115
115
|
return packageJson.setScript("drizzle:generate", {
|
|
116
116
|
value: "drizzle-kit generate",
|
|
117
117
|
precedence: 20
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/edgedb/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *EdgeDB*
|
|
12
12
|
### Setup
|
|
@@ -21,8 +21,8 @@ edgedb project init
|
|
|
21
21
|
\`\`\`
|
|
22
22
|
|
|
23
23
|
Then follow instructions at <https://www.edgedb.com/docs/intro/quickstart#set-up-your-schema>`;
|
|
24
|
-
content.
|
|
25
|
-
return content
|
|
24
|
+
content.addMarkdownFeature(todo, "edgedb");
|
|
25
|
+
return content;
|
|
26
26
|
}
|
|
27
27
|
export {
|
|
28
28
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/edgedb/dist/files/$package.json.js
|
|
@@ -72,7 +72,7 @@ var require_package = __commonJS({
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
async function getPackageJson(props) {
|
|
75
|
-
const packageJson = await
|
|
75
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
76
76
|
return packageJson.setScript("edgedb:generate-queries", {
|
|
77
77
|
value: "@edgedb/generate queries",
|
|
78
78
|
precedence: 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/eslint/dist/files/$package.json.js
|
|
@@ -85,7 +85,7 @@ var require_package = __commonJS({
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
async function getPackageJson(props) {
|
|
88
|
-
const packageJson = await
|
|
88
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
89
89
|
return packageJson.setScript("lint", {
|
|
90
90
|
value: "eslint .",
|
|
91
91
|
precedence: 0
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/express/dist/files/$package.json.js
|
|
@@ -87,7 +87,7 @@ var require_package = __commonJS({
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
async function getPackageJson(props) {
|
|
90
|
-
const packageJson = await
|
|
90
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
91
91
|
return packageJson.setScript("dev", {
|
|
92
92
|
value: "tsx ./express-entry.ts",
|
|
93
93
|
precedence: 20,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/fastify/dist/files/$package.json.js
|
|
@@ -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 lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
93
93
|
return packageJson.setScript("dev", {
|
|
94
94
|
value: "tsx ./fastify-entry.ts",
|
|
95
95
|
precedence: 20,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
const envContent = await props.readfile?.();
|
|
10
|
-
return
|
|
10
|
+
return vWs(
|
|
11
11
|
envContent,
|
|
12
12
|
"GOOGLE_APPLICATION_CREDENTIALS",
|
|
13
13
|
"firebase/service-account.json",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
oWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$README.md.js
|
|
8
8
|
async function getReadme(props) {
|
|
9
|
-
const content = await
|
|
9
|
+
const content = await oWs(props);
|
|
10
10
|
const todo = `
|
|
11
11
|
## *Firebase*
|
|
12
12
|
- You first need to **[Create a Firebase project](https://firebase.google.com/docs/web/setup#create-project)**.
|
|
@@ -27,8 +27,8 @@ const firebaseConfig = {
|
|
|
27
27
|
- Read more about Firebase Auth at official [firebase auth docs](https://firebase.google.com/docs/auth)
|
|
28
28
|
- Read FirebaseUI at [firebaseui-web docs](https://github.com/firebase/firebaseui-web?tab=readme-ov-file#using-firebaseui-for-authentication)
|
|
29
29
|
`;
|
|
30
|
-
content.
|
|
31
|
-
return content
|
|
30
|
+
content.addMarkdownFeature(todo, "firebase-auth");
|
|
31
|
+
return content;
|
|
32
32
|
}
|
|
33
33
|
export {
|
|
34
34
|
getReadme as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/firebase-auth/dist/files/$package.json.js
|
|
@@ -115,7 +115,7 @@ var require_package = __commonJS({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
async function getPackageJson(props) {
|
|
118
|
-
const packageJson = await
|
|
118
|
+
const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
119
119
|
return packageJson.addDevDependencies(["@types/cookie"]).addDependencies(["firebase", "firebase-admin", "firebaseui", "cookie", "@universal-middleware/core", "dotenv"]);
|
|
120
120
|
}
|
|
121
121
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
vWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/google-analytics/dist/files/$.env.js
|
|
8
8
|
async function getEnv(props) {
|
|
9
9
|
const envContent = await props.readfile?.();
|
|
10
|
-
return
|
|
10
|
+
return vWs(
|
|
11
11
|
envContent,
|
|
12
12
|
"PUBLIC_ENV__GOOGLE_ANALYTICS",
|
|
13
13
|
"G-XXXXXXXXXX",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "../../../../chunk-
|
|
3
|
+
lWs
|
|
4
|
+
} from "../../../../chunk-A2ICK2V5.js";
|
|
5
5
|
import "../../../../chunk-LU7IBQI7.js";
|
|
6
6
|
|
|
7
7
|
// ../../boilerplates/h3/dist/files/$package.json.js
|
|
@@ -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 lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
|
|
94
94
|
return packageJson.setScript("dev", {
|
|
95
95
|
value: "tsx ./h3-entry.ts",
|
|
96
96
|
precedence: 20,
|