create-cloudflare 0.0.0-be36619f → 0.0.0-beed1575
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 +23 -15
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -60107,7 +60107,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
60107
60107
|
var yargs_default = Yargs;
|
|
60108
60108
|
|
|
60109
60109
|
// package.json
|
|
60110
|
-
var version = "0.0.0-
|
|
60110
|
+
var version = "0.0.0-beed1575";
|
|
60111
60111
|
var devDependencies = {
|
|
60112
60112
|
"@babel/parser": "^7.21.3",
|
|
60113
60113
|
"@babel/types": "^7.21.4",
|
|
@@ -60463,7 +60463,11 @@ var needsPackageManagerReset = (ctx) => {
|
|
|
60463
60463
|
};
|
|
60464
60464
|
var npmInstall = async () => {
|
|
60465
60465
|
const { npm: npm14 } = detectPackageManager();
|
|
60466
|
-
|
|
60466
|
+
const installCmd = [npm14, "install"];
|
|
60467
|
+
if (npm14 === "yarn" && process.env.VITEST) {
|
|
60468
|
+
installCmd.push("--mutex", "network");
|
|
60469
|
+
}
|
|
60470
|
+
await runCommand(installCmd, {
|
|
60467
60471
|
silent: true,
|
|
60468
60472
|
startText: "Installing dependencies",
|
|
60469
60473
|
doneText: `${brandColor("installed")} ${dim(`via \`${npm14} install\``)}`
|
|
@@ -60990,18 +60994,18 @@ var package_default = {
|
|
|
60990
60994
|
],
|
|
60991
60995
|
dependencies: {
|
|
60992
60996
|
"create-astro": "4.5.1",
|
|
60993
|
-
"@angular/create": "17.0.
|
|
60997
|
+
"@angular/create": "17.0.1",
|
|
60994
60998
|
"create-docusaurus": "3.0.0",
|
|
60995
60999
|
"create-hono": "0.3.2",
|
|
60996
|
-
"create-next-app": "
|
|
60997
|
-
"create-qwik": "1.2.
|
|
61000
|
+
"create-next-app": "14.0.3",
|
|
61001
|
+
"create-qwik": "1.2.19",
|
|
60998
61002
|
"create-react-app": "5.0.1",
|
|
60999
61003
|
"create-remix": "2.2.0",
|
|
61000
61004
|
"create-solid": "0.3.9",
|
|
61001
|
-
"create-svelte": "5.
|
|
61005
|
+
"create-svelte": "5.2.0",
|
|
61002
61006
|
"create-vue": "3.8.0",
|
|
61003
61007
|
gatsby: "5.12.9",
|
|
61004
|
-
nuxi: "3.
|
|
61008
|
+
nuxi: "3.10.0"
|
|
61005
61009
|
},
|
|
61006
61010
|
frameworkCliMap: {
|
|
61007
61011
|
angular: "@angular/create",
|
|
@@ -61274,7 +61278,7 @@ async function openInBrowser(url) {
|
|
|
61274
61278
|
}
|
|
61275
61279
|
var C3_DEFAULTS = {
|
|
61276
61280
|
projectName: new import_haikunator.default().haikunate({ tokenHex: true }),
|
|
61277
|
-
type: "
|
|
61281
|
+
type: "hello-world",
|
|
61278
61282
|
framework: "angular",
|
|
61279
61283
|
autoUpdate: true,
|
|
61280
61284
|
deploy: true,
|
|
@@ -61392,7 +61396,7 @@ function secondsSince(start) {
|
|
|
61392
61396
|
}
|
|
61393
61397
|
|
|
61394
61398
|
// ../wrangler/package.json
|
|
61395
|
-
var version2 = "3.
|
|
61399
|
+
var version2 = "3.17.1";
|
|
61396
61400
|
|
|
61397
61401
|
// src/common.ts
|
|
61398
61402
|
var { name, npm: npm12 } = detectPackageManager();
|
|
@@ -61662,6 +61666,8 @@ var offerGit = async (ctx) => {
|
|
|
61662
61666
|
};
|
|
61663
61667
|
var gitCommit = async (ctx) => {
|
|
61664
61668
|
const commitMessage = await createCommitMessage(ctx);
|
|
61669
|
+
if (ctx.gitRepoAlreadyExisted)
|
|
61670
|
+
return;
|
|
61665
61671
|
if (!await isGitInstalled() || !await isInsideGitRepo(ctx.project.path))
|
|
61666
61672
|
return;
|
|
61667
61673
|
await runCommands({
|
|
@@ -61818,7 +61824,8 @@ var runPagesGenerator = async (args) => {
|
|
|
61818
61824
|
},
|
|
61819
61825
|
args,
|
|
61820
61826
|
type: frameworkConfig.type,
|
|
61821
|
-
originalCWD
|
|
61827
|
+
originalCWD,
|
|
61828
|
+
gitRepoAlreadyExisted: await isInsideGitRepo((0, import_path8.dirname)(path3))
|
|
61822
61829
|
};
|
|
61823
61830
|
const { generate: generate14, configure: configure8 } = FrameworkMap[framework];
|
|
61824
61831
|
await generate14({ ...ctx });
|
|
@@ -61963,7 +61970,8 @@ var runWorkersGenerator = async (args) => {
|
|
|
61963
61970
|
const ctx = {
|
|
61964
61971
|
project: { name: name2, path: path3 },
|
|
61965
61972
|
args,
|
|
61966
|
-
originalCWD
|
|
61973
|
+
originalCWD,
|
|
61974
|
+
gitRepoAlreadyExisted: await isInsideGitRepo((0, import_path9.dirname)(path3))
|
|
61967
61975
|
};
|
|
61968
61976
|
ctx.args.ts = await processArgument(ctx.args, "ts", {
|
|
61969
61977
|
type: "confirm",
|
|
@@ -62076,14 +62084,14 @@ async function updateFiles(ctx) {
|
|
|
62076
62084
|
|
|
62077
62085
|
// src/templateMap.ts
|
|
62078
62086
|
var templateMap = {
|
|
62079
|
-
webFramework: {
|
|
62080
|
-
label: "Website or web app",
|
|
62081
|
-
handler: runPagesGenerator
|
|
62082
|
-
},
|
|
62083
62087
|
"hello-world": {
|
|
62084
62088
|
label: `"Hello World" Worker`,
|
|
62085
62089
|
handler: runWorkersGenerator
|
|
62086
62090
|
},
|
|
62091
|
+
webFramework: {
|
|
62092
|
+
label: "Website or web app",
|
|
62093
|
+
handler: runPagesGenerator
|
|
62094
|
+
},
|
|
62087
62095
|
common: {
|
|
62088
62096
|
label: "Example router & proxy Worker",
|
|
62089
62097
|
handler: runWorkersGenerator
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-beed1575",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"yarn": "^1.22.19",
|
|
64
64
|
"@cloudflare/cli": "1.0.0",
|
|
65
65
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
66
|
-
"wrangler": "3.
|
|
66
|
+
"wrangler": "3.17.1"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=18.14.1"
|