alchemy 2.0.0-beta.78 → 2.0.0-beta.79
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/bin/cli.js +25 -65
- package/bin/exec.js +1 -1
- package/bin/tsconfig.json +5 -0
- package/lib/Cloudflare/Workers/InferEnv.d.ts +3 -1
- package/lib/Cloudflare/Workers/InferEnv.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.d.ts +5 -2
- package/lib/Cloudflare/Workers/Worker.d.ts.map +1 -1
- package/lib/Cloudflare/Workers/Worker.js.map +1 -1
- package/lib/Prisma/Providers.d.ts +4 -1
- package/lib/Prisma/Providers.d.ts.map +1 -1
- package/lib/Prisma/Providers.js +7 -2
- package/lib/Prisma/Providers.js.map +1 -1
- package/lib/Prisma/Website/Artifact.d.ts +52 -0
- package/lib/Prisma/Website/Artifact.d.ts.map +1 -0
- package/lib/Prisma/Website/Artifact.js +285 -0
- package/lib/Prisma/Website/Artifact.js.map +1 -0
- package/lib/Prisma/Website/Astro.d.ts +62 -0
- package/lib/Prisma/Website/Astro.d.ts.map +1 -0
- package/lib/Prisma/Website/Astro.js +50 -0
- package/lib/Prisma/Website/Astro.js.map +1 -0
- package/lib/Prisma/Website/Foldkit.d.ts +30 -0
- package/lib/Prisma/Website/Foldkit.d.ts.map +1 -0
- package/lib/Prisma/Website/Foldkit.js +30 -0
- package/lib/Prisma/Website/Foldkit.js.map +1 -0
- package/lib/Prisma/Website/FrameworkSite.d.ts +82 -0
- package/lib/Prisma/Website/FrameworkSite.d.ts.map +1 -0
- package/lib/Prisma/Website/FrameworkSite.js +96 -0
- package/lib/Prisma/Website/FrameworkSite.js.map +1 -0
- package/lib/Prisma/Website/Nextjs.d.ts +35 -0
- package/lib/Prisma/Website/Nextjs.d.ts.map +1 -0
- package/lib/Prisma/Website/Nextjs.js +37 -0
- package/lib/Prisma/Website/Nextjs.js.map +1 -0
- package/lib/Prisma/Website/Nuxt.d.ts +37 -0
- package/lib/Prisma/Website/Nuxt.d.ts.map +1 -0
- package/lib/Prisma/Website/Nuxt.js +37 -0
- package/lib/Prisma/Website/Nuxt.js.map +1 -0
- package/lib/Prisma/Website/Octane.d.ts +35 -0
- package/lib/Prisma/Website/Octane.d.ts.map +1 -0
- package/lib/Prisma/Website/Octane.js +36 -0
- package/lib/Prisma/Website/Octane.js.map +1 -0
- package/lib/Prisma/Website/ReactRouter.d.ts +35 -0
- package/lib/Prisma/Website/ReactRouter.d.ts.map +1 -0
- package/lib/Prisma/Website/ReactRouter.js +36 -0
- package/lib/Prisma/Website/ReactRouter.js.map +1 -0
- package/lib/Prisma/Website/SolidStart.d.ts +37 -0
- package/lib/Prisma/Website/SolidStart.d.ts.map +1 -0
- package/lib/Prisma/Website/SolidStart.js +37 -0
- package/lib/Prisma/Website/SolidStart.js.map +1 -0
- package/lib/Prisma/Website/StaticSite.d.ts +57 -0
- package/lib/Prisma/Website/StaticSite.d.ts.map +1 -0
- package/lib/Prisma/Website/StaticSite.js +118 -0
- package/lib/Prisma/Website/StaticSite.js.map +1 -0
- package/lib/Prisma/Website/SvelteKit.d.ts +37 -0
- package/lib/Prisma/Website/SvelteKit.d.ts.map +1 -0
- package/lib/Prisma/Website/SvelteKit.js +37 -0
- package/lib/Prisma/Website/SvelteKit.js.map +1 -0
- package/lib/Prisma/Website/TanStackStart.d.ts +35 -0
- package/lib/Prisma/Website/TanStackStart.d.ts.map +1 -0
- package/lib/Prisma/Website/TanStackStart.js +36 -0
- package/lib/Prisma/Website/TanStackStart.js.map +1 -0
- package/lib/Prisma/Website/Vite.d.ts +42 -0
- package/lib/Prisma/Website/Vite.d.ts.map +1 -0
- package/lib/Prisma/Website/Vite.js +38 -0
- package/lib/Prisma/Website/Vite.js.map +1 -0
- package/lib/Prisma/Website/Vocs.d.ts +37 -0
- package/lib/Prisma/Website/Vocs.d.ts.map +1 -0
- package/lib/Prisma/Website/Vocs.js +38 -0
- package/lib/Prisma/Website/Vocs.js.map +1 -0
- package/lib/Prisma/Website/Waku.d.ts +44 -0
- package/lib/Prisma/Website/Waku.d.ts.map +1 -0
- package/lib/Prisma/Website/Waku.js +38 -0
- package/lib/Prisma/Website/Waku.js.map +1 -0
- package/lib/Prisma/Website/index.d.ts +15 -0
- package/lib/Prisma/Website/index.d.ts.map +1 -0
- package/lib/Prisma/Website/index.js +14 -0
- package/lib/Prisma/Website/index.js.map +1 -0
- package/lib/Prisma/index.d.ts +1 -0
- package/lib/Prisma/index.d.ts.map +1 -1
- package/lib/Prisma/index.js +1 -0
- package/lib/Prisma/index.js.map +1 -1
- package/lib/State/HttpStateApi.d.ts +11 -11
- package/lib/Website/Server.d.ts.map +1 -1
- package/lib/Website/Server.js +18 -8
- package/lib/Website/Server.js.map +1 -1
- package/package.json +6 -6
- package/src/Cloudflare/Workers/InferEnv.ts +5 -3
- package/src/Cloudflare/Workers/Worker.ts +25 -5
- package/src/Prisma/Providers.ts +11 -0
- package/src/Prisma/Website/Artifact.ts +429 -0
- package/src/Prisma/Website/Astro.ts +72 -0
- package/src/Prisma/Website/Foldkit.ts +34 -0
- package/src/Prisma/Website/FrameworkSite.ts +204 -0
- package/src/Prisma/Website/Nextjs.ts +41 -0
- package/src/Prisma/Website/Nuxt.ts +44 -0
- package/src/Prisma/Website/Octane.ts +40 -0
- package/src/Prisma/Website/ReactRouter.ts +40 -0
- package/src/Prisma/Website/SolidStart.ts +44 -0
- package/src/Prisma/Website/StaticSite.ts +149 -0
- package/src/Prisma/Website/SvelteKit.ts +44 -0
- package/src/Prisma/Website/TanStackStart.ts +40 -0
- package/src/Prisma/Website/Vite.ts +50 -0
- package/src/Prisma/Website/Vocs.ts +45 -0
- package/src/Prisma/Website/Waku.ts +52 -0
- package/src/Prisma/Website/index.ts +19 -0
- package/src/Prisma/index.ts +1 -0
- package/src/Website/Server.ts +21 -8
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { makeNodeServeEntrySource } from "@alchemy.run/frontend-frameworks/core";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Path from "effect/Path";
|
|
4
|
+
import * as Redacted from "effect/Redacted";
|
|
5
|
+
import { AlchemyContext } from "../../AlchemyContext.js";
|
|
6
|
+
import * as Command from "../../Command/index.js";
|
|
7
|
+
import * as Namespace from "../../Namespace.js";
|
|
8
|
+
import * as Output from "../../Output.js";
|
|
9
|
+
import { ProviderModePolicy } from "../../ProviderMode.js";
|
|
10
|
+
import { initialCwd } from "../../Util/Node.js";
|
|
11
|
+
import { WebsiteArtifact } from "./Artifact.js";
|
|
12
|
+
import { deployWebsite, } from "./FrameworkSite.js";
|
|
13
|
+
const quote = (value) => `'${value.replaceAll("'", "'\\''")}'`;
|
|
14
|
+
/**
|
|
15
|
+
* Build a static website with a shell command and serve it on Prisma Compute.
|
|
16
|
+
* Only the output directory is packaged; the repository is never uploaded.
|
|
17
|
+
* Native development declares no Prisma Project, Compute, or custom domain.
|
|
18
|
+
* `Alchemy.remote()` opts into the live deployment during development.
|
|
19
|
+
*
|
|
20
|
+
* ### Creating a Static Website
|
|
21
|
+
* **Example:** Hugo website
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const site = yield* Prisma.Website.StaticSite("Blog", {
|
|
24
|
+
* command: "hugo --minify",
|
|
25
|
+
* outdir: "public",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ### Monorepos and Development
|
|
30
|
+
* **Example:** A custom frontend build
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const site = yield* Prisma.Website.StaticSite("Web", {
|
|
33
|
+
* cwd: "apps/web",
|
|
34
|
+
* command: "npm run build",
|
|
35
|
+
* outdir: "dist",
|
|
36
|
+
* spa: true,
|
|
37
|
+
* dev: { command: "npm run dev" },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @resource
|
|
42
|
+
* @product Website
|
|
43
|
+
*/
|
|
44
|
+
export const StaticSite = (id, props) => Effect.gen(function* () {
|
|
45
|
+
const context = yield* AlchemyContext;
|
|
46
|
+
const remote = yield* ProviderModePolicy;
|
|
47
|
+
const local = context.dev && remote !== true;
|
|
48
|
+
const cwd = props.cwd ?? props.rootDir;
|
|
49
|
+
if (local && props.dev !== undefined) {
|
|
50
|
+
const dev = yield* Command.Dev("Dev", {
|
|
51
|
+
command: props.dev.command,
|
|
52
|
+
cwd: props.dev.cwd ?? cwd,
|
|
53
|
+
env: { ...props.env, ...props.dev.env },
|
|
54
|
+
});
|
|
55
|
+
return {
|
|
56
|
+
url: props.dev.url ?? dev.url,
|
|
57
|
+
compute: undefined,
|
|
58
|
+
project: undefined,
|
|
59
|
+
domain: undefined,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (props.spa && props.errorPage !== undefined) {
|
|
63
|
+
return yield* Effect.die(new Error("StaticSite spa and errorPage are mutually exclusive."));
|
|
64
|
+
}
|
|
65
|
+
const build = yield* Command.Build("Build", {
|
|
66
|
+
command: props.command,
|
|
67
|
+
cwd,
|
|
68
|
+
env: props.env,
|
|
69
|
+
outdir: props.outdir,
|
|
70
|
+
memo: props.memo,
|
|
71
|
+
shell: props.shell,
|
|
72
|
+
timeout: props.timeout,
|
|
73
|
+
});
|
|
74
|
+
const handling = props.assets?.notFoundHandling;
|
|
75
|
+
const options = {
|
|
76
|
+
notFoundHandling: props.errorPage !== undefined
|
|
77
|
+
? "404-page"
|
|
78
|
+
: props.spa
|
|
79
|
+
? "spa"
|
|
80
|
+
: handling === "single-page-application"
|
|
81
|
+
? "spa"
|
|
82
|
+
: (handling ?? "none"),
|
|
83
|
+
htmlHandling: props.assets?.htmlHandling,
|
|
84
|
+
errorPage: props.errorPage,
|
|
85
|
+
};
|
|
86
|
+
if (local) {
|
|
87
|
+
const path = yield* Path.Path;
|
|
88
|
+
const runtime = yield* Effect.sync(() => process.execPath);
|
|
89
|
+
const command = Output.map(build.outdir, (outdir) => {
|
|
90
|
+
const source = makeNodeServeEntrySource({
|
|
91
|
+
...options,
|
|
92
|
+
clientDirExpression: JSON.stringify(path.resolve(initialCwd, outdir)),
|
|
93
|
+
printUrl: true,
|
|
94
|
+
});
|
|
95
|
+
return `${quote(runtime)} --eval ${quote(source)}`;
|
|
96
|
+
});
|
|
97
|
+
const dev = yield* Command.Dev("Dev", {
|
|
98
|
+
command,
|
|
99
|
+
cwd,
|
|
100
|
+
shell: true,
|
|
101
|
+
env: { ...props.env, HOST: "127.0.0.1", PORT: "0" },
|
|
102
|
+
});
|
|
103
|
+
return {
|
|
104
|
+
url: dev.url,
|
|
105
|
+
compute: undefined,
|
|
106
|
+
project: undefined,
|
|
107
|
+
domain: undefined,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
const artifact = yield* WebsiteArtifact("Artifact", {
|
|
111
|
+
root: cwd ?? ".",
|
|
112
|
+
distDir: build.outdir,
|
|
113
|
+
buildHash: build.hash.output,
|
|
114
|
+
static: options,
|
|
115
|
+
});
|
|
116
|
+
return yield* deployWebsite(props, artifact);
|
|
117
|
+
}).pipe(Namespace.push(id));
|
|
118
|
+
//# sourceMappingURL=StaticSite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StaticSite.js","sourceRoot":"","sources":["../../../src/Prisma/Website/StaticSite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OA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teKitProps extends FrameworkSiteProps {
|
|
4
|
+
/** Serializable SvelteKit v3 plugin configuration. The Node target owns adapter. */
|
|
5
|
+
kit?: Record<string, unknown>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* SvelteKit SSR and prerendered assets on Prisma Compute. The Node target injects the adapter. For Kit v3, pass configuration through kit rather than a svelte.config.js file.
|
|
9
|
+
*
|
|
10
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
11
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
12
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
13
|
+
*
|
|
14
|
+
* ### Creating a Website
|
|
15
|
+
* **Example:** SvelteKit application
|
|
16
|
+
* ```typescript
|
|
17
|
+
* const site = yield* Prisma.Website.SvelteKit("Web", {
|
|
18
|
+
* rootDir: "./app",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ### Deployment Configuration
|
|
23
|
+
* **Example:** Existing project and custom hostname
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const site = yield* Prisma.Website.SvelteKit("Web", {
|
|
26
|
+
* project,
|
|
27
|
+
* domain: "www.example.com",
|
|
28
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
29
|
+
* compute: { destroyOldDeployment: true },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @resource
|
|
34
|
+
* @product Website
|
|
35
|
+
*/
|
|
36
|
+
export declare const SvelteKit: (id: string, props?: SvelteKitProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
|
|
37
|
+
//# sourceMappingURL=SvelteKit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvelteKit.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/SvelteKit.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,oDAAoD;AACpD,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,oFAAoF;IACpF,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,SAAS,OAAQ,MAAM,UAAS,cAAc,yUAK9B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as Namespace from "../../Namespace.js";
|
|
2
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
3
|
+
/**
|
|
4
|
+
* SvelteKit SSR and prerendered assets on Prisma Compute. The Node target injects the adapter. For Kit v3, pass configuration through kit rather than a svelte.config.js file.
|
|
5
|
+
*
|
|
6
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
7
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
8
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
9
|
+
*
|
|
10
|
+
* ### Creating a Website
|
|
11
|
+
* **Example:** SvelteKit application
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const site = yield* Prisma.Website.SvelteKit("Web", {
|
|
14
|
+
* rootDir: "./app",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### Deployment Configuration
|
|
19
|
+
* **Example:** Existing project and custom hostname
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const site = yield* Prisma.Website.SvelteKit("Web", {
|
|
22
|
+
* project,
|
|
23
|
+
* domain: "www.example.com",
|
|
24
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
25
|
+
* compute: { destroyOldDeployment: true },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @resource
|
|
30
|
+
* @product Website
|
|
31
|
+
*/
|
|
32
|
+
export const SvelteKit = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
33
|
+
framework: "@alchemy.run/frontend-frameworks/sveltekit",
|
|
34
|
+
target: "@alchemy.run/frontend-frameworks/sveltekit/node",
|
|
35
|
+
options: { kit: props.kit },
|
|
36
|
+
}).pipe(Namespace.push(id));
|
|
37
|
+
//# sourceMappingURL=SvelteKit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvelteKit.js","sourceRoot":"","sources":["../../../src/Prisma/Website/SvelteKit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAQhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,EAAU,EAAE,KAAK,GAAmB,EAAE,EAAE,EAAE,CAClE,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,4CAA4C;IACvD,MAAM,EAAE,iDAAiD;IACzD,OAAO,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE;CAC5B,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** Configuration for a Prisma TanStackStart website. */
|
|
3
|
+
export interface TanStackStartProps extends FrameworkSiteProps {
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* TanStack Start SSR and browser assets on Prisma Compute using the existing Node framework target.
|
|
7
|
+
*
|
|
8
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
9
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
10
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
11
|
+
*
|
|
12
|
+
* ### Creating a Website
|
|
13
|
+
* **Example:** TanStackStart application
|
|
14
|
+
* ```typescript
|
|
15
|
+
* const site = yield* Prisma.Website.TanStackStart("Web", {
|
|
16
|
+
* rootDir: "./app",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ### Deployment Configuration
|
|
21
|
+
* **Example:** Existing project and custom hostname
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const site = yield* Prisma.Website.TanStackStart("Web", {
|
|
24
|
+
* project,
|
|
25
|
+
* domain: "www.example.com",
|
|
26
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
27
|
+
* compute: { destroyOldDeployment: true },
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @resource
|
|
32
|
+
* @product Website
|
|
33
|
+
*/
|
|
34
|
+
export declare const TanStackStart: (id: string, props?: TanStackStartProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
|
|
35
|
+
//# sourceMappingURL=TanStackStart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TanStackStart.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/TanStackStart.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,wDAAwD;AACxD,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;CAAG;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,aAAa,OAAQ,MAAM,UAAS,kBAAkB,yUAItC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as Namespace from "../../Namespace.js";
|
|
2
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
3
|
+
/**
|
|
4
|
+
* TanStack Start SSR and browser assets on Prisma Compute using the existing Node framework target.
|
|
5
|
+
*
|
|
6
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
7
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
8
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
9
|
+
*
|
|
10
|
+
* ### Creating a Website
|
|
11
|
+
* **Example:** TanStackStart application
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const site = yield* Prisma.Website.TanStackStart("Web", {
|
|
14
|
+
* rootDir: "./app",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### Deployment Configuration
|
|
19
|
+
* **Example:** Existing project and custom hostname
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const site = yield* Prisma.Website.TanStackStart("Web", {
|
|
22
|
+
* project,
|
|
23
|
+
* domain: "www.example.com",
|
|
24
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
25
|
+
* compute: { destroyOldDeployment: true },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @resource
|
|
30
|
+
* @product Website
|
|
31
|
+
*/
|
|
32
|
+
export const TanStackStart = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
33
|
+
framework: "@alchemy.run/frontend-frameworks/tanstack-start",
|
|
34
|
+
target: "@alchemy.run/frontend-frameworks/tanstack-start/node",
|
|
35
|
+
}).pipe(Namespace.push(id));
|
|
36
|
+
//# sourceMappingURL=TanStackStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TanStackStart.js","sourceRoot":"","sources":["../../../src/Prisma/Website/TanStackStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAKhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAU,EAAE,KAAK,GAAuB,EAAE,EAAE,EAAE,CAC1E,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,iDAAiD;IAC5D,MAAM,EAAE,sDAAsD;CAC/D,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** Configuration for a Prisma Vite website. */
|
|
3
|
+
export interface ViteProps extends FrameworkSiteProps {
|
|
4
|
+
/** Serializable overrides merged over vite.config.*. */
|
|
5
|
+
vite?: {
|
|
6
|
+
/** Build output directory. @default "dist" */
|
|
7
|
+
outDir?: string;
|
|
8
|
+
/** Public base path. @default "/" */
|
|
9
|
+
base?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Static Vite assets served on Prisma Compute. The project’s Vite plugins and configuration drive the build; native Vite HMR runs during development.
|
|
14
|
+
*
|
|
15
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
16
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
17
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
18
|
+
*
|
|
19
|
+
* ### Creating a Website
|
|
20
|
+
* **Example:** Vite application
|
|
21
|
+
* ```typescript
|
|
22
|
+
* const site = yield* Prisma.Website.Vite("Web", {
|
|
23
|
+
* rootDir: "./app",
|
|
24
|
+
* });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* ### Deployment Configuration
|
|
28
|
+
* **Example:** Existing project and custom hostname
|
|
29
|
+
* ```typescript
|
|
30
|
+
* const site = yield* Prisma.Website.Vite("Web", {
|
|
31
|
+
* project,
|
|
32
|
+
* domain: "www.example.com",
|
|
33
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
34
|
+
* compute: { destroyOldDeployment: true },
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* @resource
|
|
39
|
+
* @product Website
|
|
40
|
+
*/
|
|
41
|
+
export declare const Vite: (id: string, props?: ViteProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
|
|
42
|
+
//# sourceMappingURL=Vite.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vite.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Vite.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,+CAA+C;AAC/C,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,wDAAwD;IACxD,IAAI,CAAC,EAAE;QACL,8CAA8C;QAC9C,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,qCAAqC;QACrC,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI,OAAQ,MAAM,UAAS,SAAS,yUAMpB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Namespace from "../../Namespace.js";
|
|
2
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
3
|
+
/**
|
|
4
|
+
* Static Vite assets served on Prisma Compute. The project’s Vite plugins and configuration drive the build; native Vite HMR runs during development.
|
|
5
|
+
*
|
|
6
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
7
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
8
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
9
|
+
*
|
|
10
|
+
* ### Creating a Website
|
|
11
|
+
* **Example:** Vite application
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const site = yield* Prisma.Website.Vite("Web", {
|
|
14
|
+
* rootDir: "./app",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### Deployment Configuration
|
|
19
|
+
* **Example:** Existing project and custom hostname
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const site = yield* Prisma.Website.Vite("Web", {
|
|
22
|
+
* project,
|
|
23
|
+
* domain: "www.example.com",
|
|
24
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
25
|
+
* compute: { destroyOldDeployment: true },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @resource
|
|
30
|
+
* @product Website
|
|
31
|
+
*/
|
|
32
|
+
export const Vite = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
33
|
+
framework: "@alchemy.run/frontend-frameworks/vite",
|
|
34
|
+
target: "@alchemy.run/frontend-frameworks/vite/node",
|
|
35
|
+
options: { vite: props.vite },
|
|
36
|
+
notFoundHandling: "spa",
|
|
37
|
+
}).pipe(Namespace.push(id));
|
|
38
|
+
//# sourceMappingURL=Vite.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vite.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Vite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAahF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAU,EAAE,KAAK,GAAc,EAAE,EAAE,EAAE,CACxD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,uCAAuC;IAClD,MAAM,EAAE,4CAA4C;IACpD,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;IAC7B,gBAAgB,EAAE,KAAK;CACxB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** Configuration for a Prisma Vocs website. */
|
|
3
|
+
export interface VocsProps extends FrameworkSiteProps {
|
|
4
|
+
/** Production output directory relative to rootDir, matching vocs.config.*. @default "dist" */
|
|
5
|
+
outDir?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Vocs documentation and its Waku RSC handler on Prisma Compute. Install Vocs and its Waku peers alongside the framework integration.
|
|
9
|
+
*
|
|
10
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
11
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
12
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
13
|
+
*
|
|
14
|
+
* ### Creating a Website
|
|
15
|
+
* **Example:** Vocs application
|
|
16
|
+
* ```typescript
|
|
17
|
+
* const site = yield* Prisma.Website.Vocs("Web", {
|
|
18
|
+
* rootDir: "./app",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* ### Deployment Configuration
|
|
23
|
+
* **Example:** Existing project and custom hostname
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const site = yield* Prisma.Website.Vocs("Web", {
|
|
26
|
+
* project,
|
|
27
|
+
* domain: "www.example.com",
|
|
28
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
29
|
+
* compute: { destroyOldDeployment: true },
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @resource
|
|
34
|
+
* @product Website
|
|
35
|
+
*/
|
|
36
|
+
export declare const Vocs: (id: string, props?: VocsProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
|
|
37
|
+
//# sourceMappingURL=Vocs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vocs.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Vocs.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,+CAA+C;AAC/C,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI,OAAQ,MAAM,UAAS,SAAS,yUAMpB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Namespace from "../../Namespace.js";
|
|
2
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
3
|
+
/**
|
|
4
|
+
* Vocs documentation and its Waku RSC handler on Prisma Compute. Install Vocs and its Waku peers alongside the framework integration.
|
|
5
|
+
*
|
|
6
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
7
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
8
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
9
|
+
*
|
|
10
|
+
* ### Creating a Website
|
|
11
|
+
* **Example:** Vocs application
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const site = yield* Prisma.Website.Vocs("Web", {
|
|
14
|
+
* rootDir: "./app",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### Deployment Configuration
|
|
19
|
+
* **Example:** Existing project and custom hostname
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const site = yield* Prisma.Website.Vocs("Web", {
|
|
22
|
+
* project,
|
|
23
|
+
* domain: "www.example.com",
|
|
24
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
25
|
+
* compute: { destroyOldDeployment: true },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @resource
|
|
30
|
+
* @product Website
|
|
31
|
+
*/
|
|
32
|
+
export const Vocs = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
33
|
+
framework: "@alchemy.run/frontend-frameworks/vocs/node",
|
|
34
|
+
target: "@alchemy.run/frontend-frameworks/vocs/node",
|
|
35
|
+
options: { outDir: props.outDir },
|
|
36
|
+
htmlHandling: "drop-trailing-slash",
|
|
37
|
+
}).pipe(Namespace.push(id));
|
|
38
|
+
//# sourceMappingURL=Vocs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Vocs.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Vocs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAQhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAU,EAAE,KAAK,GAAc,EAAE,EAAE,EAAE,CACxD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,4CAA4C;IACvD,MAAM,EAAE,4CAA4C;IACpD,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACjC,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type FrameworkSiteProps } from "./FrameworkSite.ts";
|
|
2
|
+
/** Configuration for a Prisma Waku website. */
|
|
3
|
+
export interface WakuProps extends FrameworkSiteProps {
|
|
4
|
+
/** Serializable overrides merged over waku.config.*. */
|
|
5
|
+
waku?: {
|
|
6
|
+
/** Application source directory. */
|
|
7
|
+
srcDir?: string;
|
|
8
|
+
/** Production output directory. */
|
|
9
|
+
distDir?: string;
|
|
10
|
+
/** Public URL base path. */
|
|
11
|
+
basePath?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Waku RSC and static pages on Prisma Compute. The Node target selects Waku’s node adapter; do not set unstable_adapter.
|
|
16
|
+
*
|
|
17
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
18
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
19
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
20
|
+
*
|
|
21
|
+
* ### Creating a Website
|
|
22
|
+
* **Example:** Waku application
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const site = yield* Prisma.Website.Waku("Web", {
|
|
25
|
+
* rootDir: "./app",
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ### Deployment Configuration
|
|
30
|
+
* **Example:** Existing project and custom hostname
|
|
31
|
+
* ```typescript
|
|
32
|
+
* const site = yield* Prisma.Website.Waku("Web", {
|
|
33
|
+
* project,
|
|
34
|
+
* domain: "www.example.com",
|
|
35
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
36
|
+
* compute: { destroyOldDeployment: true },
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @resource
|
|
41
|
+
* @product Website
|
|
42
|
+
*/
|
|
43
|
+
export declare const Waku: (id: string, props?: WakuProps) => import("effect/Effect").Effect<import("./FrameworkSite.ts").Website, never, import("../../AlchemyContext.ts").AlchemyContext | import("../../Provider.ts").Provider<import("../../Website/Server.ts").Server> | import("../../Provider.ts").Provider<import("./Artifact.ts").WebsiteArtifact> | import("../Providers.ts").Providers>;
|
|
44
|
+
//# sourceMappingURL=Waku.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Waku.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/Waku.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,+CAA+C;AAC/C,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,wDAAwD;IACxD,IAAI,CAAC,EAAE;QACL,oCAAoC;QACpC,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,mCAAmC;QACnC,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,4BAA4B;QAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,IAAI,OAAQ,MAAM,UAAS,SAAS,yUAMpB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Namespace from "../../Namespace.js";
|
|
2
|
+
import { makeFrameworkSite } from "./FrameworkSite.js";
|
|
3
|
+
/**
|
|
4
|
+
* Waku RSC and static pages on Prisma Compute. The Node target selects Waku’s node adapter; do not set unstable_adapter.
|
|
5
|
+
*
|
|
6
|
+
* Native framework development and HMR run without Prisma cloud resources.
|
|
7
|
+
* Apply `Alchemy.remote()` to use the live Compute deployment during dev.
|
|
8
|
+
* Packaging requires the optional `@vercel/nft` peer dependency.
|
|
9
|
+
*
|
|
10
|
+
* ### Creating a Website
|
|
11
|
+
* **Example:** Waku application
|
|
12
|
+
* ```typescript
|
|
13
|
+
* const site = yield* Prisma.Website.Waku("Web", {
|
|
14
|
+
* rootDir: "./app",
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ### Deployment Configuration
|
|
19
|
+
* **Example:** Existing project and custom hostname
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const site = yield* Prisma.Website.Waku("Web", {
|
|
22
|
+
* project,
|
|
23
|
+
* domain: "www.example.com",
|
|
24
|
+
* env: { API_BASE: "https://api.example.com" },
|
|
25
|
+
* compute: { destroyOldDeployment: true },
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @resource
|
|
30
|
+
* @product Website
|
|
31
|
+
*/
|
|
32
|
+
export const Waku = (id, props = {}) => makeFrameworkSite(id, props, {
|
|
33
|
+
framework: "@alchemy.run/frontend-frameworks/waku",
|
|
34
|
+
target: "@alchemy.run/frontend-frameworks/waku/node",
|
|
35
|
+
options: { waku: props.waku },
|
|
36
|
+
htmlHandling: "drop-trailing-slash",
|
|
37
|
+
}).pipe(Namespace.push(id));
|
|
38
|
+
//# sourceMappingURL=Waku.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Waku.js","sourceRoot":"","sources":["../../../src/Prisma/Website/Waku.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAehF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,EAAU,EAAE,KAAK,GAAc,EAAE,EAAE,EAAE,CACxD,iBAAiB,CAAC,EAAE,EAAE,KAAK,EAAE;IAC3B,SAAS,EAAE,uCAAuC;IAClD,MAAM,EAAE,4CAA4C;IACpD,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE;IAC7B,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./Astro.ts";
|
|
2
|
+
export * from "./Foldkit.ts";
|
|
3
|
+
export * from "./Nextjs.ts";
|
|
4
|
+
export * from "./Nuxt.ts";
|
|
5
|
+
export * from "./Octane.ts";
|
|
6
|
+
export * from "./ReactRouter.ts";
|
|
7
|
+
export * from "./SolidStart.ts";
|
|
8
|
+
export * from "./StaticSite.ts";
|
|
9
|
+
export * from "./SvelteKit.ts";
|
|
10
|
+
export * from "./TanStackStart.ts";
|
|
11
|
+
export * from "./Vite.ts";
|
|
12
|
+
export * from "./Vocs.ts";
|
|
13
|
+
export * from "./Waku.ts";
|
|
14
|
+
export type { FrameworkSiteProps, Website, WebsiteComputeOptions, WebsiteProjectReference, } from "./FrameworkSite.ts";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Prisma/Website/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,YAAY,EACV,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./Astro.js";
|
|
2
|
+
export * from "./Foldkit.js";
|
|
3
|
+
export * from "./Nextjs.js";
|
|
4
|
+
export * from "./Nuxt.js";
|
|
5
|
+
export * from "./Octane.js";
|
|
6
|
+
export * from "./ReactRouter.js";
|
|
7
|
+
export * from "./SolidStart.js";
|
|
8
|
+
export * from "./StaticSite.js";
|
|
9
|
+
export * from "./SvelteKit.js";
|
|
10
|
+
export * from "./TanStackStart.js";
|
|
11
|
+
export * from "./Vite.js";
|
|
12
|
+
export * from "./Vocs.js";
|
|
13
|
+
export * from "./Waku.js";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Prisma/Website/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
package/lib/Prisma/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export * from "./ReadWriteBucket.ts";
|
|
|
26
26
|
export * from "./Providers.ts";
|
|
27
27
|
export * from "./SourceRepository.ts";
|
|
28
28
|
export * from "./WriteBucket.ts";
|
|
29
|
+
export * as Website from "./Website/index.ts";
|
|
29
30
|
export { KNOWN_REGION_IDS, REGIONS } from "./Types.ts";
|
|
30
31
|
export type * as Types from "./Types.ts";
|
|
31
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Prisma/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAA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,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,YAAY,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
package/lib/Prisma/index.js
CHANGED
|
@@ -26,5 +26,6 @@ export * from "./ReadWriteBucket.js";
|
|
|
26
26
|
export * from "./Providers.js";
|
|
27
27
|
export * from "./SourceRepository.js";
|
|
28
28
|
export * from "./WriteBucket.js";
|
|
29
|
+
export * as Website from "./Website/index.js";
|
|
29
30
|
export { KNOWN_REGION_IDS, REGIONS } from "./Types.js";
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
package/lib/Prisma/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Prisma/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CA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