create-cloudflare 0.0.0-59c7c8ee1 → 0.0.0-59eda4af5
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/cli.js +28 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/templates/analog/templates/worker-configuration.d.ts +1 -1
- package/templates/astro/templates/ts/worker-configuration.d.ts +1 -1
- package/templates/common/ts/src/index.ts +1 -1
- package/templates/common/ts/worker-configuration.d.ts +1 -1
- package/templates/hello-world/js/package.json +1 -1
- package/templates/hello-world/js/vitest.config.js +1 -1
- package/templates/hello-world/js/{wrangler.json → wrangler.jsonc} +2 -2
- package/templates/hello-world/py/{wrangler.json → wrangler.jsonc} +2 -2
- package/templates/hello-world/ts/package.json +1 -1
- package/templates/hello-world/ts/src/index.ts +1 -1
- package/templates/hello-world/ts/vitest.config.mts +1 -1
- package/templates/hello-world/ts/worker-configuration.d.ts +1 -1
- package/templates/hello-world/ts/{wrangler.json → wrangler.jsonc} +2 -2
- package/templates/hello-world-durable-object/js/src/index.js +3 -3
- package/templates/hello-world-durable-object/ts/src/index.ts +3 -3
- package/templates/hono/templates/worker-configuration.d.ts +1 -1
- package/templates/next/README.md +1 -1
- package/templates/next/c3.ts +8 -8
- package/templates/nuxt/templates/worker-configuration.d.ts +1 -1
- package/templates/openapi/ts/worker-configuration.d.ts +1 -1
- package/templates/queues/ts/src/index.ts +1 -1
- package/templates/queues/ts/worker-configuration.d.ts +1 -1
- package/templates/qwik/templates/worker-configuration.d.ts +1 -1
- package/templates/remix/templates/worker-configuration.d.ts +1 -1
- package/templates/scheduled/js/src/index.js +1 -1
- package/templates/scheduled/ts/src/index.ts +2 -2
- package/templates/scheduled/ts/worker-configuration.d.ts +1 -1
- package/templates-experimental/astro/templates/ts/worker-configuration.d.ts +1 -1
- package/templates-experimental/hello-world-durable-object-with-assets/js/src/index.js +3 -3
- package/templates-experimental/hello-world-durable-object-with-assets/ts/src/index.ts +3 -3
- package/templates-experimental/hello-world-with-assets/js/package.json +1 -1
- package/templates-experimental/hello-world-with-assets/js/vitest.config.js +1 -1
- package/templates-experimental/hello-world-with-assets/ts/package.json +1 -1
- package/templates-experimental/hello-world-with-assets/ts/src/index.ts +1 -1
- package/templates-experimental/hello-world-with-assets/ts/vitest.config.mts +1 -1
- package/templates-experimental/hello-world-with-assets/ts/worker-configuration.d.ts +1 -1
- package/templates-experimental/hono/templates/worker-configuration.d.ts +1 -1
- package/templates-experimental/nuxt/templates/worker-configuration.d.ts +1 -1
- package/templates-experimental/qwik/templates/worker-configuration.d.ts +1 -1
- /package/templates/analog/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/astro/templates/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/astro/templates/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/common/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/common/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/hello-world-durable-object/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/hello-world-durable-object/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/hono/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/next/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/nuxt/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/openapi/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/pre-existing/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/queues/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/queues/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/qwik/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/remix/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/scheduled/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/scheduled/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/solid/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates/svelte/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/angular/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/astro/templates/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/astro/templates/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/docusaurus/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/gatsby/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-assets-only/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-durable-object-with-assets/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-durable-object-with-assets/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-with-assets/js/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-with-assets/py/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hello-world-with-assets/ts/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/hono/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/next/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/nuxt/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/qwik/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/solid/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/svelte/templates/{wrangler.json → wrangler.jsonc} +0 -0
- /package/templates-experimental/vue/templates/{wrangler.json → wrangler.jsonc} +0 -0
package/dist/cli.js
CHANGED
|
@@ -73294,7 +73294,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
73294
73294
|
var yargs_default = Yargs;
|
|
73295
73295
|
|
|
73296
73296
|
// package.json
|
|
73297
|
-
var version = "0.0.0-
|
|
73297
|
+
var version = "0.0.0-59eda4af5";
|
|
73298
73298
|
|
|
73299
73299
|
// src/metrics.ts
|
|
73300
73300
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -75302,7 +75302,7 @@ var readJSON = (path6) => {
|
|
|
75302
75302
|
const contents = readFile(path6);
|
|
75303
75303
|
return contents ? parse2(contents) : contents;
|
|
75304
75304
|
};
|
|
75305
|
-
var writeJSON = (path6, object, stringifySpace =
|
|
75305
|
+
var writeJSON = (path6, object, stringifySpace = " ") => {
|
|
75306
75306
|
writeFile2(path6, JSON.stringify(object, null, stringifySpace));
|
|
75307
75307
|
};
|
|
75308
75308
|
var probePaths = (paths) => {
|
|
@@ -75362,17 +75362,17 @@ var package_default = {
|
|
|
75362
75362
|
dependencies: {
|
|
75363
75363
|
"create-astro": "4.11.0",
|
|
75364
75364
|
"create-analog": "1.8.1",
|
|
75365
|
-
"@angular/create": "19.1.
|
|
75365
|
+
"@angular/create": "19.1.6",
|
|
75366
75366
|
"create-docusaurus": "3.7.0",
|
|
75367
75367
|
"create-hono": "0.15.3",
|
|
75368
|
-
"create-next-app": "15.1.
|
|
75368
|
+
"create-next-app": "15.1.6",
|
|
75369
75369
|
"create-qwik": "1.12.0",
|
|
75370
75370
|
"create-vite": "6.1.1",
|
|
75371
75371
|
"create-remix": "2.15.3",
|
|
75372
75372
|
"create-solid": "0.5.14",
|
|
75373
|
-
"create-vue": "3.
|
|
75373
|
+
"create-vue": "3.14.0",
|
|
75374
75374
|
gatsby: "5.14.1",
|
|
75375
|
-
sv: "0.6.
|
|
75375
|
+
sv: "0.6.16",
|
|
75376
75376
|
nuxi: "3.21.1"
|
|
75377
75377
|
}
|
|
75378
75378
|
};
|
|
@@ -76821,9 +76821,9 @@ var { npm: npm14, npx: npx4 } = detectPackageManager();
|
|
|
76821
76821
|
var generate19 = async (ctx) => {
|
|
76822
76822
|
const projectName = ctx.project.name;
|
|
76823
76823
|
await runFrameworkGenerator(ctx, [projectName]);
|
|
76824
|
-
const wranglerConfig = readFile((0, import_path10.join)(getTemplatePath(ctx), "wrangler.
|
|
76825
|
-
writeFile2((0, import_path10.join)(ctx.project.path, "wrangler.
|
|
76826
|
-
updateStatus("Created wrangler.
|
|
76824
|
+
const wranglerConfig = readFile((0, import_path10.join)(getTemplatePath(ctx), "wrangler.jsonc"));
|
|
76825
|
+
writeFile2((0, import_path10.join)(ctx.project.path, "wrangler.jsonc"), wranglerConfig);
|
|
76826
|
+
updateStatus("Created wrangler.jsonc file");
|
|
76827
76827
|
};
|
|
76828
76828
|
var updateNextConfig2 = (usesTs) => {
|
|
76829
76829
|
const s = spinner();
|
|
@@ -76832,12 +76832,12 @@ var updateNextConfig2 = (usesTs) => {
|
|
|
76832
76832
|
const configContent = readFile(configFile);
|
|
76833
76833
|
const updatedConfigFile = `import { setupDevPlatform } from '@cloudflare/next-on-pages/next-dev';
|
|
76834
76834
|
|
|
76835
|
-
// Here we use the @cloudflare/next-on-pages next-dev module to allow us to
|
|
76836
|
-
// (when running the application with
|
|
76835
|
+
// Here we use the @cloudflare/next-on-pages next-dev module to allow us to
|
|
76836
|
+
// use bindings during local development (when running the application with
|
|
76837
|
+
// \`next dev\`). This function is only necessary during development and
|
|
76838
|
+
// has no impact outside of that. For more information see:
|
|
76837
76839
|
// https://github.com/cloudflare/next-on-pages/blob/main/internal-packages/next-dev/README.md
|
|
76838
|
-
|
|
76839
|
-
await setupDevPlatform();
|
|
76840
|
-
}
|
|
76840
|
+
setupDevPlatform().catch(console.error);
|
|
76841
76841
|
|
|
76842
76842
|
`.replace(/\n\t*/g, "\n") + configContent;
|
|
76843
76843
|
writeFile2(configFile, updatedConfigFile);
|
|
@@ -77736,7 +77736,7 @@ var config26 = {
|
|
|
77736
77736
|
var c3_default36 = config26;
|
|
77737
77737
|
|
|
77738
77738
|
// ../wrangler/package.json
|
|
77739
|
-
var version2 = "0.0.0-
|
|
77739
|
+
var version2 = "0.0.0-59eda4af5";
|
|
77740
77740
|
|
|
77741
77741
|
// src/git.ts
|
|
77742
77742
|
var offerGit = async (ctx) => {
|
|
@@ -79004,6 +79004,7 @@ var updateWranglerConfig = async (ctx) => {
|
|
|
79004
79004
|
}
|
|
79005
79005
|
`
|
|
79006
79006
|
);
|
|
79007
|
+
addVscodeConfig(ctx);
|
|
79007
79008
|
} else if (wranglerTomlExists(ctx)) {
|
|
79008
79009
|
const wranglerTomlStr = readWranglerToml(ctx);
|
|
79009
79010
|
const parsed = import_toml2.default.parse(wranglerTomlStr);
|
|
@@ -79098,6 +79099,18 @@ var writeWranglerJson = (ctx, contents) => {
|
|
|
79098
79099
|
const wranglerJsoncPath = getWranglerJsoncPath(ctx);
|
|
79099
79100
|
return writeFile2(wranglerJsoncPath, contents);
|
|
79100
79101
|
};
|
|
79102
|
+
var addVscodeConfig = (ctx) => {
|
|
79103
|
+
const settingsPath = `${ctx.project.path}/.vscode/settings.json`;
|
|
79104
|
+
if ((0, import_fs12.existsSync)(settingsPath)) {
|
|
79105
|
+
return;
|
|
79106
|
+
}
|
|
79107
|
+
(0, import_fs12.mkdirSync)(`${ctx.project.path}/.vscode`, { recursive: true });
|
|
79108
|
+
writeJSON(settingsPath, {
|
|
79109
|
+
"files.associations": {
|
|
79110
|
+
"wrangler.json": "jsonc"
|
|
79111
|
+
}
|
|
79112
|
+
});
|
|
79113
|
+
};
|
|
79101
79114
|
|
|
79102
79115
|
// src/deploy.ts
|
|
79103
79116
|
var offerToDeploy = async (ctx) => {
|