create-cloudflare 2.41.1 → 2.41.2
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 +126 -127
- package/package.json +5 -5
- package/templates/hello-world/c3.ts +3 -2
- package/{templates-experimental → templates}/hello-world-assets-only/c3.ts +4 -3
- package/templates/hello-world-durable-object/c3.ts +2 -2
- package/{templates-experimental → templates}/hello-world-durable-object-with-assets/c3.ts +3 -3
- package/{templates-experimental → templates}/hello-world-with-assets/c3.ts +3 -4
- package/templates/react/workers/js/src/assets/Cloudflare_Logo.svg +7 -5
- /package/{templates-experimental → templates}/hello-world-assets-only/templates/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-assets-only/templates/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-assets-only/templates/wrangler.jsonc +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/.editorconfig +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/.prettierrc +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/__dot__gitignore +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/src/index.js +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/wrangler.jsonc +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/.editorconfig +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/.prettierrc +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/__dot__gitignore +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/src/index.ts +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/tsconfig.json +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/worker-configuration.d.ts +0 -0
- /package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/wrangler.jsonc +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/.editorconfig +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/.prettierrc +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/__dot__gitignore +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/src/index.js +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/test/index.spec.js +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/vitest.config.js +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/js/wrangler.jsonc +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/py/__dot__gitignore +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/py/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/py/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/py/src/entry.py +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/py/wrangler.jsonc +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/.editorconfig +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/.prettierrc +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/__dot__gitignore +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/package.json +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/public/index.html +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/src/index.ts +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/test/index.spec.ts +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/test/tsconfig.json +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/tsconfig.json +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/vitest.config.mts +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/worker-configuration.d.ts +0 -0
- /package/{templates-experimental → templates}/hello-world-with-assets/ts/wrangler.jsonc +0 -0
package/dist/cli.js
CHANGED
|
@@ -74560,7 +74560,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
74560
74560
|
var yargs_default = Yargs;
|
|
74561
74561
|
|
|
74562
74562
|
// package.json
|
|
74563
|
-
var version = "2.41.
|
|
74563
|
+
var version = "2.41.2";
|
|
74564
74564
|
|
|
74565
74565
|
// src/metrics.ts
|
|
74566
74566
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -75209,7 +75209,7 @@ var isUpdateAvailable = async () => {
|
|
|
75209
75209
|
var C3_DEFAULTS = {
|
|
75210
75210
|
projectName: new import_haikunator.default().haikunate({ tokenHex: true }),
|
|
75211
75211
|
category: "hello-world",
|
|
75212
|
-
type: "hello-world",
|
|
75212
|
+
type: "hello-world-with-assets",
|
|
75213
75213
|
framework: "analog",
|
|
75214
75214
|
experimental: false,
|
|
75215
75215
|
autoUpdate: true,
|
|
@@ -75217,11 +75217,11 @@ var C3_DEFAULTS = {
|
|
|
75217
75217
|
git: true,
|
|
75218
75218
|
open: true,
|
|
75219
75219
|
lang: "ts",
|
|
75220
|
-
template: "cloudflare/workers-sdk/packages/create-cloudflare/templates/hello-world"
|
|
75220
|
+
template: "cloudflare/workers-sdk/packages/create-cloudflare/templates/hello-world-with-assets"
|
|
75221
75221
|
};
|
|
75222
75222
|
var WRANGLER_DEFAULTS = {
|
|
75223
75223
|
...C3_DEFAULTS,
|
|
75224
|
-
type: "hello-world",
|
|
75224
|
+
type: "hello-world-with-assets",
|
|
75225
75225
|
deploy: false
|
|
75226
75226
|
};
|
|
75227
75227
|
|
|
@@ -75529,64 +75529,6 @@ var config = {
|
|
|
75529
75529
|
};
|
|
75530
75530
|
var c3_default = config;
|
|
75531
75531
|
|
|
75532
|
-
// templates-experimental/hello-world-assets-only/c3.ts
|
|
75533
|
-
var config2 = {
|
|
75534
|
-
configVersion: 1,
|
|
75535
|
-
id: "hello-world-assets-only",
|
|
75536
|
-
path: "templates-experimental/hello-world-assets-only",
|
|
75537
|
-
displayName: "Hello World - Assets-only",
|
|
75538
|
-
description: "Get started with a basic Worker that only serves static assets",
|
|
75539
|
-
platform: "workers",
|
|
75540
|
-
copyFiles: {
|
|
75541
|
-
path: "./templates"
|
|
75542
|
-
}
|
|
75543
|
-
};
|
|
75544
|
-
var c3_default2 = config2;
|
|
75545
|
-
|
|
75546
|
-
// templates-experimental/hello-world-durable-object-with-assets/c3.ts
|
|
75547
|
-
var config3 = {
|
|
75548
|
-
configVersion: 1,
|
|
75549
|
-
id: "hello-world-durable-object-with-assets",
|
|
75550
|
-
path: "templates-experimental/hello-world-durable-object-with-assets",
|
|
75551
|
-
displayName: "Hello World - Worker Using Durable Objects with Assets",
|
|
75552
|
-
description: "Get started with a basic stateful app to build projects like real-time chats, collaborative apps, and multiplayer games, which hosts assets",
|
|
75553
|
-
platform: "workers",
|
|
75554
|
-
copyFiles: {
|
|
75555
|
-
variants: {
|
|
75556
|
-
js: {
|
|
75557
|
-
path: "./js"
|
|
75558
|
-
},
|
|
75559
|
-
ts: {
|
|
75560
|
-
path: "./ts"
|
|
75561
|
-
}
|
|
75562
|
-
}
|
|
75563
|
-
}
|
|
75564
|
-
};
|
|
75565
|
-
var c3_default3 = config3;
|
|
75566
|
-
|
|
75567
|
-
// templates-experimental/hello-world-with-assets/c3.ts
|
|
75568
|
-
var c3_default4 = {
|
|
75569
|
-
configVersion: 1,
|
|
75570
|
-
id: "hello-world-with-assets",
|
|
75571
|
-
path: "templates-experimental/hello-world-with-assets",
|
|
75572
|
-
displayName: "Hello World - Worker with Assets",
|
|
75573
|
-
description: "Get started with a basic Worker that also serves static assets, in the language of your choice",
|
|
75574
|
-
platform: "workers",
|
|
75575
|
-
copyFiles: {
|
|
75576
|
-
variants: {
|
|
75577
|
-
js: {
|
|
75578
|
-
path: "./js"
|
|
75579
|
-
},
|
|
75580
|
-
ts: {
|
|
75581
|
-
path: "./ts"
|
|
75582
|
-
},
|
|
75583
|
-
python: {
|
|
75584
|
-
path: "./py"
|
|
75585
|
-
}
|
|
75586
|
-
}
|
|
75587
|
-
}
|
|
75588
|
-
};
|
|
75589
|
-
|
|
75590
75532
|
// templates-experimental/hono/c3.ts
|
|
75591
75533
|
var generate2 = async (ctx) => {
|
|
75592
75534
|
const { name: pm4 } = detectPackageManager();
|
|
@@ -75600,7 +75542,7 @@ var generate2 = async (ctx) => {
|
|
|
75600
75542
|
]);
|
|
75601
75543
|
logRaw("");
|
|
75602
75544
|
};
|
|
75603
|
-
var
|
|
75545
|
+
var config2 = {
|
|
75604
75546
|
configVersion: 1,
|
|
75605
75547
|
id: "hono",
|
|
75606
75548
|
frameworkCli: "create-hono",
|
|
@@ -75622,7 +75564,7 @@ var config4 = {
|
|
|
75622
75564
|
deployScript: "deploy",
|
|
75623
75565
|
previewScript: "dev"
|
|
75624
75566
|
};
|
|
75625
|
-
var
|
|
75567
|
+
var c3_default2 = config2;
|
|
75626
75568
|
|
|
75627
75569
|
// templates-experimental/next/c3.ts
|
|
75628
75570
|
var generate3 = async (ctx) => {
|
|
@@ -75654,7 +75596,7 @@ var updateNextConfig = (usesTs) => {
|
|
|
75654
75596
|
writeFile2(configFile, updatedConfigFile);
|
|
75655
75597
|
s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
|
|
75656
75598
|
};
|
|
75657
|
-
var
|
|
75599
|
+
var c3_default3 = {
|
|
75658
75600
|
configVersion: 1,
|
|
75659
75601
|
id: "next",
|
|
75660
75602
|
frameworkCli: "create-next-app",
|
|
@@ -75767,7 +75709,7 @@ var populateCloudflareEnv = () => {
|
|
|
75767
75709
|
});
|
|
75768
75710
|
s.stop(`${brandColor("updated")} \`${entrypointPath}\``);
|
|
75769
75711
|
};
|
|
75770
|
-
var
|
|
75712
|
+
var config3 = {
|
|
75771
75713
|
configVersion: 1,
|
|
75772
75714
|
id: "qwik",
|
|
75773
75715
|
frameworkCli: "create-qwik",
|
|
@@ -75790,7 +75732,7 @@ var config5 = {
|
|
|
75790
75732
|
deployScript: "deploy",
|
|
75791
75733
|
previewScript: "preview"
|
|
75792
75734
|
};
|
|
75793
|
-
var
|
|
75735
|
+
var c3_default4 = config3;
|
|
75794
75736
|
|
|
75795
75737
|
// templates-experimental/remix/c3.ts
|
|
75796
75738
|
var { npm: npm2 } = detectPackageManager();
|
|
@@ -75809,7 +75751,7 @@ var configure4 = async () => {
|
|
|
75809
75751
|
doneText: `${brandColor(`updated`)} ${dim("wrangler@latest")}`
|
|
75810
75752
|
});
|
|
75811
75753
|
};
|
|
75812
|
-
var
|
|
75754
|
+
var config4 = {
|
|
75813
75755
|
configVersion: 1,
|
|
75814
75756
|
id: "remix",
|
|
75815
75757
|
frameworkCli: "create-remix",
|
|
@@ -75832,7 +75774,7 @@ var config6 = {
|
|
|
75832
75774
|
deployScript: "deploy",
|
|
75833
75775
|
previewScript: "preview"
|
|
75834
75776
|
};
|
|
75835
|
-
var
|
|
75777
|
+
var c3_default5 = config4;
|
|
75836
75778
|
|
|
75837
75779
|
// src/helpers/compatDate.ts
|
|
75838
75780
|
var import_fs9 = require("fs");
|
|
@@ -75934,7 +75876,7 @@ var configure5 = async (ctx) => {
|
|
|
75934
75876
|
}
|
|
75935
75877
|
});
|
|
75936
75878
|
};
|
|
75937
|
-
var
|
|
75879
|
+
var config5 = {
|
|
75938
75880
|
configVersion: 1,
|
|
75939
75881
|
id: "solid",
|
|
75940
75882
|
frameworkCli: "create-solid",
|
|
@@ -75957,7 +75899,7 @@ var config7 = {
|
|
|
75957
75899
|
deployScript: "deploy",
|
|
75958
75900
|
previewScript: "preview"
|
|
75959
75901
|
};
|
|
75960
|
-
var
|
|
75902
|
+
var c3_default6 = config5;
|
|
75961
75903
|
|
|
75962
75904
|
// templates-experimental/svelte/c3.ts
|
|
75963
75905
|
var import_node_os3 = require("node:os");
|
|
@@ -76026,7 +75968,7 @@ var updateTypeDefinitions = (ctx) => {
|
|
|
76026
75968
|
}
|
|
76027
75969
|
});
|
|
76028
75970
|
};
|
|
76029
|
-
var
|
|
75971
|
+
var config6 = {
|
|
76030
75972
|
configVersion: 1,
|
|
76031
75973
|
id: "svelte",
|
|
76032
75974
|
frameworkCli: "sv",
|
|
@@ -76056,7 +75998,7 @@ var config8 = {
|
|
|
76056
75998
|
deployScript: "deploy",
|
|
76057
75999
|
previewScript: "preview"
|
|
76058
76000
|
};
|
|
76059
|
-
var
|
|
76001
|
+
var c3_default7 = config6;
|
|
76060
76002
|
|
|
76061
76003
|
// templates/analog/c3.ts
|
|
76062
76004
|
var recast6 = __toESM(require_main3());
|
|
@@ -76137,7 +76079,7 @@ var updateViteConfig = (ctx) => {
|
|
|
76137
76079
|
});
|
|
76138
76080
|
s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
|
|
76139
76081
|
};
|
|
76140
|
-
var
|
|
76082
|
+
var config7 = {
|
|
76141
76083
|
configVersion: 1,
|
|
76142
76084
|
id: "analog",
|
|
76143
76085
|
frameworkCli: "create-analog",
|
|
@@ -76159,7 +76101,7 @@ var config9 = {
|
|
|
76159
76101
|
deployScript: "deploy",
|
|
76160
76102
|
previewScript: "preview"
|
|
76161
76103
|
};
|
|
76162
|
-
var
|
|
76104
|
+
var c3_default8 = config7;
|
|
76163
76105
|
|
|
76164
76106
|
// templates/angular/pages/c3.ts
|
|
76165
76107
|
var import_node_path3 = require("node:path");
|
|
@@ -76223,7 +76165,7 @@ function updateAngularJson(ctx) {
|
|
|
76223
76165
|
writeFile2((0, import_node_path3.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
|
|
76224
76166
|
s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
|
|
76225
76167
|
}
|
|
76226
|
-
var
|
|
76168
|
+
var config8 = {
|
|
76227
76169
|
configVersion: 1,
|
|
76228
76170
|
id: "angular",
|
|
76229
76171
|
frameworkCli: "@angular/create",
|
|
@@ -76247,7 +76189,7 @@ var config10 = {
|
|
|
76247
76189
|
}
|
|
76248
76190
|
})
|
|
76249
76191
|
};
|
|
76250
|
-
var
|
|
76192
|
+
var c3_default9 = config8;
|
|
76251
76193
|
|
|
76252
76194
|
// templates/angular/workers/c3.ts
|
|
76253
76195
|
var import_node_path4 = require("node:path");
|
|
@@ -76310,7 +76252,7 @@ function updateAngularJson2(ctx) {
|
|
|
76310
76252
|
writeFile2((0, import_node_path4.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
|
|
76311
76253
|
s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
|
|
76312
76254
|
}
|
|
76313
|
-
var
|
|
76255
|
+
var config9 = {
|
|
76314
76256
|
configVersion: 1,
|
|
76315
76257
|
id: "angular",
|
|
76316
76258
|
frameworkCli: "@angular/create",
|
|
@@ -76333,14 +76275,14 @@ var config11 = {
|
|
|
76333
76275
|
}
|
|
76334
76276
|
})
|
|
76335
76277
|
};
|
|
76336
|
-
var
|
|
76278
|
+
var c3_default10 = config9;
|
|
76337
76279
|
|
|
76338
76280
|
// templates/angular/c3.ts
|
|
76339
|
-
var
|
|
76281
|
+
var config10 = {
|
|
76340
76282
|
displayName: "Angular",
|
|
76341
|
-
platformVariants: { pages:
|
|
76283
|
+
platformVariants: { pages: c3_default9, workers: c3_default10 }
|
|
76342
76284
|
};
|
|
76343
|
-
var
|
|
76285
|
+
var c3_default11 = config10;
|
|
76344
76286
|
|
|
76345
76287
|
// templates/astro/c3.ts
|
|
76346
76288
|
var recast7 = __toESM(require_main3());
|
|
@@ -76383,7 +76325,7 @@ var updateAstroConfig2 = () => {
|
|
|
76383
76325
|
}
|
|
76384
76326
|
});
|
|
76385
76327
|
};
|
|
76386
|
-
var
|
|
76328
|
+
var config11 = {
|
|
76387
76329
|
configVersion: 1,
|
|
76388
76330
|
id: "astro",
|
|
76389
76331
|
frameworkCli: "create-astro",
|
|
@@ -76415,10 +76357,10 @@ var config13 = {
|
|
|
76415
76357
|
}
|
|
76416
76358
|
})
|
|
76417
76359
|
};
|
|
76418
|
-
var
|
|
76360
|
+
var c3_default12 = config11;
|
|
76419
76361
|
|
|
76420
76362
|
// templates/common/c3.ts
|
|
76421
|
-
var
|
|
76363
|
+
var c3_default13 = {
|
|
76422
76364
|
configVersion: 1,
|
|
76423
76365
|
id: "common",
|
|
76424
76366
|
displayName: "Example router & proxy Worker",
|
|
@@ -76442,7 +76384,7 @@ var { npm: npm8 } = detectPackageManager();
|
|
|
76442
76384
|
var generate12 = async (ctx) => {
|
|
76443
76385
|
await runFrameworkGenerator(ctx, [ctx.project.name, "classic"]);
|
|
76444
76386
|
};
|
|
76445
|
-
var
|
|
76387
|
+
var config12 = {
|
|
76446
76388
|
configVersion: 1,
|
|
76447
76389
|
id: "docusaurus",
|
|
76448
76390
|
frameworkCli: "create-docusaurus",
|
|
@@ -76460,14 +76402,14 @@ var config14 = {
|
|
|
76460
76402
|
deployScript: "deploy",
|
|
76461
76403
|
previewScript: "preview"
|
|
76462
76404
|
};
|
|
76463
|
-
var
|
|
76405
|
+
var c3_default14 = config12;
|
|
76464
76406
|
|
|
76465
76407
|
// templates/docusaurus/workers/c3.ts
|
|
76466
76408
|
var { npm: npm9 } = detectPackageManager();
|
|
76467
76409
|
var generate13 = async (ctx) => {
|
|
76468
76410
|
await runFrameworkGenerator(ctx, [ctx.project.name, "classic"]);
|
|
76469
76411
|
};
|
|
76470
|
-
var
|
|
76412
|
+
var config13 = {
|
|
76471
76413
|
configVersion: 1,
|
|
76472
76414
|
id: "docusaurus",
|
|
76473
76415
|
frameworkCli: "create-docusaurus",
|
|
@@ -76488,14 +76430,14 @@ var config15 = {
|
|
|
76488
76430
|
deployScript: "deploy",
|
|
76489
76431
|
previewScript: "preview"
|
|
76490
76432
|
};
|
|
76491
|
-
var
|
|
76433
|
+
var c3_default15 = config13;
|
|
76492
76434
|
|
|
76493
76435
|
// templates/docusaurus/c3.ts
|
|
76494
|
-
var
|
|
76436
|
+
var config14 = {
|
|
76495
76437
|
displayName: "Docusaurus",
|
|
76496
|
-
platformVariants: { pages:
|
|
76438
|
+
platformVariants: { pages: c3_default14, workers: c3_default15 }
|
|
76497
76439
|
};
|
|
76498
|
-
var
|
|
76440
|
+
var c3_default16 = config14;
|
|
76499
76441
|
|
|
76500
76442
|
// templates/gatsby/pages/c3.ts
|
|
76501
76443
|
var { npm: npm10 } = detectPackageManager();
|
|
@@ -76518,7 +76460,7 @@ var generate14 = async (ctx) => {
|
|
|
76518
76460
|
}
|
|
76519
76461
|
await runFrameworkGenerator(ctx, ["new", ctx.project.name, templateUrl]);
|
|
76520
76462
|
};
|
|
76521
|
-
var
|
|
76463
|
+
var config15 = {
|
|
76522
76464
|
configVersion: 1,
|
|
76523
76465
|
id: "gatsby",
|
|
76524
76466
|
frameworkCli: "gatsby",
|
|
@@ -76536,7 +76478,7 @@ var config17 = {
|
|
|
76536
76478
|
deployScript: "deploy",
|
|
76537
76479
|
previewScript: "preview"
|
|
76538
76480
|
};
|
|
76539
|
-
var
|
|
76481
|
+
var c3_default17 = config15;
|
|
76540
76482
|
|
|
76541
76483
|
// templates/gatsby/workers/c3.ts
|
|
76542
76484
|
var { npm: npm11 } = detectPackageManager();
|
|
@@ -76559,7 +76501,7 @@ var generate15 = async (ctx) => {
|
|
|
76559
76501
|
}
|
|
76560
76502
|
await runFrameworkGenerator(ctx, ["new", ctx.project.name, templateUrl]);
|
|
76561
76503
|
};
|
|
76562
|
-
var
|
|
76504
|
+
var config16 = {
|
|
76563
76505
|
configVersion: 1,
|
|
76564
76506
|
id: "gatsby",
|
|
76565
76507
|
frameworkCli: "gatsby",
|
|
@@ -76580,21 +76522,56 @@ var config18 = {
|
|
|
76580
76522
|
deployScript: "deploy",
|
|
76581
76523
|
previewScript: "preview"
|
|
76582
76524
|
};
|
|
76583
|
-
var
|
|
76525
|
+
var c3_default18 = config16;
|
|
76584
76526
|
|
|
76585
76527
|
// templates/gatsby/c3.ts
|
|
76586
|
-
var
|
|
76528
|
+
var config17 = {
|
|
76587
76529
|
displayName: "Gatsby",
|
|
76588
|
-
platformVariants: { pages:
|
|
76530
|
+
platformVariants: { pages: c3_default17, workers: c3_default18 }
|
|
76531
|
+
};
|
|
76532
|
+
var c3_default19 = config17;
|
|
76533
|
+
|
|
76534
|
+
// templates/hello-world-assets-only/c3.ts
|
|
76535
|
+
var config18 = {
|
|
76536
|
+
configVersion: 1,
|
|
76537
|
+
id: "hello-world-assets-only",
|
|
76538
|
+
path: "templates/hello-world-assets-only",
|
|
76539
|
+
displayName: "Assets only",
|
|
76540
|
+
description: "For static sites (including SPAs) or when using your own backend",
|
|
76541
|
+
platform: "workers",
|
|
76542
|
+
copyFiles: {
|
|
76543
|
+
path: "./templates"
|
|
76544
|
+
}
|
|
76545
|
+
};
|
|
76546
|
+
var c3_default20 = config18;
|
|
76547
|
+
|
|
76548
|
+
// templates/hello-world-durable-object-with-assets/c3.ts
|
|
76549
|
+
var config19 = {
|
|
76550
|
+
configVersion: 1,
|
|
76551
|
+
id: "hello-world-durable-object-with-assets",
|
|
76552
|
+
path: "templates/hello-world-durable-object-with-assets",
|
|
76553
|
+
displayName: "Worker + Durable Objects + Assets",
|
|
76554
|
+
description: "For full-stack applications requiring static assets, an API, and real-time coordination",
|
|
76555
|
+
platform: "workers",
|
|
76556
|
+
copyFiles: {
|
|
76557
|
+
variants: {
|
|
76558
|
+
js: {
|
|
76559
|
+
path: "./js"
|
|
76560
|
+
},
|
|
76561
|
+
ts: {
|
|
76562
|
+
path: "./ts"
|
|
76563
|
+
}
|
|
76564
|
+
}
|
|
76565
|
+
}
|
|
76589
76566
|
};
|
|
76590
|
-
var
|
|
76567
|
+
var c3_default21 = config19;
|
|
76591
76568
|
|
|
76592
76569
|
// templates/hello-world-durable-object/c3.ts
|
|
76593
|
-
var
|
|
76570
|
+
var c3_default22 = {
|
|
76594
76571
|
configVersion: 1,
|
|
76595
76572
|
id: "hello-world-durable-object",
|
|
76596
|
-
displayName: "
|
|
76597
|
-
description: "
|
|
76573
|
+
displayName: "Worker + Durable Objects",
|
|
76574
|
+
description: "For multiplayer apps using WebSockets, or when you need synchronization",
|
|
76598
76575
|
platform: "workers",
|
|
76599
76576
|
copyFiles: {
|
|
76600
76577
|
variants: {
|
|
@@ -76608,14 +76585,37 @@ var c3_default23 = {
|
|
|
76608
76585
|
}
|
|
76609
76586
|
};
|
|
76610
76587
|
|
|
76588
|
+
// templates/hello-world-with-assets/c3.ts
|
|
76589
|
+
var c3_default23 = {
|
|
76590
|
+
configVersion: 1,
|
|
76591
|
+
id: "hello-world-with-assets",
|
|
76592
|
+
path: "templates/hello-world-with-assets",
|
|
76593
|
+
displayName: "Worker + Assets",
|
|
76594
|
+
description: "For static sites with an API or server-side rendering (SSR)",
|
|
76595
|
+
platform: "workers",
|
|
76596
|
+
copyFiles: {
|
|
76597
|
+
variants: {
|
|
76598
|
+
js: {
|
|
76599
|
+
path: "./js"
|
|
76600
|
+
},
|
|
76601
|
+
ts: {
|
|
76602
|
+
path: "./ts"
|
|
76603
|
+
},
|
|
76604
|
+
python: {
|
|
76605
|
+
path: "./py"
|
|
76606
|
+
}
|
|
76607
|
+
}
|
|
76608
|
+
}
|
|
76609
|
+
};
|
|
76610
|
+
|
|
76611
76611
|
// templates/hello-world/c3.ts
|
|
76612
76612
|
var import_promises2 = require("node:fs/promises");
|
|
76613
76613
|
var import_node_path5 = require("node:path");
|
|
76614
76614
|
var c3_default24 = {
|
|
76615
76615
|
configVersion: 1,
|
|
76616
76616
|
id: "hello-world",
|
|
76617
|
-
displayName: "
|
|
76618
|
-
description: "
|
|
76617
|
+
displayName: "Worker only",
|
|
76618
|
+
description: "For processing requests, transforming responses, or API endpoints",
|
|
76619
76619
|
platform: "workers",
|
|
76620
76620
|
async configure(ctx) {
|
|
76621
76621
|
if (ctx.args.lang === "python") {
|
|
@@ -77976,7 +77976,7 @@ var c3_default43 = config33;
|
|
|
77976
77976
|
var import_node_assert = __toESM(require("node:assert"));
|
|
77977
77977
|
|
|
77978
77978
|
// ../wrangler/package.json
|
|
77979
|
-
var version2 = "4.
|
|
77979
|
+
var version2 = "4.2.0";
|
|
77980
77980
|
|
|
77981
77981
|
// src/git.ts
|
|
77982
77982
|
var offerGit = async (ctx) => {
|
|
@@ -78238,20 +78238,20 @@ function getFrameworkMap({ experimental = false }) {
|
|
|
78238
78238
|
if (experimental) {
|
|
78239
78239
|
return {
|
|
78240
78240
|
astro: c3_default,
|
|
78241
|
-
hono:
|
|
78242
|
-
next:
|
|
78243
|
-
qwik:
|
|
78244
|
-
remix:
|
|
78245
|
-
solid:
|
|
78246
|
-
svelte:
|
|
78241
|
+
hono: c3_default2,
|
|
78242
|
+
next: c3_default3,
|
|
78243
|
+
qwik: c3_default4,
|
|
78244
|
+
remix: c3_default5,
|
|
78245
|
+
solid: c3_default6,
|
|
78246
|
+
svelte: c3_default7
|
|
78247
78247
|
};
|
|
78248
78248
|
} else {
|
|
78249
78249
|
return {
|
|
78250
|
-
analog:
|
|
78251
|
-
angular:
|
|
78252
|
-
astro:
|
|
78253
|
-
docusaurus:
|
|
78254
|
-
gatsby:
|
|
78250
|
+
analog: c3_default8,
|
|
78251
|
+
angular: c3_default11,
|
|
78252
|
+
astro: c3_default12,
|
|
78253
|
+
docusaurus: c3_default16,
|
|
78254
|
+
gatsby: c3_default19,
|
|
78255
78255
|
hono: c3_default25,
|
|
78256
78256
|
next: c3_default26,
|
|
78257
78257
|
nuxt: c3_default29,
|
|
@@ -78266,18 +78266,17 @@ function getFrameworkMap({ experimental = false }) {
|
|
|
78266
78266
|
}
|
|
78267
78267
|
function getTemplateMap({ experimental = false }) {
|
|
78268
78268
|
if (experimental) {
|
|
78269
|
-
return {
|
|
78270
|
-
"hello-world-assets-only": c3_default2,
|
|
78271
|
-
"hello-world-with-assets": c3_default4,
|
|
78272
|
-
"hello-world-durable-object-with-assets": c3_default3
|
|
78273
|
-
};
|
|
78269
|
+
return {};
|
|
78274
78270
|
} else {
|
|
78275
78271
|
return {
|
|
78276
78272
|
"hello-world": c3_default24,
|
|
78277
|
-
|
|
78273
|
+
"hello-world-assets-only": c3_default20,
|
|
78274
|
+
"hello-world-with-assets": c3_default23,
|
|
78275
|
+
"hello-world-durable-object": c3_default22,
|
|
78276
|
+
"hello-world-durable-object-with-assets": c3_default21,
|
|
78277
|
+
common: c3_default13,
|
|
78278
78278
|
scheduled: c3_default38,
|
|
78279
78279
|
queues: c3_default32,
|
|
78280
|
-
"hello-world-durable-object": c3_default23,
|
|
78281
78280
|
openapi: c3_default30,
|
|
78282
78281
|
"pre-existing": c3_default31
|
|
78283
78282
|
};
|
|
@@ -78387,9 +78386,9 @@ var createContext = async (args, prevArgs) => {
|
|
|
78387
78386
|
});
|
|
78388
78387
|
const categoryOptions = [
|
|
78389
78388
|
{
|
|
78390
|
-
label: "Hello World
|
|
78389
|
+
label: "Hello World Starter",
|
|
78391
78390
|
value: "hello-world",
|
|
78392
|
-
description: "Select from
|
|
78391
|
+
description: "Select from basic scaffolds to get started with Workers, Assets and Durable Objects"
|
|
78393
78392
|
},
|
|
78394
78393
|
{
|
|
78395
78394
|
label: "Framework Starter",
|
|
@@ -78790,12 +78789,12 @@ var cliDefinition = {
|
|
|
78790
78789
|
const experimental = Boolean(args?.["experimental"]);
|
|
78791
78790
|
if (experimental) {
|
|
78792
78791
|
return [
|
|
78793
|
-
{ name: "hello-world", description: "Hello World
|
|
78792
|
+
{ name: "hello-world", description: "Hello World Starter" },
|
|
78794
78793
|
{ name: "web-framework", description: "Framework Starter" }
|
|
78795
78794
|
];
|
|
78796
78795
|
} else {
|
|
78797
78796
|
return [
|
|
78798
|
-
{ name: "hello-world", description: "Hello World
|
|
78797
|
+
{ name: "hello-world", description: "Hello World Starter" },
|
|
78799
78798
|
{ name: "web-framework", description: "Framework Starter" },
|
|
78800
78799
|
{ name: "demo", description: "Application Starter" },
|
|
78801
78800
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.41.
|
|
3
|
+
"version": "2.41.2",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -71,11 +71,11 @@
|
|
|
71
71
|
"xdg-app-paths": "^8.3.0",
|
|
72
72
|
"yargs": "^17.7.2",
|
|
73
73
|
"@cloudflare/cli": "1.1.1",
|
|
74
|
-
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
75
74
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
76
|
-
"@cloudflare/
|
|
77
|
-
"@cloudflare/vite-plugin": "0.1.
|
|
78
|
-
"wrangler": "4.
|
|
75
|
+
"@cloudflare/eslint-config-worker": "1.1.0",
|
|
76
|
+
"@cloudflare/vite-plugin": "0.1.13",
|
|
77
|
+
"wrangler": "4.2.0",
|
|
78
|
+
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
79
79
|
},
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=18.14.1"
|
|
@@ -5,8 +5,9 @@ import type { TemplateConfig } from "../../src/templates";
|
|
|
5
5
|
export default {
|
|
6
6
|
configVersion: 1,
|
|
7
7
|
id: "hello-world",
|
|
8
|
-
displayName: "
|
|
9
|
-
description:
|
|
8
|
+
displayName: "Worker only",
|
|
9
|
+
description:
|
|
10
|
+
"For processing requests, transforming responses, or API endpoints",
|
|
10
11
|
platform: "workers",
|
|
11
12
|
async configure(ctx) {
|
|
12
13
|
if (ctx.args.lang === "python") {
|
|
@@ -3,9 +3,10 @@ import type { TemplateConfig } from "../../src/templates";
|
|
|
3
3
|
const config: TemplateConfig = {
|
|
4
4
|
configVersion: 1,
|
|
5
5
|
id: "hello-world-assets-only",
|
|
6
|
-
path: "templates
|
|
7
|
-
displayName: "
|
|
8
|
-
description:
|
|
6
|
+
path: "templates/hello-world-assets-only",
|
|
7
|
+
displayName: "Assets only",
|
|
8
|
+
description:
|
|
9
|
+
"For static sites (including SPAs) or when using your own backend",
|
|
9
10
|
platform: "workers",
|
|
10
11
|
copyFiles: {
|
|
11
12
|
path: "./templates",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
configVersion: 1,
|
|
3
3
|
id: "hello-world-durable-object",
|
|
4
|
-
displayName: "
|
|
4
|
+
displayName: "Worker + Durable Objects",
|
|
5
5
|
description:
|
|
6
|
-
"
|
|
6
|
+
"For multiplayer apps using WebSockets, or when you need synchronization",
|
|
7
7
|
platform: "workers",
|
|
8
8
|
copyFiles: {
|
|
9
9
|
variants: {
|
|
@@ -3,10 +3,10 @@ import type { TemplateConfig } from "../../src/templates";
|
|
|
3
3
|
const config: TemplateConfig = {
|
|
4
4
|
configVersion: 1,
|
|
5
5
|
id: "hello-world-durable-object-with-assets",
|
|
6
|
-
path: "templates
|
|
7
|
-
displayName: "
|
|
6
|
+
path: "templates/hello-world-durable-object-with-assets",
|
|
7
|
+
displayName: "Worker + Durable Objects + Assets",
|
|
8
8
|
description:
|
|
9
|
-
"
|
|
9
|
+
"For full-stack applications requiring static assets, an API, and real-time coordination",
|
|
10
10
|
platform: "workers",
|
|
11
11
|
copyFiles: {
|
|
12
12
|
variants: {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
configVersion: 1,
|
|
3
3
|
id: "hello-world-with-assets",
|
|
4
|
-
path: "templates
|
|
5
|
-
displayName: "
|
|
6
|
-
description:
|
|
7
|
-
"Get started with a basic Worker that also serves static assets, in the language of your choice",
|
|
4
|
+
path: "templates/hello-world-with-assets",
|
|
5
|
+
displayName: "Worker + Assets",
|
|
6
|
+
description: "For static sites with an API or server-side rendering (SSR)",
|
|
8
7
|
platform: "workers",
|
|
9
8
|
copyFiles: {
|
|
10
9
|
variants: {
|
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
viewBox="0 0 822.8 355.5" style="enable-background:new 0 0 822.8 355.5;" xml:space="preserve">
|
|
5
5
|
<style type="text/css">
|
|
6
6
|
.st0{fill:#FFFFFF;}
|
|
7
|
-
.
|
|
8
|
-
.
|
|
7
|
+
@media(prefers-color-scheme:light){.st0{fill:#404242;}}
|
|
8
|
+
.st1{fill:#FFFFFF;}
|
|
9
|
+
.st2{fill:#FBAE40;}
|
|
10
|
+
.st3{fill:#F58220;}
|
|
9
11
|
</style>
|
|
10
12
|
<g id="Page-1">
|
|
11
13
|
<path id="CLOUDFLARE-_xAE_" class="st0" d="M772.2,252.6c-3.4,0-6.1-2.7-6.1-6.1c0-3.3,2.7-6.1,6.1-6.1c3.3,0,6.1,2.7,6.1,6.1
|
|
@@ -24,13 +26,13 @@
|
|
|
24
26
|
M102.7,274.6c-2.2,4.9-6.8,8.4-12.8,8.4c-8.5,0-14.3-7.1-14.3-15.1v-0.2c0-8.1,5.7-15,14.2-15c6.4,0,11.3,3.9,13.3,9.3h16.4
|
|
25
27
|
c-2.6-13.4-14.4-23.3-29.6-23.3c-17.3,0-30.3,13.1-30.3,29.2v0.2c0,16.1,12.8,29,30.1,29c14.8,0,26.4-9.6,29.4-22.4L102.7,274.6z"
|
|
26
28
|
/>
|
|
27
|
-
<path id="flare" class="
|
|
29
|
+
<path id="flare" class="st1" d="M734.5,150.4l-40.7-24.7c-0.6-0.1-4.4,0.3-6.4-0.7c-1.4-0.7-2.5-1.9-3.2-4c-3.2,0-175.5,0-175.5,0
|
|
28
30
|
v91.8h225.8V150.4z"/>
|
|
29
|
-
<path id="right-cloud" class="
|
|
31
|
+
<path id="right-cloud" class="st2" d="M692.2,125.8c-0.8,0-1.5,0.6-1.8,1.4l-4.8,16.7c-2.1,7.2-1.3,13.8,2.2,18.7
|
|
30
32
|
c3.2,4.5,8.6,7.1,15.1,7.4l26.2,1.6c0.8,0,1.5,0.4,1.9,1c0.4,0.6,0.5,1.5,0.3,2.2c-0.4,1.2-1.6,2.1-2.9,2.2l-27.3,1.6
|
|
31
33
|
c-14.8,0.7-30.7,12.6-36.3,27.2l-2,5.1c-0.4,1,0.3,2,1.4,2H758c1.1,0,2.1-0.7,2.4-1.8c1.6-5.8,2.5-11.9,2.5-18.2
|
|
32
34
|
c0-37-30.2-67.2-67.3-67.2C694.5,125.7,693.3,125.7,692.2,125.8z"/>
|
|
33
|
-
<path id="left-cloud" class="
|
|
35
|
+
<path id="left-cloud" class="st3" d="M656.4,204.6c2.1-7.2,1.3-13.8-2.2-18.7c-3.2-4.5-8.6-7.1-15.1-7.4L516,176.9
|
|
34
36
|
c-0.8,0-1.5-0.4-1.9-1c-0.4-0.6-0.5-1.4-0.3-2.2c0.4-1.2,1.6-2.1,2.9-2.2l124.2-1.6c14.7-0.7,30.7-12.6,36.3-27.2l7.1-18.5
|
|
35
37
|
c0.3-0.8,0.4-1.6,0.2-2.4c-8-36.2-40.3-63.2-78.9-63.2c-35.6,0-65.8,23-76.6,54.9c-7-5.2-15.9-8-25.5-7.1
|
|
36
38
|
c-17.1,1.7-30.8,15.4-32.5,32.5c-0.4,4.4-0.1,8.7,0.9,12.7c-27.9,0.8-50.2,23.6-50.2,51.7c0,2.5,0.2,5,0.5,7.5
|
/package/{templates-experimental → templates}/hello-world-assets-only/templates/package.json
RENAMED
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-assets-only/templates/public/index.html
RENAMED
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-assets-only/templates/wrangler.jsonc
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/.prettierrc
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/package.json
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/js/src/index.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/.prettierrc
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/package.json
RENAMED
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-durable-object-with-assets/ts/src/index.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{templates-experimental → templates}/hello-world-with-assets/ts/worker-configuration.d.ts
RENAMED
|
File without changes
|
|
File without changes
|