create-cloudflare 2.33.3 → 2.34.0
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 +354 -323
- package/package.json +2 -2
- package/templates/svelte/c3.ts +1 -4
- package/templates-experimental/svelte/c3.ts +1 -4
- package/templates-experimental/vue/c3.ts +33 -0
- package/templates-experimental/{svelte/ts → vue/templates}/wrangler.toml +1 -2
- package/templates/svelte/ts/wrangler.toml +0 -85
- package/templates-experimental/svelte/ts/static/.assetsignore +0 -4
- /package/templates/svelte/{js → templates}/wrangler.toml +0 -0
- /package/templates-experimental/svelte/{js → templates}/static/.assetsignore +0 -0
- /package/templates-experimental/svelte/{js → templates}/wrangler.toml +0 -0
package/dist/cli.js
CHANGED
|
@@ -558,7 +558,7 @@ var require_XDGAppPaths = __commonJS({
|
|
|
558
558
|
XDGAppPaths.cache = function cache(dirOptions) {
|
|
559
559
|
return path6.join(xdg.cache(), finalPathSegment(dirOptions));
|
|
560
560
|
};
|
|
561
|
-
XDGAppPaths.config = function
|
|
561
|
+
XDGAppPaths.config = function config27(dirOptions) {
|
|
562
562
|
return path6.join(xdg.config(), finalPathSegment(dirOptions));
|
|
563
563
|
};
|
|
564
564
|
XDGAppPaths.data = function data(dirOptions) {
|
|
@@ -615,7 +615,7 @@ var require_XDG = __commonJS({
|
|
|
615
615
|
var cache = function() {
|
|
616
616
|
return valOrPath(env3.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
|
|
617
617
|
};
|
|
618
|
-
var
|
|
618
|
+
var config27 = function() {
|
|
619
619
|
return valOrPath(env3.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
|
|
620
620
|
};
|
|
621
621
|
var data = function() {
|
|
@@ -627,13 +627,13 @@ var require_XDG = __commonJS({
|
|
|
627
627
|
var state = function() {
|
|
628
628
|
return valOrPath(env3.get("XDG_STATE_HOME"), [baseDir(), ".local", "state"]);
|
|
629
629
|
};
|
|
630
|
-
return { cache, config:
|
|
630
|
+
return { cache, config: config27, data, runtime, state };
|
|
631
631
|
};
|
|
632
632
|
var macos = function() {
|
|
633
633
|
var cache = function() {
|
|
634
634
|
return valOrPath(env3.get("XDG_CACHE_HOME"), [baseDir(), "Library", "Caches"]);
|
|
635
635
|
};
|
|
636
|
-
var
|
|
636
|
+
var config27 = function() {
|
|
637
637
|
return valOrPath(env3.get("XDG_CONFIG_HOME"), [baseDir(), "Library", "Preferences"]);
|
|
638
638
|
};
|
|
639
639
|
var data = function() {
|
|
@@ -645,7 +645,7 @@ var require_XDG = __commonJS({
|
|
|
645
645
|
var state = function() {
|
|
646
646
|
return valOrPath(env3.get("XDG_STATE_HOME"), [baseDir(), "Library", "State"]);
|
|
647
647
|
};
|
|
648
|
-
return { cache, config:
|
|
648
|
+
return { cache, config: config27, data, runtime, state };
|
|
649
649
|
};
|
|
650
650
|
var windows = function() {
|
|
651
651
|
function appData() {
|
|
@@ -657,7 +657,7 @@ var require_XDG = __commonJS({
|
|
|
657
657
|
var cache = function() {
|
|
658
658
|
return valOrPath(env3.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
|
|
659
659
|
};
|
|
660
|
-
var
|
|
660
|
+
var config27 = function() {
|
|
661
661
|
return valOrPath(env3.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
|
|
662
662
|
};
|
|
663
663
|
var data = function() {
|
|
@@ -669,7 +669,7 @@ var require_XDG = __commonJS({
|
|
|
669
669
|
var state = function() {
|
|
670
670
|
return valOrPath(env3.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
|
|
671
671
|
};
|
|
672
|
-
return { cache, config:
|
|
672
|
+
return { cache, config: config27, data, runtime, state };
|
|
673
673
|
};
|
|
674
674
|
var XDG_ = function() {
|
|
675
675
|
function XDG_2() {
|
|
@@ -32170,22 +32170,22 @@ var require_dist_web = __commonJS({
|
|
|
32170
32170
|
_createClass(Haikunator3, [{
|
|
32171
32171
|
key: "haikunate",
|
|
32172
32172
|
value: function haikunate(options) {
|
|
32173
|
-
var
|
|
32174
|
-
if (
|
|
32175
|
-
|
|
32173
|
+
var config27 = (0, _lodash["default"])(options, this.config);
|
|
32174
|
+
if (config27.tokenHex === true) {
|
|
32175
|
+
config27.tokenChars = "0123456789abcdef";
|
|
32176
32176
|
}
|
|
32177
32177
|
var adjective = this._randomElement(this.adjectives);
|
|
32178
32178
|
var noun = this._randomElement(this.nouns);
|
|
32179
|
-
if (!
|
|
32180
|
-
|
|
32179
|
+
if (!config27.tokenLength)
|
|
32180
|
+
config27.tokenLength = 0;
|
|
32181
32181
|
var token = "";
|
|
32182
|
-
for (var i = 0; i <
|
|
32183
|
-
token += this._randomElement(
|
|
32182
|
+
for (var i = 0; i < config27.tokenLength; i++) {
|
|
32183
|
+
token += this._randomElement(config27.tokenChars);
|
|
32184
32184
|
}
|
|
32185
32185
|
var sections = [adjective, noun, token];
|
|
32186
32186
|
return sections.filter(function(e) {
|
|
32187
32187
|
return !!e;
|
|
32188
|
-
}).join(
|
|
32188
|
+
}).join(config27.delimiter);
|
|
32189
32189
|
}
|
|
32190
32190
|
/**
|
|
32191
32191
|
* Get a random element from an array/string
|
|
@@ -46608,13 +46608,13 @@ var require_esprima2 = __commonJS({
|
|
|
46608
46608
|
return Reader2;
|
|
46609
46609
|
}();
|
|
46610
46610
|
var Tokenizer = function() {
|
|
46611
|
-
function Tokenizer2(code,
|
|
46611
|
+
function Tokenizer2(code, config27) {
|
|
46612
46612
|
this.errorHandler = new error_handler_1.ErrorHandler();
|
|
46613
|
-
this.errorHandler.tolerant =
|
|
46613
|
+
this.errorHandler.tolerant = config27 ? typeof config27.tolerant === "boolean" && config27.tolerant : false;
|
|
46614
46614
|
this.scanner = new scanner_1.Scanner(code, this.errorHandler);
|
|
46615
|
-
this.scanner.trackComment =
|
|
46616
|
-
this.trackRange =
|
|
46617
|
-
this.trackLoc =
|
|
46615
|
+
this.scanner.trackComment = config27 ? typeof config27.comment === "boolean" && config27.comment : false;
|
|
46616
|
+
this.trackRange = config27 ? typeof config27.range === "boolean" && config27.range : false;
|
|
46617
|
+
this.trackLoc = config27 ? typeof config27.loc === "boolean" && config27.loc : false;
|
|
46618
46618
|
this.buffer = [];
|
|
46619
46619
|
this.reader = new Reader();
|
|
46620
46620
|
}
|
|
@@ -48807,11 +48807,11 @@ var require_printer = __commonJS({
|
|
|
48807
48807
|
return this.code;
|
|
48808
48808
|
};
|
|
48809
48809
|
var emptyPrintResult = new PrintResult("");
|
|
48810
|
-
var Printer = function Printer2(
|
|
48810
|
+
var Printer = function Printer2(config27) {
|
|
48811
48811
|
assert_1.default.ok(this instanceof Printer2);
|
|
48812
|
-
var explicitTabWidth =
|
|
48813
|
-
|
|
48814
|
-
|
|
48812
|
+
var explicitTabWidth = config27 && config27.tabWidth;
|
|
48813
|
+
config27 = options_1.normalize(config27);
|
|
48814
|
+
config27.sourceFileName = null;
|
|
48815
48815
|
function makePrintFunctionWith(options, overrides) {
|
|
48816
48816
|
options = Object.assign({}, options, overrides);
|
|
48817
48817
|
return function(path6) {
|
|
@@ -48826,11 +48826,11 @@ var require_printer = __commonJS({
|
|
|
48826
48826
|
includeComments: false
|
|
48827
48827
|
}));
|
|
48828
48828
|
}
|
|
48829
|
-
var oldTabWidth =
|
|
48829
|
+
var oldTabWidth = config27.tabWidth;
|
|
48830
48830
|
if (!explicitTabWidth) {
|
|
48831
48831
|
var loc = path6.getNode().loc;
|
|
48832
48832
|
if (loc && loc.lines && loc.lines.guessTabWidth) {
|
|
48833
|
-
|
|
48833
|
+
config27.tabWidth = loc.lines.guessTabWidth();
|
|
48834
48834
|
}
|
|
48835
48835
|
}
|
|
48836
48836
|
var reprinter = patcher_1.getReprinter(path6);
|
|
@@ -48844,11 +48844,11 @@ var require_printer = __commonJS({
|
|
|
48844
48844
|
// right choice because it gives us the opportunity to reprint
|
|
48845
48845
|
// such nodes using their original source.
|
|
48846
48846
|
reprinter(print2)
|
|
48847
|
-
) : genericPrint(path6,
|
|
48847
|
+
) : genericPrint(path6, config27, options, makePrintFunctionWith(options, {
|
|
48848
48848
|
includeComments: true,
|
|
48849
48849
|
avoidRootParens: false
|
|
48850
48850
|
}));
|
|
48851
|
-
|
|
48851
|
+
config27.tabWidth = oldTabWidth;
|
|
48852
48852
|
return lines;
|
|
48853
48853
|
}
|
|
48854
48854
|
this.print = function(ast) {
|
|
@@ -48859,7 +48859,7 @@ var require_printer = __commonJS({
|
|
|
48859
48859
|
includeComments: true,
|
|
48860
48860
|
avoidRootParens: false
|
|
48861
48861
|
});
|
|
48862
|
-
return new PrintResult(lines.toString(
|
|
48862
|
+
return new PrintResult(lines.toString(config27), util.composeSourceMaps(config27.inputSourceMap, lines.getSourceMap(config27.sourceMapName, config27.sourceRoot)));
|
|
48863
48863
|
};
|
|
48864
48864
|
this.printGenerically = function(ast) {
|
|
48865
48865
|
if (!ast) {
|
|
@@ -48867,26 +48867,26 @@ var require_printer = __commonJS({
|
|
|
48867
48867
|
}
|
|
48868
48868
|
function printGenerically(path7) {
|
|
48869
48869
|
return comments_1.printComments(path7, function(path8) {
|
|
48870
|
-
return genericPrint(path8,
|
|
48870
|
+
return genericPrint(path8, config27, {
|
|
48871
48871
|
includeComments: true,
|
|
48872
48872
|
avoidRootParens: false
|
|
48873
48873
|
}, printGenerically);
|
|
48874
48874
|
});
|
|
48875
48875
|
}
|
|
48876
48876
|
var path6 = fast_path_1.default.from(ast);
|
|
48877
|
-
var oldReuseWhitespace =
|
|
48878
|
-
|
|
48879
|
-
var pr = new PrintResult(printGenerically(path6).toString(
|
|
48880
|
-
|
|
48877
|
+
var oldReuseWhitespace = config27.reuseWhitespace;
|
|
48878
|
+
config27.reuseWhitespace = false;
|
|
48879
|
+
var pr = new PrintResult(printGenerically(path6).toString(config27));
|
|
48880
|
+
config27.reuseWhitespace = oldReuseWhitespace;
|
|
48881
48881
|
return pr;
|
|
48882
48882
|
};
|
|
48883
48883
|
};
|
|
48884
48884
|
exports2.Printer = Printer;
|
|
48885
|
-
function genericPrint(path6,
|
|
48885
|
+
function genericPrint(path6, config27, options, printPath) {
|
|
48886
48886
|
assert_1.default.ok(path6 instanceof fast_path_1.default);
|
|
48887
48887
|
var node = path6.getValue();
|
|
48888
48888
|
var parts = [];
|
|
48889
|
-
var linesWithoutParens = genericPrintNoParens(path6,
|
|
48889
|
+
var linesWithoutParens = genericPrintNoParens(path6, config27, printPath);
|
|
48890
48890
|
if (!node || linesWithoutParens.isEmpty()) {
|
|
48891
48891
|
return linesWithoutParens;
|
|
48892
48892
|
}
|
|
@@ -68538,33 +68538,33 @@ var inputPrompt = async (promptConfig) => {
|
|
|
68538
68538
|
}
|
|
68539
68539
|
return input;
|
|
68540
68540
|
};
|
|
68541
|
-
var renderSubmit = (
|
|
68542
|
-
const { question, label } =
|
|
68543
|
-
if (
|
|
68541
|
+
var renderSubmit = (config27, value) => {
|
|
68542
|
+
const { question, label } = config27;
|
|
68543
|
+
if (config27.type !== "confirm" && !value) {
|
|
68544
68544
|
return [`${leftT} ${question} ${dim("(skipped)")}`, `${grayBar}`];
|
|
68545
68545
|
}
|
|
68546
|
-
const content =
|
|
68546
|
+
const content = config27.type === "confirm" ? `${grayBar} ${brandColor(value)} ${dim(label)}` : `${grayBar} ${brandColor(label)} ${dim(value)}`;
|
|
68547
68547
|
return [`${leftT} ${question}`, content, `${grayBar}`];
|
|
68548
68548
|
};
|
|
68549
|
-
var getRenderers = (
|
|
68550
|
-
switch (
|
|
68549
|
+
var getRenderers = (config27) => {
|
|
68550
|
+
switch (config27.type) {
|
|
68551
68551
|
case "select":
|
|
68552
|
-
return getSelectRenderers(
|
|
68552
|
+
return getSelectRenderers(config27);
|
|
68553
68553
|
case "confirm":
|
|
68554
|
-
return getConfirmRenderers(
|
|
68554
|
+
return getConfirmRenderers(config27);
|
|
68555
68555
|
case "text":
|
|
68556
|
-
return getTextRenderers(
|
|
68556
|
+
return getTextRenderers(config27);
|
|
68557
68557
|
case "multiselect":
|
|
68558
|
-
return getSelectRenderers(
|
|
68558
|
+
return getSelectRenderers(config27);
|
|
68559
68559
|
case "list":
|
|
68560
|
-
return getSelectListRenderers(
|
|
68560
|
+
return getSelectListRenderers(config27);
|
|
68561
68561
|
}
|
|
68562
68562
|
};
|
|
68563
|
-
var getTextRenderers = (
|
|
68564
|
-
const { question } =
|
|
68565
|
-
const helpText =
|
|
68566
|
-
const format5 =
|
|
68567
|
-
const defaultValue =
|
|
68563
|
+
var getTextRenderers = (config27) => {
|
|
68564
|
+
const { question } = config27;
|
|
68565
|
+
const helpText = config27.helpText ?? "";
|
|
68566
|
+
const format5 = config27.format ?? ((val) => String(val));
|
|
68567
|
+
const defaultValue = config27.defaultValue?.toString() ?? "";
|
|
68568
68568
|
const activeRenderer = ({ value }) => [
|
|
68569
68569
|
`${blCorner} ${bold(question)} ${dim(helpText)}`,
|
|
68570
68570
|
`${space(2)}${format5(value || dim(defaultValue))}`,
|
|
@@ -68587,14 +68587,14 @@ var getTextRenderers = (config26) => {
|
|
|
68587
68587
|
``
|
|
68588
68588
|
// extra line for readability
|
|
68589
68589
|
],
|
|
68590
|
-
submit: ({ value }) => renderSubmit(
|
|
68590
|
+
submit: ({ value }) => renderSubmit(config27, format5(value ?? "")),
|
|
68591
68591
|
cancel: activeRenderer
|
|
68592
68592
|
};
|
|
68593
68593
|
};
|
|
68594
|
-
var getSelectRenderers = (
|
|
68595
|
-
const { options, question, helpText: _helpText } =
|
|
68594
|
+
var getSelectRenderers = (config27) => {
|
|
68595
|
+
const { options, question, helpText: _helpText } = config27;
|
|
68596
68596
|
const helpText = _helpText ?? "";
|
|
68597
|
-
const maxItemsPerPage =
|
|
68597
|
+
const maxItemsPerPage = config27.maxItemsPerPage ?? 32;
|
|
68598
68598
|
const defaultRenderer = ({ cursor = 0, value }) => {
|
|
68599
68599
|
const renderOption = (opt, i) => {
|
|
68600
68600
|
const { label: optionLabel, value: optionValue } = opt;
|
|
@@ -68669,21 +68669,21 @@ ${space(2)}${dim("...")}` : ""}`,
|
|
|
68669
68669
|
submit: ({ value }) => {
|
|
68670
68670
|
if (Array.isArray(value)) {
|
|
68671
68671
|
return renderSubmit(
|
|
68672
|
-
|
|
68672
|
+
config27,
|
|
68673
68673
|
options.filter((o) => value.includes(o.value)).map((o) => o.label).join(", ")
|
|
68674
68674
|
);
|
|
68675
68675
|
}
|
|
68676
68676
|
return renderSubmit(
|
|
68677
|
-
|
|
68677
|
+
config27,
|
|
68678
68678
|
options.find((o) => o.value === value)?.label
|
|
68679
68679
|
);
|
|
68680
68680
|
},
|
|
68681
68681
|
cancel: defaultRenderer
|
|
68682
68682
|
};
|
|
68683
68683
|
};
|
|
68684
|
-
var getSelectListRenderers = (
|
|
68685
|
-
const { question, helpText: _helpText } =
|
|
68686
|
-
let options =
|
|
68684
|
+
var getSelectListRenderers = (config27) => {
|
|
68685
|
+
const { question, helpText: _helpText } = config27;
|
|
68686
|
+
let options = config27.options;
|
|
68687
68687
|
const helpText = _helpText ?? "";
|
|
68688
68688
|
const { rows } = stdout;
|
|
68689
68689
|
const defaultRenderer = ({ cursor, value }, prompt) => {
|
|
@@ -68764,20 +68764,20 @@ var getSelectListRenderers = (config26) => {
|
|
|
68764
68764
|
submit: ({ value }) => {
|
|
68765
68765
|
if (Array.isArray(value)) {
|
|
68766
68766
|
return renderSubmit(
|
|
68767
|
-
|
|
68767
|
+
config27,
|
|
68768
68768
|
options.filter((o) => value.includes(o.value)).map((o) => o.value).join(", ")
|
|
68769
68769
|
);
|
|
68770
68770
|
}
|
|
68771
68771
|
return renderSubmit(
|
|
68772
|
-
|
|
68772
|
+
config27,
|
|
68773
68773
|
options.find((o) => o.value === value)?.value
|
|
68774
68774
|
);
|
|
68775
68775
|
},
|
|
68776
68776
|
cancel: defaultRenderer
|
|
68777
68777
|
};
|
|
68778
68778
|
};
|
|
68779
|
-
var getConfirmRenderers = (
|
|
68780
|
-
const { activeText, inactiveText, question, helpText: _helpText } =
|
|
68779
|
+
var getConfirmRenderers = (config27) => {
|
|
68780
|
+
const { activeText, inactiveText, question, helpText: _helpText } = config27;
|
|
68781
68781
|
const helpText = _helpText ?? "";
|
|
68782
68782
|
const active = activeText || "Yes";
|
|
68783
68783
|
const inactive = inactiveText || "No";
|
|
@@ -68794,7 +68794,7 @@ var getConfirmRenderers = (config26) => {
|
|
|
68794
68794
|
active: defaultRenderer,
|
|
68795
68795
|
confirm: defaultRenderer,
|
|
68796
68796
|
error: defaultRenderer,
|
|
68797
|
-
submit: ({ value }) => renderSubmit(
|
|
68797
|
+
submit: ({ value }) => renderSubmit(config27, value ? "yes" : "no"),
|
|
68798
68798
|
cancel: defaultRenderer
|
|
68799
68799
|
};
|
|
68800
68800
|
};
|
|
@@ -69764,23 +69764,23 @@ var YargsParser = class {
|
|
|
69764
69764
|
const configPath = argv2[configKey] || configLookup[configKey];
|
|
69765
69765
|
if (configPath) {
|
|
69766
69766
|
try {
|
|
69767
|
-
let
|
|
69767
|
+
let config27 = null;
|
|
69768
69768
|
const resolvedConfigPath = mixin2.resolve(mixin2.cwd(), configPath);
|
|
69769
69769
|
const resolveConfig = flags.configs[configKey];
|
|
69770
69770
|
if (typeof resolveConfig === "function") {
|
|
69771
69771
|
try {
|
|
69772
|
-
|
|
69772
|
+
config27 = resolveConfig(resolvedConfigPath);
|
|
69773
69773
|
} catch (e) {
|
|
69774
|
-
|
|
69774
|
+
config27 = e;
|
|
69775
69775
|
}
|
|
69776
|
-
if (
|
|
69777
|
-
error2 =
|
|
69776
|
+
if (config27 instanceof Error) {
|
|
69777
|
+
error2 = config27;
|
|
69778
69778
|
return;
|
|
69779
69779
|
}
|
|
69780
69780
|
} else {
|
|
69781
|
-
|
|
69781
|
+
config27 = mixin2.require(resolvedConfigPath);
|
|
69782
69782
|
}
|
|
69783
|
-
setConfigObject(
|
|
69783
|
+
setConfigObject(config27);
|
|
69784
69784
|
} catch (ex) {
|
|
69785
69785
|
if (ex.name === "PermissionDenied")
|
|
69786
69786
|
error2 = ex;
|
|
@@ -69790,9 +69790,9 @@ var YargsParser = class {
|
|
|
69790
69790
|
}
|
|
69791
69791
|
});
|
|
69792
69792
|
}
|
|
69793
|
-
function setConfigObject(
|
|
69794
|
-
Object.keys(
|
|
69795
|
-
const value =
|
|
69793
|
+
function setConfigObject(config27, prev) {
|
|
69794
|
+
Object.keys(config27).forEach(function(key) {
|
|
69795
|
+
const value = config27[key];
|
|
69796
69796
|
const fullKey = prev ? prev + "." + key : key;
|
|
69797
69797
|
if (typeof value === "object" && value !== null && !Array.isArray(value) && configuration["dot-notation"]) {
|
|
69798
69798
|
setConfigObject(value, fullKey);
|
|
@@ -70944,11 +70944,11 @@ var CommandInstance = class {
|
|
|
70944
70944
|
});
|
|
70945
70945
|
if (!unparsed.length)
|
|
70946
70946
|
return;
|
|
70947
|
-
const
|
|
70947
|
+
const config27 = Object.assign({}, options.configuration, {
|
|
70948
70948
|
"populate--": false
|
|
70949
70949
|
});
|
|
70950
70950
|
const parsed = this.shim.Parser.detailed(unparsed, Object.assign({}, options, {
|
|
70951
|
-
configuration:
|
|
70951
|
+
configuration: config27
|
|
70952
70952
|
}));
|
|
70953
70953
|
if (parsed.error) {
|
|
70954
70954
|
yargs.getInternalMethods().getUsageInstance().fail(parsed.error.message, parsed.error);
|
|
@@ -72171,31 +72171,31 @@ ${customMsgs.join("\n")}` : "";
|
|
|
72171
72171
|
// ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/build/lib/utils/apply-extends.js
|
|
72172
72172
|
var previouslyVisitedConfigs = [];
|
|
72173
72173
|
var shim2;
|
|
72174
|
-
function applyExtends(
|
|
72174
|
+
function applyExtends(config27, cwd, mergeExtends, _shim) {
|
|
72175
72175
|
shim2 = _shim;
|
|
72176
72176
|
let defaultConfig = {};
|
|
72177
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
72178
|
-
if (typeof
|
|
72177
|
+
if (Object.prototype.hasOwnProperty.call(config27, "extends")) {
|
|
72178
|
+
if (typeof config27.extends !== "string")
|
|
72179
72179
|
return defaultConfig;
|
|
72180
|
-
const isPath = /\.json|\..*rc$/.test(
|
|
72180
|
+
const isPath = /\.json|\..*rc$/.test(config27.extends);
|
|
72181
72181
|
let pathToDefault = null;
|
|
72182
72182
|
if (!isPath) {
|
|
72183
72183
|
try {
|
|
72184
|
-
pathToDefault = require.resolve(
|
|
72184
|
+
pathToDefault = require.resolve(config27.extends);
|
|
72185
72185
|
} catch (_err) {
|
|
72186
|
-
return
|
|
72186
|
+
return config27;
|
|
72187
72187
|
}
|
|
72188
72188
|
} else {
|
|
72189
|
-
pathToDefault = getPathToDefaultConfig(cwd,
|
|
72189
|
+
pathToDefault = getPathToDefaultConfig(cwd, config27.extends);
|
|
72190
72190
|
}
|
|
72191
72191
|
checkForCircularExtends(pathToDefault);
|
|
72192
72192
|
previouslyVisitedConfigs.push(pathToDefault);
|
|
72193
|
-
defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : require(
|
|
72194
|
-
delete
|
|
72193
|
+
defaultConfig = isPath ? JSON.parse(shim2.readFileSync(pathToDefault, "utf8")) : require(config27.extends);
|
|
72194
|
+
delete config27.extends;
|
|
72195
72195
|
defaultConfig = applyExtends(defaultConfig, shim2.path.dirname(pathToDefault), mergeExtends, shim2);
|
|
72196
72196
|
}
|
|
72197
72197
|
previouslyVisitedConfigs = [];
|
|
72198
|
-
return mergeExtends ? mergeDeep(defaultConfig,
|
|
72198
|
+
return mergeExtends ? mergeDeep(defaultConfig, config27) : Object.assign({}, defaultConfig, config27);
|
|
72199
72199
|
}
|
|
72200
72200
|
function checkForCircularExtends(cfgPath) {
|
|
72201
72201
|
if (previouslyVisitedConfigs.indexOf(cfgPath) > -1) {
|
|
@@ -72205,17 +72205,17 @@ function checkForCircularExtends(cfgPath) {
|
|
|
72205
72205
|
function getPathToDefaultConfig(cwd, pathToExtend) {
|
|
72206
72206
|
return shim2.path.resolve(cwd, pathToExtend);
|
|
72207
72207
|
}
|
|
72208
|
-
function mergeDeep(config1,
|
|
72208
|
+
function mergeDeep(config1, config27) {
|
|
72209
72209
|
const target = {};
|
|
72210
72210
|
function isObject2(obj) {
|
|
72211
72211
|
return obj && typeof obj === "object" && !Array.isArray(obj);
|
|
72212
72212
|
}
|
|
72213
72213
|
Object.assign(target, config1);
|
|
72214
|
-
for (const key of Object.keys(
|
|
72215
|
-
if (isObject2(
|
|
72216
|
-
target[key] = mergeDeep(config1[key],
|
|
72214
|
+
for (const key of Object.keys(config27)) {
|
|
72215
|
+
if (isObject2(config27[key]) && isObject2(target[key])) {
|
|
72216
|
+
target[key] = mergeDeep(config1[key], config27[key]);
|
|
72217
72217
|
} else {
|
|
72218
|
-
target[key] =
|
|
72218
|
+
target[key] = config27[key];
|
|
72219
72219
|
}
|
|
72220
72220
|
}
|
|
72221
72221
|
return target;
|
|
@@ -72976,9 +72976,9 @@ var YargsInstance = class {
|
|
|
72976
72976
|
}
|
|
72977
72977
|
return maybePromise;
|
|
72978
72978
|
}
|
|
72979
|
-
parserConfiguration(
|
|
72980
|
-
argsert("<object>", [
|
|
72981
|
-
__classPrivateFieldSet(this, _YargsInstance_parserConfig,
|
|
72979
|
+
parserConfiguration(config27) {
|
|
72980
|
+
argsert("<object>", [config27], arguments.length);
|
|
72981
|
+
__classPrivateFieldSet(this, _YargsInstance_parserConfig, config27, "f");
|
|
72982
72982
|
return this;
|
|
72983
72983
|
}
|
|
72984
72984
|
pkgConf(key, rootPath) {
|
|
@@ -73150,9 +73150,9 @@ var YargsInstance = class {
|
|
|
73150
73150
|
return this;
|
|
73151
73151
|
}
|
|
73152
73152
|
}
|
|
73153
|
-
usageConfiguration(
|
|
73154
|
-
argsert("<object>", [
|
|
73155
|
-
__classPrivateFieldSet(this, _YargsInstance_usageConfig,
|
|
73153
|
+
usageConfiguration(config27) {
|
|
73154
|
+
argsert("<object>", [config27], arguments.length);
|
|
73155
|
+
__classPrivateFieldSet(this, _YargsInstance_usageConfig, config27, "f");
|
|
73156
73156
|
return this;
|
|
73157
73157
|
}
|
|
73158
73158
|
version(opt, msg, ver) {
|
|
@@ -73558,11 +73558,11 @@ var YargsInstance = class {
|
|
|
73558
73558
|
__classPrivateFieldGet(this, _YargsInstance_options, "f").__ = __classPrivateFieldGet(this, _YargsInstance_shim, "f").y18n.__;
|
|
73559
73559
|
__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration = this[kGetParserConfiguration]();
|
|
73560
73560
|
const populateDoubleDash = !!__classPrivateFieldGet(this, _YargsInstance_options, "f").configuration["populate--"];
|
|
73561
|
-
const
|
|
73561
|
+
const config27 = Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f").configuration, {
|
|
73562
73562
|
"populate--": true
|
|
73563
73563
|
});
|
|
73564
73564
|
const parsed = __classPrivateFieldGet(this, _YargsInstance_shim, "f").Parser.detailed(args, Object.assign({}, __classPrivateFieldGet(this, _YargsInstance_options, "f"), {
|
|
73565
|
-
configuration: { "parse-positional-numbers": false, ...
|
|
73565
|
+
configuration: { "parse-positional-numbers": false, ...config27 }
|
|
73566
73566
|
}));
|
|
73567
73567
|
const argv = Object.assign(parsed.argv, __classPrivateFieldGet(this, _YargsInstance_parseContext, "f"));
|
|
73568
73568
|
let argvPromise = void 0;
|
|
@@ -73725,7 +73725,7 @@ var Yargs = YargsFactory(esm_default);
|
|
|
73725
73725
|
var yargs_default = Yargs;
|
|
73726
73726
|
|
|
73727
73727
|
// package.json
|
|
73728
|
-
var version = "2.
|
|
73728
|
+
var version = "2.34.0";
|
|
73729
73729
|
|
|
73730
73730
|
// src/metrics.ts
|
|
73731
73731
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -73769,12 +73769,12 @@ function getGlobalWranglerConfigPath() {
|
|
|
73769
73769
|
}
|
|
73770
73770
|
|
|
73771
73771
|
// src/helpers/metrics-config.ts
|
|
73772
|
-
function writeMetricsConfig(
|
|
73772
|
+
function writeMetricsConfig(config27) {
|
|
73773
73773
|
(0, import_node_fs2.mkdirSync)(import_node_path2.default.dirname(getMetricsConfigPath()), { recursive: true });
|
|
73774
73774
|
(0, import_node_fs2.writeFileSync)(
|
|
73775
73775
|
getMetricsConfigPath(),
|
|
73776
73776
|
JSON.stringify(
|
|
73777
|
-
|
|
73777
|
+
config27,
|
|
73778
73778
|
(_key, value) => value instanceof Date ? value.toISOString() : value,
|
|
73779
73779
|
" "
|
|
73780
73780
|
)
|
|
@@ -73782,9 +73782,9 @@ function writeMetricsConfig(config26) {
|
|
|
73782
73782
|
}
|
|
73783
73783
|
function readMetricsConfig() {
|
|
73784
73784
|
try {
|
|
73785
|
-
const
|
|
73785
|
+
const config27 = (0, import_node_fs2.readFileSync)(getMetricsConfigPath(), "utf8");
|
|
73786
73786
|
return JSON.parse(
|
|
73787
|
-
|
|
73787
|
+
config27,
|
|
73788
73788
|
(key, value) => key === "date" ? new Date(value) : value
|
|
73789
73789
|
);
|
|
73790
73790
|
} catch {
|
|
@@ -73794,10 +73794,10 @@ function readMetricsConfig() {
|
|
|
73794
73794
|
function getMetricsConfigPath() {
|
|
73795
73795
|
return import_node_path2.default.resolve(getGlobalWranglerConfigPath(), "metrics.json");
|
|
73796
73796
|
}
|
|
73797
|
-
function getDeviceId(
|
|
73798
|
-
const deviceId =
|
|
73799
|
-
if (
|
|
73800
|
-
writeMetricsConfig({ ...
|
|
73797
|
+
function getDeviceId(config27) {
|
|
73798
|
+
const deviceId = config27.deviceId ?? (0, import_node_crypto.randomUUID)();
|
|
73799
|
+
if (config27.deviceId === void 0) {
|
|
73800
|
+
writeMetricsConfig({ ...config27, deviceId });
|
|
73801
73801
|
}
|
|
73802
73802
|
return deviceId;
|
|
73803
73803
|
}
|
|
@@ -73982,7 +73982,7 @@ var detectPackageManager = () => {
|
|
|
73982
73982
|
}
|
|
73983
73983
|
};
|
|
73984
73984
|
var rectifyPmMismatch = async (ctx) => {
|
|
73985
|
-
const { npm:
|
|
73985
|
+
const { npm: npm23 } = detectPackageManager();
|
|
73986
73986
|
if (!detectPmMismatch(ctx)) {
|
|
73987
73987
|
return;
|
|
73988
73988
|
}
|
|
@@ -73994,17 +73994,17 @@ var rectifyPmMismatch = async (ctx) => {
|
|
|
73994
73994
|
if ((0, import_fs5.existsSync)(lockfilePath)) {
|
|
73995
73995
|
(0, import_fs5.rmSync)(lockfilePath);
|
|
73996
73996
|
}
|
|
73997
|
-
await runCommand([
|
|
73997
|
+
await runCommand([npm23, "install"], {
|
|
73998
73998
|
silent: true,
|
|
73999
73999
|
cwd: ctx.project.path,
|
|
74000
74000
|
startText: "Installing dependencies",
|
|
74001
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
74001
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm23} install\``)}`
|
|
74002
74002
|
});
|
|
74003
74003
|
};
|
|
74004
74004
|
var detectPmMismatch = (ctx) => {
|
|
74005
|
-
const { npm:
|
|
74005
|
+
const { npm: npm23 } = detectPackageManager();
|
|
74006
74006
|
const projectPath = ctx.project.path;
|
|
74007
|
-
switch (
|
|
74007
|
+
switch (npm23) {
|
|
74008
74008
|
case "npm":
|
|
74009
74009
|
return false;
|
|
74010
74010
|
case "yarn":
|
|
@@ -74072,10 +74072,10 @@ function getPlatform() {
|
|
|
74072
74072
|
function createReporter() {
|
|
74073
74073
|
const events = [];
|
|
74074
74074
|
const als = new import_node_async_hooks.AsyncLocalStorage();
|
|
74075
|
-
const
|
|
74076
|
-
const isFirstUsage =
|
|
74075
|
+
const config27 = readMetricsConfig() ?? {};
|
|
74076
|
+
const isFirstUsage = config27.c3permission === void 0;
|
|
74077
74077
|
const isEnabled = isTelemetryEnabled();
|
|
74078
|
-
const deviceId = getDeviceId(
|
|
74078
|
+
const deviceId = getDeviceId(config27);
|
|
74079
74079
|
const packageManager = detectPackageManager();
|
|
74080
74080
|
const platform3 = getPlatform();
|
|
74081
74081
|
const amplitude_session_id = Date.now();
|
|
@@ -74108,7 +74108,7 @@ function createReporter() {
|
|
|
74108
74108
|
if (process.env.CREATE_CLOUDFLARE_TELEMETRY_DISABLED === "1") {
|
|
74109
74109
|
return false;
|
|
74110
74110
|
}
|
|
74111
|
-
return hasSparrowSourceKey() && getC3Permission(
|
|
74111
|
+
return hasSparrowSourceKey() && getC3Permission(config27).enabled;
|
|
74112
74112
|
}
|
|
74113
74113
|
async function waitForAllEventsSettled() {
|
|
74114
74114
|
await Promise.allSettled(events);
|
|
@@ -74214,20 +74214,20 @@ function initializeC3Permission(enabled = true) {
|
|
|
74214
74214
|
date: /* @__PURE__ */ new Date()
|
|
74215
74215
|
};
|
|
74216
74216
|
}
|
|
74217
|
-
function getC3Permission(
|
|
74218
|
-
if (!
|
|
74219
|
-
|
|
74220
|
-
writeMetricsConfig(
|
|
74217
|
+
function getC3Permission(config27 = readMetricsConfig() ?? {}) {
|
|
74218
|
+
if (!config27.c3permission) {
|
|
74219
|
+
config27.c3permission = initializeC3Permission();
|
|
74220
|
+
writeMetricsConfig(config27);
|
|
74221
74221
|
}
|
|
74222
|
-
return
|
|
74222
|
+
return config27.c3permission;
|
|
74223
74223
|
}
|
|
74224
74224
|
function updateC3Pemission(enabled) {
|
|
74225
|
-
const
|
|
74226
|
-
if (
|
|
74225
|
+
const config27 = readMetricsConfig();
|
|
74226
|
+
if (config27.c3permission?.enabled === enabled) {
|
|
74227
74227
|
return;
|
|
74228
74228
|
}
|
|
74229
|
-
|
|
74230
|
-
writeMetricsConfig(
|
|
74229
|
+
config27.c3permission = initializeC3Permission(enabled);
|
|
74230
|
+
writeMetricsConfig(config27);
|
|
74231
74231
|
}
|
|
74232
74232
|
var runTelemetryCommand = (action) => {
|
|
74233
74233
|
const logTelemetryStatus = (enabled) => {
|
|
@@ -74272,28 +74272,28 @@ var import_haikunator = __toESM(require_dist_web());
|
|
|
74272
74272
|
var import_fs6 = require("fs");
|
|
74273
74273
|
var import_path6 = __toESM(require("path"));
|
|
74274
74274
|
var import_undici2 = __toESM(require_undici());
|
|
74275
|
-
var installPackages = async (packages,
|
|
74276
|
-
const { npm:
|
|
74275
|
+
var installPackages = async (packages, config27 = {}) => {
|
|
74276
|
+
const { npm: npm23 } = detectPackageManager();
|
|
74277
74277
|
let saveFlag;
|
|
74278
74278
|
let cmd;
|
|
74279
|
-
switch (
|
|
74279
|
+
switch (npm23) {
|
|
74280
74280
|
case "yarn":
|
|
74281
74281
|
cmd = "add";
|
|
74282
|
-
saveFlag =
|
|
74282
|
+
saveFlag = config27.dev ? "-D" : "";
|
|
74283
74283
|
break;
|
|
74284
74284
|
case "bun":
|
|
74285
74285
|
cmd = "add";
|
|
74286
|
-
saveFlag =
|
|
74286
|
+
saveFlag = config27.dev ? "-d" : "";
|
|
74287
74287
|
break;
|
|
74288
74288
|
case "npm":
|
|
74289
74289
|
case "pnpm":
|
|
74290
74290
|
default:
|
|
74291
74291
|
cmd = "install";
|
|
74292
|
-
saveFlag =
|
|
74292
|
+
saveFlag = config27.dev ? "--save-dev" : "";
|
|
74293
74293
|
break;
|
|
74294
74294
|
}
|
|
74295
|
-
await runCommand([
|
|
74296
|
-
...
|
|
74295
|
+
await runCommand([npm23, cmd, ...saveFlag ? [saveFlag] : [], ...packages], {
|
|
74296
|
+
...config27,
|
|
74297
74297
|
silent: true
|
|
74298
74298
|
});
|
|
74299
74299
|
};
|
|
@@ -74302,11 +74302,11 @@ var npmInstall = async (ctx) => {
|
|
|
74302
74302
|
if ((0, import_fs6.existsSync)(nodeModulesPath)) {
|
|
74303
74303
|
return;
|
|
74304
74304
|
}
|
|
74305
|
-
const { npm:
|
|
74306
|
-
await runCommand([
|
|
74305
|
+
const { npm: npm23 } = detectPackageManager();
|
|
74306
|
+
await runCommand([npm23, "install"], {
|
|
74307
74307
|
silent: true,
|
|
74308
74308
|
startText: "Installing dependencies",
|
|
74309
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
74309
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm23} install\``)}`
|
|
74310
74310
|
});
|
|
74311
74311
|
};
|
|
74312
74312
|
async function getLatestPackageVersion(packageSpecifier) {
|
|
@@ -74315,7 +74315,7 @@ async function getLatestPackageVersion(packageSpecifier) {
|
|
|
74315
74315
|
return npmInfo["dist-tags"].latest;
|
|
74316
74316
|
}
|
|
74317
74317
|
var installWrangler = async () => {
|
|
74318
|
-
const { npm:
|
|
74318
|
+
const { npm: npm23 } = detectPackageManager();
|
|
74319
74319
|
if ((0, import_fs6.existsSync)(import_path6.default.resolve("node_modules", "wrangler"))) {
|
|
74320
74320
|
return;
|
|
74321
74321
|
}
|
|
@@ -74325,7 +74325,7 @@ var installWrangler = async () => {
|
|
|
74325
74325
|
"A command line tool for building Cloudflare Workers"
|
|
74326
74326
|
)}`,
|
|
74327
74327
|
doneText: `${brandColor("installed")} ${dim(
|
|
74328
|
-
`via \`${
|
|
74328
|
+
`via \`${npm23} install wrangler --save-dev\``
|
|
74329
74329
|
)}`
|
|
74330
74330
|
});
|
|
74331
74331
|
};
|
|
@@ -74490,17 +74490,17 @@ var package_default = {
|
|
|
74490
74490
|
"create-astro": "4.10.0",
|
|
74491
74491
|
"create-analog": "1.8.1",
|
|
74492
74492
|
"@angular/create": "19.0.0",
|
|
74493
|
-
"create-docusaurus": "3.6.
|
|
74493
|
+
"create-docusaurus": "3.6.3",
|
|
74494
74494
|
"create-hono": "0.14.2",
|
|
74495
74495
|
"create-next-app": "14.2.5",
|
|
74496
74496
|
"create-qwik": "1.11.0",
|
|
74497
|
-
"create-vite": "
|
|
74498
|
-
"create-remix": "2.
|
|
74499
|
-
"create-solid": "0.5.
|
|
74497
|
+
"create-vite": "6.0.1",
|
|
74498
|
+
"create-remix": "2.15.0",
|
|
74499
|
+
"create-solid": "0.5.14",
|
|
74500
74500
|
"create-vue": "3.12.1",
|
|
74501
74501
|
gatsby: "5.14.0",
|
|
74502
|
-
|
|
74503
|
-
|
|
74502
|
+
sv: "0.6.2",
|
|
74503
|
+
nuxi: "3.16.0"
|
|
74504
74504
|
}
|
|
74505
74505
|
};
|
|
74506
74506
|
|
|
@@ -74515,9 +74515,9 @@ var getFrameworkCli = (ctx, withVersion = true) => {
|
|
|
74515
74515
|
};
|
|
74516
74516
|
var runFrameworkGenerator = async (ctx, args) => {
|
|
74517
74517
|
const cli = getFrameworkCli(ctx, true);
|
|
74518
|
-
const { npm:
|
|
74519
|
-
const cmd = [...
|
|
74520
|
-
const env3 =
|
|
74518
|
+
const { npm: npm23, dlx } = detectPackageManager();
|
|
74519
|
+
const cmd = [...npm23 === "yarn" ? ["npx"] : dlx, cli, ...args];
|
|
74520
|
+
const env3 = npm23 === "yarn" ? { npm_config_user_agent: "yarn" } : {};
|
|
74521
74521
|
if (ctx.args.additionalArgs?.length) {
|
|
74522
74522
|
cmd.push(...ctx.args.additionalArgs);
|
|
74523
74523
|
}
|
|
@@ -75435,10 +75435,7 @@ var config12 = {
|
|
|
75435
75435
|
displayName: "SvelteKit",
|
|
75436
75436
|
platform: "workers",
|
|
75437
75437
|
copyFiles: {
|
|
75438
|
-
|
|
75439
|
-
js: { path: "./js" },
|
|
75440
|
-
ts: { path: "./ts" }
|
|
75441
|
-
}
|
|
75438
|
+
path: "./templates"
|
|
75442
75439
|
},
|
|
75443
75440
|
path: "templates-experimental/svelte",
|
|
75444
75441
|
generate: generate11,
|
|
@@ -75463,10 +75460,38 @@ var config12 = {
|
|
|
75463
75460
|
};
|
|
75464
75461
|
var c3_default14 = config12;
|
|
75465
75462
|
|
|
75463
|
+
// templates-experimental/vue/c3.ts
|
|
75464
|
+
var { npm: npm9 } = detectPackageManager();
|
|
75465
|
+
var generate12 = async (ctx) => {
|
|
75466
|
+
await runFrameworkGenerator(ctx, [ctx.project.name]);
|
|
75467
|
+
};
|
|
75468
|
+
var config13 = {
|
|
75469
|
+
configVersion: 1,
|
|
75470
|
+
id: "vue",
|
|
75471
|
+
frameworkCli: "create-vue",
|
|
75472
|
+
platform: "workers",
|
|
75473
|
+
displayName: "Vue",
|
|
75474
|
+
copyFiles: {
|
|
75475
|
+
path: "./templates"
|
|
75476
|
+
},
|
|
75477
|
+
path: "templates-experimental/vue",
|
|
75478
|
+
generate: generate12,
|
|
75479
|
+
transformPackageJson: async () => ({
|
|
75480
|
+
scripts: {
|
|
75481
|
+
deploy: `${npm9} run build && wrangler deploy`,
|
|
75482
|
+
preview: `${npm9} run build && wrangler dev`
|
|
75483
|
+
}
|
|
75484
|
+
}),
|
|
75485
|
+
devScript: "dev",
|
|
75486
|
+
deployScript: "deploy",
|
|
75487
|
+
previewScript: "preview"
|
|
75488
|
+
};
|
|
75489
|
+
var c3_default15 = config13;
|
|
75490
|
+
|
|
75466
75491
|
// templates/analog/c3.ts
|
|
75467
75492
|
var recast7 = __toESM(require_main3());
|
|
75468
|
-
var { npm:
|
|
75469
|
-
var
|
|
75493
|
+
var { npm: npm10, name: pm2 } = detectPackageManager();
|
|
75494
|
+
var generate13 = async (ctx) => {
|
|
75470
75495
|
await runFrameworkGenerator(ctx, [
|
|
75471
75496
|
ctx.project.name,
|
|
75472
75497
|
"--template",
|
|
@@ -75484,7 +75509,7 @@ var configure9 = async (ctx) => {
|
|
|
75484
75509
|
await installPackages(packages, {
|
|
75485
75510
|
dev: true,
|
|
75486
75511
|
startText: `Installing ${packages.join(", ")}`,
|
|
75487
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
75512
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm10} install\``)}`
|
|
75488
75513
|
});
|
|
75489
75514
|
}
|
|
75490
75515
|
updateViteConfig(ctx);
|
|
@@ -75542,7 +75567,7 @@ var updateViteConfig = (ctx) => {
|
|
|
75542
75567
|
});
|
|
75543
75568
|
s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
|
|
75544
75569
|
};
|
|
75545
|
-
var
|
|
75570
|
+
var config14 = {
|
|
75546
75571
|
configVersion: 1,
|
|
75547
75572
|
id: "analog",
|
|
75548
75573
|
frameworkCli: "create-analog",
|
|
@@ -75551,12 +75576,12 @@ var config13 = {
|
|
|
75551
75576
|
copyFiles: {
|
|
75552
75577
|
path: "./templates"
|
|
75553
75578
|
},
|
|
75554
|
-
generate:
|
|
75579
|
+
generate: generate13,
|
|
75555
75580
|
configure: configure9,
|
|
75556
75581
|
transformPackageJson: async () => ({
|
|
75557
75582
|
scripts: {
|
|
75558
|
-
preview: `${
|
|
75559
|
-
deploy: `${
|
|
75583
|
+
preview: `${npm10} run build && wrangler pages dev`,
|
|
75584
|
+
deploy: `${npm10} run build && wrangler pages deploy`,
|
|
75560
75585
|
"cf-typegen": `wrangler types`
|
|
75561
75586
|
}
|
|
75562
75587
|
}),
|
|
@@ -75564,12 +75589,12 @@ var config13 = {
|
|
|
75564
75589
|
deployScript: "deploy",
|
|
75565
75590
|
previewScript: "preview"
|
|
75566
75591
|
};
|
|
75567
|
-
var
|
|
75592
|
+
var c3_default16 = config14;
|
|
75568
75593
|
|
|
75569
75594
|
// templates/angular/c3.ts
|
|
75570
75595
|
var import_node_path4 = require("node:path");
|
|
75571
|
-
var { npm:
|
|
75572
|
-
var
|
|
75596
|
+
var { npm: npm11 } = detectPackageManager();
|
|
75597
|
+
var generate14 = async (ctx) => {
|
|
75573
75598
|
await runFrameworkGenerator(ctx, [
|
|
75574
75599
|
ctx.project.name,
|
|
75575
75600
|
"--ssr",
|
|
@@ -75586,7 +75611,7 @@ async function installCFWorker2() {
|
|
|
75586
75611
|
await installPackages(["xhr2"], {
|
|
75587
75612
|
dev: true,
|
|
75588
75613
|
startText: "Installing additional dependencies",
|
|
75589
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
75614
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm11} install\``)}`
|
|
75590
75615
|
});
|
|
75591
75616
|
}
|
|
75592
75617
|
async function updateAppCode2() {
|
|
@@ -75628,7 +75653,7 @@ function updateAngularJson2(ctx) {
|
|
|
75628
75653
|
writeFile2((0, import_node_path4.resolve)("angular.json"), JSON.stringify(angularJson, null, 2));
|
|
75629
75654
|
s.stop(`${brandColor(`updated`)} ${dim(`\`angular.json\``)}`);
|
|
75630
75655
|
}
|
|
75631
|
-
var
|
|
75656
|
+
var config15 = {
|
|
75632
75657
|
configVersion: 1,
|
|
75633
75658
|
id: "angular",
|
|
75634
75659
|
frameworkCli: "@angular/create",
|
|
@@ -75640,23 +75665,23 @@ var config14 = {
|
|
|
75640
75665
|
devScript: "start",
|
|
75641
75666
|
deployScript: "deploy",
|
|
75642
75667
|
previewScript: "start",
|
|
75643
|
-
generate:
|
|
75668
|
+
generate: generate14,
|
|
75644
75669
|
configure: configure10,
|
|
75645
75670
|
transformPackageJson: async () => ({
|
|
75646
75671
|
scripts: {
|
|
75647
|
-
start: `${
|
|
75648
|
-
build: `ng build && ${
|
|
75672
|
+
start: `${npm11} run build && wrangler pages dev dist/cloudflare ${await compatDateFlag()}`,
|
|
75673
|
+
build: `ng build && ${npm11} run process`,
|
|
75649
75674
|
process: "node ./tools/copy-files.mjs",
|
|
75650
|
-
deploy: `${
|
|
75675
|
+
deploy: `${npm11} run build && wrangler pages deploy dist/cloudflare`
|
|
75651
75676
|
}
|
|
75652
75677
|
})
|
|
75653
75678
|
};
|
|
75654
|
-
var
|
|
75679
|
+
var c3_default17 = config15;
|
|
75655
75680
|
|
|
75656
75681
|
// templates/astro/c3.ts
|
|
75657
75682
|
var recast8 = __toESM(require_main3());
|
|
75658
75683
|
var { npx: npx3 } = detectPackageManager();
|
|
75659
|
-
var
|
|
75684
|
+
var generate15 = async (ctx) => {
|
|
75660
75685
|
await runFrameworkGenerator(ctx, [ctx.project.name, "--no-install"]);
|
|
75661
75686
|
logRaw("");
|
|
75662
75687
|
};
|
|
@@ -75715,7 +75740,7 @@ var updateEnvDeclaration2 = (ctx) => {
|
|
|
75715
75740
|
}
|
|
75716
75741
|
});
|
|
75717
75742
|
};
|
|
75718
|
-
var
|
|
75743
|
+
var config16 = {
|
|
75719
75744
|
configVersion: 1,
|
|
75720
75745
|
id: "astro",
|
|
75721
75746
|
frameworkCli: "create-astro",
|
|
@@ -75727,7 +75752,7 @@ var config15 = {
|
|
|
75727
75752
|
devScript: "dev",
|
|
75728
75753
|
deployScript: "deploy",
|
|
75729
75754
|
previewScript: "preview",
|
|
75730
|
-
generate:
|
|
75755
|
+
generate: generate15,
|
|
75731
75756
|
configure: configure11,
|
|
75732
75757
|
transformPackageJson: async (pkgJson, ctx) => ({
|
|
75733
75758
|
scripts: {
|
|
@@ -75737,10 +75762,10 @@ var config15 = {
|
|
|
75737
75762
|
}
|
|
75738
75763
|
})
|
|
75739
75764
|
};
|
|
75740
|
-
var
|
|
75765
|
+
var c3_default18 = config16;
|
|
75741
75766
|
|
|
75742
75767
|
// templates/common/c3.ts
|
|
75743
|
-
var
|
|
75768
|
+
var c3_default19 = {
|
|
75744
75769
|
configVersion: 1,
|
|
75745
75770
|
id: "common",
|
|
75746
75771
|
displayName: "Example router & proxy Worker",
|
|
@@ -75760,31 +75785,31 @@ var c3_default18 = {
|
|
|
75760
75785
|
};
|
|
75761
75786
|
|
|
75762
75787
|
// templates/docusaurus/c3.ts
|
|
75763
|
-
var { npm:
|
|
75764
|
-
var
|
|
75788
|
+
var { npm: npm12 } = detectPackageManager();
|
|
75789
|
+
var generate16 = async (ctx) => {
|
|
75765
75790
|
await runFrameworkGenerator(ctx, [ctx.project.name, "classic"]);
|
|
75766
75791
|
};
|
|
75767
|
-
var
|
|
75792
|
+
var config17 = {
|
|
75768
75793
|
configVersion: 1,
|
|
75769
75794
|
id: "docusaurus",
|
|
75770
75795
|
frameworkCli: "create-docusaurus",
|
|
75771
75796
|
platform: "pages",
|
|
75772
75797
|
displayName: "Docusaurus",
|
|
75773
|
-
generate:
|
|
75798
|
+
generate: generate16,
|
|
75774
75799
|
transformPackageJson: async () => ({
|
|
75775
75800
|
scripts: {
|
|
75776
|
-
preview: `${
|
|
75777
|
-
deploy: `${
|
|
75801
|
+
preview: `${npm12} run build && wrangler pages dev ./build`,
|
|
75802
|
+
deploy: `${npm12} run build && wrangler pages deploy ./build`
|
|
75778
75803
|
}
|
|
75779
75804
|
}),
|
|
75780
75805
|
devScript: "preview",
|
|
75781
75806
|
deployScript: "deploy"
|
|
75782
75807
|
};
|
|
75783
|
-
var
|
|
75808
|
+
var c3_default20 = config17;
|
|
75784
75809
|
|
|
75785
75810
|
// templates/gatsby/c3.ts
|
|
75786
|
-
var { npm:
|
|
75787
|
-
var
|
|
75811
|
+
var { npm: npm13 } = detectPackageManager();
|
|
75812
|
+
var generate17 = async (ctx) => {
|
|
75788
75813
|
const defaultTemplate = "https://github.com/gatsbyjs/gatsby-starter-blog";
|
|
75789
75814
|
const useTemplate = await inputPrompt({
|
|
75790
75815
|
type: "confirm",
|
|
@@ -75803,27 +75828,27 @@ var generate16 = async (ctx) => {
|
|
|
75803
75828
|
}
|
|
75804
75829
|
await runFrameworkGenerator(ctx, ["new", ctx.project.name, templateUrl]);
|
|
75805
75830
|
};
|
|
75806
|
-
var
|
|
75831
|
+
var config18 = {
|
|
75807
75832
|
configVersion: 1,
|
|
75808
75833
|
id: "gatsby",
|
|
75809
75834
|
frameworkCli: "gatsby",
|
|
75810
75835
|
platform: "pages",
|
|
75811
75836
|
displayName: "Gatsby",
|
|
75812
|
-
generate:
|
|
75837
|
+
generate: generate17,
|
|
75813
75838
|
transformPackageJson: async () => ({
|
|
75814
75839
|
scripts: {
|
|
75815
|
-
deploy: `${
|
|
75816
|
-
preview: `${
|
|
75840
|
+
deploy: `${npm13} run build && wrangler pages deploy ./public`,
|
|
75841
|
+
preview: `${npm13} run build && wrangler pages dev ./public`
|
|
75817
75842
|
}
|
|
75818
75843
|
}),
|
|
75819
75844
|
devScript: "develop",
|
|
75820
75845
|
deployScript: "deploy",
|
|
75821
75846
|
previewScript: "preview"
|
|
75822
75847
|
};
|
|
75823
|
-
var
|
|
75848
|
+
var c3_default21 = config18;
|
|
75824
75849
|
|
|
75825
75850
|
// templates/hello-world-durable-object/c3.ts
|
|
75826
|
-
var
|
|
75851
|
+
var c3_default22 = {
|
|
75827
75852
|
configVersion: 1,
|
|
75828
75853
|
id: "hello-world-durable-object",
|
|
75829
75854
|
displayName: "Hello World Worker Using Durable Objects",
|
|
@@ -75842,7 +75867,7 @@ var c3_default21 = {
|
|
|
75842
75867
|
};
|
|
75843
75868
|
|
|
75844
75869
|
// templates/hello-world/c3.ts
|
|
75845
|
-
var
|
|
75870
|
+
var c3_default23 = {
|
|
75846
75871
|
configVersion: 1,
|
|
75847
75872
|
id: "hello-world",
|
|
75848
75873
|
displayName: "Hello World Worker",
|
|
@@ -75864,7 +75889,7 @@ var c3_default22 = {
|
|
|
75864
75889
|
};
|
|
75865
75890
|
|
|
75866
75891
|
// templates/hono/c3.ts
|
|
75867
|
-
var
|
|
75892
|
+
var generate18 = async (ctx) => {
|
|
75868
75893
|
const { name: pm4 } = detectPackageManager();
|
|
75869
75894
|
await runFrameworkGenerator(ctx, [
|
|
75870
75895
|
ctx.project.name,
|
|
@@ -75891,7 +75916,7 @@ var configure12 = async (ctx) => {
|
|
|
75891
75916
|
});
|
|
75892
75917
|
s.stop(`${brandColor("updated")} \`${dim(indexFile)}\``);
|
|
75893
75918
|
};
|
|
75894
|
-
var
|
|
75919
|
+
var config19 = {
|
|
75895
75920
|
configVersion: 1,
|
|
75896
75921
|
id: "hono",
|
|
75897
75922
|
frameworkCli: "create-hono",
|
|
@@ -75900,7 +75925,7 @@ var config18 = {
|
|
|
75900
75925
|
path: "./templates"
|
|
75901
75926
|
},
|
|
75902
75927
|
platform: "workers",
|
|
75903
|
-
generate:
|
|
75928
|
+
generate: generate18,
|
|
75904
75929
|
configure: configure12,
|
|
75905
75930
|
transformPackageJson: async () => ({
|
|
75906
75931
|
scripts: {
|
|
@@ -75912,12 +75937,12 @@ var config18 = {
|
|
|
75912
75937
|
devScript: "dev",
|
|
75913
75938
|
deployScript: "deploy"
|
|
75914
75939
|
};
|
|
75915
|
-
var
|
|
75940
|
+
var c3_default24 = config19;
|
|
75916
75941
|
|
|
75917
75942
|
// templates/next/c3.ts
|
|
75918
75943
|
var import_path10 = require("path");
|
|
75919
|
-
var { npm:
|
|
75920
|
-
var
|
|
75944
|
+
var { npm: npm14, npx: npx4 } = detectPackageManager();
|
|
75945
|
+
var generate19 = async (ctx) => {
|
|
75921
75946
|
const projectName = ctx.project.name;
|
|
75922
75947
|
await runFrameworkGenerator(ctx, [projectName]);
|
|
75923
75948
|
const wranglerToml = readFile((0, import_path10.join)(getTemplatePath(ctx), "wrangler.toml"));
|
|
@@ -76025,13 +76050,13 @@ var addDevDependencies = async (installEslintPlugin) => {
|
|
|
76025
76050
|
doneText: `${brandColor(`installed`)} ${dim(packages.join(", "))}`
|
|
76026
76051
|
});
|
|
76027
76052
|
};
|
|
76028
|
-
var
|
|
76053
|
+
var c3_default25 = {
|
|
76029
76054
|
configVersion: 1,
|
|
76030
76055
|
id: "next",
|
|
76031
76056
|
frameworkCli: "create-next-app",
|
|
76032
76057
|
platform: "pages",
|
|
76033
76058
|
displayName: "Next",
|
|
76034
|
-
generate:
|
|
76059
|
+
generate: generate19,
|
|
76035
76060
|
configure: configure13,
|
|
76036
76061
|
copyFiles: {
|
|
76037
76062
|
async selectVariant(ctx) {
|
|
@@ -76063,12 +76088,12 @@ var c3_default24 = {
|
|
|
76063
76088
|
}
|
|
76064
76089
|
},
|
|
76065
76090
|
transformPackageJson: async (_3, ctx) => {
|
|
76066
|
-
const isNpm =
|
|
76067
|
-
const isBun =
|
|
76091
|
+
const isNpm = npm14 === "npm";
|
|
76092
|
+
const isBun = npm14 === "bun";
|
|
76068
76093
|
const isNpmOrBun = isNpm || isBun;
|
|
76069
76094
|
const nextOnPagesScope = isNpmOrBun ? "@cloudflare/" : "";
|
|
76070
76095
|
const nextOnPagesCommand = `${nextOnPagesScope}next-on-pages`;
|
|
76071
|
-
const pmCommand = isNpmOrBun ? npx4 :
|
|
76096
|
+
const pmCommand = isNpmOrBun ? npx4 : npm14;
|
|
76072
76097
|
const pagesBuildRunCommand = `${isNpm ? "npm run" : isBun ? "bun" : pmCommand} pages:build`;
|
|
76073
76098
|
return {
|
|
76074
76099
|
scripts: {
|
|
@@ -76089,14 +76114,14 @@ var c3_default24 = {
|
|
|
76089
76114
|
|
|
76090
76115
|
// templates/nuxt/c3.ts
|
|
76091
76116
|
var recast9 = __toESM(require_main3());
|
|
76092
|
-
var { npm:
|
|
76093
|
-
var
|
|
76117
|
+
var { npm: npm15, name: pm3 } = detectPackageManager();
|
|
76118
|
+
var generate20 = async (ctx) => {
|
|
76094
76119
|
const gitFlag = ctx.args.git ? `--gitInit` : `--no-gitInit`;
|
|
76095
76120
|
await runFrameworkGenerator(ctx, [
|
|
76096
76121
|
"init",
|
|
76097
76122
|
ctx.project.name,
|
|
76098
76123
|
"--packageManager",
|
|
76099
|
-
|
|
76124
|
+
npm15,
|
|
76100
76125
|
gitFlag
|
|
76101
76126
|
]);
|
|
76102
76127
|
writeFile2("./.node-version", "17");
|
|
@@ -76110,7 +76135,7 @@ var configure14 = async (ctx) => {
|
|
|
76110
76135
|
await installPackages(packages, {
|
|
76111
76136
|
dev: true,
|
|
76112
76137
|
startText: "Installing nitro module `nitro-cloudflare-dev`",
|
|
76113
|
-
doneText: `${brandColor("installed")} ${dim(`via \`${
|
|
76138
|
+
doneText: `${brandColor("installed")} ${dim(`via \`${npm15} install\``)}`
|
|
76114
76139
|
});
|
|
76115
76140
|
updateNuxtConfig2();
|
|
76116
76141
|
updateEnvTypes3(ctx);
|
|
@@ -76161,7 +76186,7 @@ var updateNuxtConfig2 = () => {
|
|
|
76161
76186
|
});
|
|
76162
76187
|
s.stop(`${brandColor(`updated`)} ${dim(`\`${configFile}\``)}`);
|
|
76163
76188
|
};
|
|
76164
|
-
var
|
|
76189
|
+
var config20 = {
|
|
76165
76190
|
configVersion: 1,
|
|
76166
76191
|
id: "nuxt",
|
|
76167
76192
|
frameworkCli: "nuxi",
|
|
@@ -76170,12 +76195,12 @@ var config19 = {
|
|
|
76170
76195
|
copyFiles: {
|
|
76171
76196
|
path: "./templates"
|
|
76172
76197
|
},
|
|
76173
|
-
generate:
|
|
76198
|
+
generate: generate20,
|
|
76174
76199
|
configure: configure14,
|
|
76175
76200
|
transformPackageJson: async () => ({
|
|
76176
76201
|
scripts: {
|
|
76177
|
-
deploy: `${
|
|
76178
|
-
preview: `${
|
|
76202
|
+
deploy: `${npm15} run build && wrangler pages deploy`,
|
|
76203
|
+
preview: `${npm15} run build && wrangler pages dev`,
|
|
76179
76204
|
"cf-typegen": `wrangler types`
|
|
76180
76205
|
}
|
|
76181
76206
|
}),
|
|
@@ -76183,10 +76208,10 @@ var config19 = {
|
|
|
76183
76208
|
deployScript: "deploy",
|
|
76184
76209
|
previewScript: "preview"
|
|
76185
76210
|
};
|
|
76186
|
-
var
|
|
76211
|
+
var c3_default26 = config20;
|
|
76187
76212
|
|
|
76188
76213
|
// templates/openapi/c3.ts
|
|
76189
|
-
var
|
|
76214
|
+
var c3_default27 = {
|
|
76190
76215
|
configVersion: 1,
|
|
76191
76216
|
id: "openapi",
|
|
76192
76217
|
displayName: "API starter (OpenAPI compliant)",
|
|
@@ -76345,7 +76370,7 @@ async function copyExistingWorkerFiles(ctx) {
|
|
|
76345
76370
|
(0, import_path11.join)(ctx.project.path, "wrangler.toml")
|
|
76346
76371
|
);
|
|
76347
76372
|
}
|
|
76348
|
-
var
|
|
76373
|
+
var c3_default28 = {
|
|
76349
76374
|
configVersion: 1,
|
|
76350
76375
|
id: "pre-existing",
|
|
76351
76376
|
displayName: "Pre-existing Worker (from Dashboard)",
|
|
@@ -76373,7 +76398,7 @@ function buildConfigure(params) {
|
|
|
76373
76398
|
}
|
|
76374
76399
|
|
|
76375
76400
|
// templates/queues/c3.ts
|
|
76376
|
-
var
|
|
76401
|
+
var c3_default29 = {
|
|
76377
76402
|
configVersion: 1,
|
|
76378
76403
|
id: "queues",
|
|
76379
76404
|
displayName: "Queue consumer & producer Worker",
|
|
@@ -76403,8 +76428,8 @@ var c3_default28 = {
|
|
|
76403
76428
|
|
|
76404
76429
|
// templates/qwik/c3.ts
|
|
76405
76430
|
var recast10 = __toESM(require_main3());
|
|
76406
|
-
var { npm:
|
|
76407
|
-
var
|
|
76431
|
+
var { npm: npm16, npx: npx5 } = detectPackageManager();
|
|
76432
|
+
var generate21 = async (ctx) => {
|
|
76408
76433
|
await runFrameworkGenerator(ctx, ["playground", ctx.project.name]);
|
|
76409
76434
|
};
|
|
76410
76435
|
var configure15 = async (ctx) => {
|
|
@@ -76484,7 +76509,7 @@ var populateCloudflareEnv2 = () => {
|
|
|
76484
76509
|
});
|
|
76485
76510
|
s.stop(`${brandColor("updated")} \`${entrypointPath}\``);
|
|
76486
76511
|
};
|
|
76487
|
-
var
|
|
76512
|
+
var config21 = {
|
|
76488
76513
|
configVersion: 1,
|
|
76489
76514
|
id: "qwik",
|
|
76490
76515
|
frameworkCli: "create-qwik",
|
|
@@ -76493,12 +76518,12 @@ var config20 = {
|
|
|
76493
76518
|
copyFiles: {
|
|
76494
76519
|
path: "./templates"
|
|
76495
76520
|
},
|
|
76496
|
-
generate:
|
|
76521
|
+
generate: generate21,
|
|
76497
76522
|
configure: configure15,
|
|
76498
76523
|
transformPackageJson: async () => ({
|
|
76499
76524
|
scripts: {
|
|
76500
|
-
deploy: `${
|
|
76501
|
-
preview: `${
|
|
76525
|
+
deploy: `${npm16} run build && wrangler pages deploy`,
|
|
76526
|
+
preview: `${npm16} run build && wrangler pages dev`,
|
|
76502
76527
|
"cf-typegen": `wrangler types`
|
|
76503
76528
|
}
|
|
76504
76529
|
}),
|
|
@@ -76506,11 +76531,11 @@ var config20 = {
|
|
|
76506
76531
|
deployScript: "deploy",
|
|
76507
76532
|
previewScript: "preview"
|
|
76508
76533
|
};
|
|
76509
|
-
var
|
|
76534
|
+
var c3_default30 = config21;
|
|
76510
76535
|
|
|
76511
76536
|
// templates/react/c3.ts
|
|
76512
|
-
var { npm:
|
|
76513
|
-
var
|
|
76537
|
+
var { npm: npm17 } = detectPackageManager();
|
|
76538
|
+
var generate22 = async (ctx) => {
|
|
76514
76539
|
const variant = await inputPrompt({
|
|
76515
76540
|
type: "select",
|
|
76516
76541
|
question: "Select a variant:",
|
|
@@ -76539,29 +76564,29 @@ var variantsOptions = [
|
|
|
76539
76564
|
label: "JavaScript + SWC"
|
|
76540
76565
|
}
|
|
76541
76566
|
];
|
|
76542
|
-
var
|
|
76567
|
+
var config22 = {
|
|
76543
76568
|
configVersion: 1,
|
|
76544
76569
|
id: "react",
|
|
76545
76570
|
// React's documentation now recommends using create-vite.
|
|
76546
76571
|
frameworkCli: "create-vite",
|
|
76547
76572
|
displayName: "React",
|
|
76548
76573
|
platform: "pages",
|
|
76549
|
-
generate:
|
|
76574
|
+
generate: generate22,
|
|
76550
76575
|
transformPackageJson: async () => ({
|
|
76551
76576
|
scripts: {
|
|
76552
|
-
deploy: `${
|
|
76553
|
-
preview: `${
|
|
76577
|
+
deploy: `${npm17} run build && wrangler pages deploy ./dist`,
|
|
76578
|
+
preview: `${npm17} run build && wrangler pages dev ./dist`
|
|
76554
76579
|
}
|
|
76555
76580
|
}),
|
|
76556
76581
|
devScript: "dev",
|
|
76557
76582
|
deployScript: "deploy",
|
|
76558
76583
|
previewScript: "preview"
|
|
76559
76584
|
};
|
|
76560
|
-
var
|
|
76585
|
+
var c3_default31 = config22;
|
|
76561
76586
|
|
|
76562
76587
|
// templates/remix/c3.ts
|
|
76563
|
-
var { npm:
|
|
76564
|
-
var
|
|
76588
|
+
var { npm: npm18 } = detectPackageManager();
|
|
76589
|
+
var generate23 = async (ctx) => {
|
|
76565
76590
|
await runFrameworkGenerator(ctx, [
|
|
76566
76591
|
ctx.project.name,
|
|
76567
76592
|
"--template",
|
|
@@ -76584,7 +76609,7 @@ var configure16 = async () => {
|
|
|
76584
76609
|
});
|
|
76585
76610
|
s.stop(`${brandColor("updated")} \`${dim(typeDefsPath)}\``);
|
|
76586
76611
|
};
|
|
76587
|
-
var
|
|
76612
|
+
var config23 = {
|
|
76588
76613
|
configVersion: 1,
|
|
76589
76614
|
id: "remix",
|
|
76590
76615
|
frameworkCli: "create-remix",
|
|
@@ -76593,12 +76618,12 @@ var config22 = {
|
|
|
76593
76618
|
copyFiles: {
|
|
76594
76619
|
path: "./templates"
|
|
76595
76620
|
},
|
|
76596
|
-
generate:
|
|
76621
|
+
generate: generate23,
|
|
76597
76622
|
configure: configure16,
|
|
76598
76623
|
transformPackageJson: async () => ({
|
|
76599
76624
|
scripts: {
|
|
76600
|
-
deploy: `${
|
|
76601
|
-
preview: `${
|
|
76625
|
+
deploy: `${npm18} run build && wrangler pages deploy`,
|
|
76626
|
+
preview: `${npm18} run build && wrangler pages dev`,
|
|
76602
76627
|
"cf-typegen": `wrangler types`
|
|
76603
76628
|
}
|
|
76604
76629
|
}),
|
|
@@ -76606,10 +76631,10 @@ var config22 = {
|
|
|
76606
76631
|
deployScript: "deploy",
|
|
76607
76632
|
previewScript: "preview"
|
|
76608
76633
|
};
|
|
76609
|
-
var
|
|
76634
|
+
var c3_default32 = config23;
|
|
76610
76635
|
|
|
76611
76636
|
// templates/scheduled/c3.ts
|
|
76612
|
-
var
|
|
76637
|
+
var c3_default33 = {
|
|
76613
76638
|
configVersion: 1,
|
|
76614
76639
|
id: "scheduled",
|
|
76615
76640
|
displayName: "Scheduled Worker (Cron Trigger)",
|
|
@@ -76629,8 +76654,8 @@ var c3_default32 = {
|
|
|
76629
76654
|
|
|
76630
76655
|
// templates/solid/c3.ts
|
|
76631
76656
|
var recast11 = __toESM(require_main3());
|
|
76632
|
-
var { npm:
|
|
76633
|
-
var
|
|
76657
|
+
var { npm: npm19 } = detectPackageManager();
|
|
76658
|
+
var generate24 = async (ctx) => {
|
|
76634
76659
|
await runFrameworkGenerator(ctx, ["-p", ctx.project.name, "-s"]);
|
|
76635
76660
|
logRaw("");
|
|
76636
76661
|
};
|
|
@@ -76672,7 +76697,7 @@ var configure17 = async (ctx) => {
|
|
|
76672
76697
|
}
|
|
76673
76698
|
});
|
|
76674
76699
|
};
|
|
76675
|
-
var
|
|
76700
|
+
var config24 = {
|
|
76676
76701
|
configVersion: 1,
|
|
76677
76702
|
id: "solid",
|
|
76678
76703
|
frameworkCli: "create-solid",
|
|
@@ -76681,12 +76706,12 @@ var config23 = {
|
|
|
76681
76706
|
copyFiles: {
|
|
76682
76707
|
path: "./templates"
|
|
76683
76708
|
},
|
|
76684
|
-
generate:
|
|
76709
|
+
generate: generate24,
|
|
76685
76710
|
configure: configure17,
|
|
76686
76711
|
transformPackageJson: async () => ({
|
|
76687
76712
|
scripts: {
|
|
76688
|
-
preview: `${
|
|
76689
|
-
deploy: `${
|
|
76713
|
+
preview: `${npm19} run build && npx wrangler pages dev`,
|
|
76714
|
+
deploy: `${npm19} run build && wrangler pages deploy`
|
|
76690
76715
|
}
|
|
76691
76716
|
}),
|
|
76692
76717
|
compatibilityFlags: ["nodejs_compat"],
|
|
@@ -76694,14 +76719,14 @@ var config23 = {
|
|
|
76694
76719
|
deployScript: "deploy",
|
|
76695
76720
|
previewScript: "preview"
|
|
76696
76721
|
};
|
|
76697
|
-
var
|
|
76722
|
+
var c3_default34 = config24;
|
|
76698
76723
|
|
|
76699
76724
|
// templates/svelte/c3.ts
|
|
76700
76725
|
var import_node_fs3 = require("node:fs");
|
|
76701
76726
|
var import_node_os4 = require("node:os");
|
|
76702
76727
|
var recast12 = __toESM(require_main3());
|
|
76703
|
-
var { npm:
|
|
76704
|
-
var
|
|
76728
|
+
var { npm: npm20 } = detectPackageManager();
|
|
76729
|
+
var generate25 = async (ctx) => {
|
|
76705
76730
|
await runFrameworkGenerator(ctx, ["create", ctx.project.name]);
|
|
76706
76731
|
logRaw("");
|
|
76707
76732
|
};
|
|
@@ -76787,24 +76812,21 @@ var updateTypeDefinitions2 = (ctx) => {
|
|
|
76787
76812
|
}
|
|
76788
76813
|
});
|
|
76789
76814
|
};
|
|
76790
|
-
var
|
|
76815
|
+
var config25 = {
|
|
76791
76816
|
configVersion: 1,
|
|
76792
76817
|
id: "svelte",
|
|
76793
76818
|
frameworkCli: "sv",
|
|
76794
76819
|
displayName: "SvelteKit",
|
|
76795
76820
|
platform: "pages",
|
|
76796
76821
|
copyFiles: {
|
|
76797
|
-
|
|
76798
|
-
js: { path: "./js" },
|
|
76799
|
-
ts: { path: "./ts" }
|
|
76800
|
-
}
|
|
76822
|
+
path: "./templates"
|
|
76801
76823
|
},
|
|
76802
|
-
generate:
|
|
76824
|
+
generate: generate25,
|
|
76803
76825
|
configure: configure18,
|
|
76804
76826
|
transformPackageJson: async (original, ctx) => {
|
|
76805
76827
|
let scripts = {
|
|
76806
|
-
preview: `${
|
|
76807
|
-
deploy: `${
|
|
76828
|
+
preview: `${npm20} run build && wrangler pages dev`,
|
|
76829
|
+
deploy: `${npm20} run build && wrangler pages deploy`
|
|
76808
76830
|
};
|
|
76809
76831
|
if (usesTypescript(ctx)) {
|
|
76810
76832
|
const mv = (0, import_node_os4.platform)() === "win32" ? "move" : "mv";
|
|
@@ -76819,34 +76841,34 @@ var config24 = {
|
|
|
76819
76841
|
deployScript: "deploy",
|
|
76820
76842
|
previewScript: "preview"
|
|
76821
76843
|
};
|
|
76822
|
-
var
|
|
76844
|
+
var c3_default35 = config25;
|
|
76823
76845
|
|
|
76824
76846
|
// templates/vue/c3.ts
|
|
76825
|
-
var { npm:
|
|
76826
|
-
var
|
|
76847
|
+
var { npm: npm21 } = detectPackageManager();
|
|
76848
|
+
var generate26 = async (ctx) => {
|
|
76827
76849
|
await runFrameworkGenerator(ctx, [ctx.project.name]);
|
|
76828
76850
|
};
|
|
76829
|
-
var
|
|
76851
|
+
var config26 = {
|
|
76830
76852
|
configVersion: 1,
|
|
76831
76853
|
id: "vue",
|
|
76832
76854
|
frameworkCli: "create-vue",
|
|
76833
76855
|
displayName: "Vue",
|
|
76834
76856
|
platform: "pages",
|
|
76835
|
-
generate:
|
|
76857
|
+
generate: generate26,
|
|
76836
76858
|
transformPackageJson: async () => ({
|
|
76837
76859
|
scripts: {
|
|
76838
|
-
deploy: `${
|
|
76839
|
-
preview: `${
|
|
76860
|
+
deploy: `${npm21} run build && wrangler pages deploy ./dist`,
|
|
76861
|
+
preview: `${npm21} run build && wrangler pages dev ./dist`
|
|
76840
76862
|
}
|
|
76841
76863
|
}),
|
|
76842
76864
|
devScript: "dev",
|
|
76843
76865
|
deployScript: "deploy",
|
|
76844
76866
|
previewScript: "preview"
|
|
76845
76867
|
};
|
|
76846
|
-
var
|
|
76868
|
+
var c3_default36 = config26;
|
|
76847
76869
|
|
|
76848
76870
|
// ../wrangler/package.json
|
|
76849
|
-
var version2 = "3.
|
|
76871
|
+
var version2 = "3.95.0";
|
|
76850
76872
|
|
|
76851
76873
|
// src/git.ts
|
|
76852
76874
|
var offerGit = async (ctx) => {
|
|
@@ -77122,24 +77144,25 @@ function getFrameworkMap({ experimental = false }) {
|
|
|
77122
77144
|
qwik: c3_default11,
|
|
77123
77145
|
remix: c3_default12,
|
|
77124
77146
|
solid: c3_default13,
|
|
77125
|
-
svelte: c3_default14
|
|
77147
|
+
svelte: c3_default14,
|
|
77148
|
+
vue: c3_default15
|
|
77126
77149
|
};
|
|
77127
77150
|
} else {
|
|
77128
77151
|
return {
|
|
77129
|
-
analog:
|
|
77130
|
-
angular:
|
|
77131
|
-
astro:
|
|
77132
|
-
docusaurus:
|
|
77133
|
-
gatsby:
|
|
77134
|
-
hono:
|
|
77135
|
-
next:
|
|
77136
|
-
nuxt:
|
|
77137
|
-
qwik:
|
|
77138
|
-
react:
|
|
77139
|
-
remix:
|
|
77140
|
-
solid:
|
|
77141
|
-
svelte:
|
|
77142
|
-
vue:
|
|
77152
|
+
analog: c3_default16,
|
|
77153
|
+
angular: c3_default17,
|
|
77154
|
+
astro: c3_default18,
|
|
77155
|
+
docusaurus: c3_default20,
|
|
77156
|
+
gatsby: c3_default21,
|
|
77157
|
+
hono: c3_default24,
|
|
77158
|
+
next: c3_default25,
|
|
77159
|
+
nuxt: c3_default26,
|
|
77160
|
+
qwik: c3_default30,
|
|
77161
|
+
react: c3_default31,
|
|
77162
|
+
remix: c3_default32,
|
|
77163
|
+
solid: c3_default34,
|
|
77164
|
+
svelte: c3_default35,
|
|
77165
|
+
vue: c3_default36
|
|
77143
77166
|
};
|
|
77144
77167
|
}
|
|
77145
77168
|
}
|
|
@@ -77152,13 +77175,13 @@ function getTemplateMap({ experimental = false }) {
|
|
|
77152
77175
|
};
|
|
77153
77176
|
} else {
|
|
77154
77177
|
return {
|
|
77155
|
-
"hello-world":
|
|
77156
|
-
common:
|
|
77157
|
-
scheduled:
|
|
77158
|
-
queues:
|
|
77159
|
-
"hello-world-durable-object":
|
|
77160
|
-
openapi:
|
|
77161
|
-
"pre-existing":
|
|
77178
|
+
"hello-world": c3_default23,
|
|
77179
|
+
common: c3_default19,
|
|
77180
|
+
scheduled: c3_default33,
|
|
77181
|
+
queues: c3_default29,
|
|
77182
|
+
"hello-world-durable-object": c3_default22,
|
|
77183
|
+
openapi: c3_default27,
|
|
77184
|
+
"pre-existing": c3_default28
|
|
77162
77185
|
};
|
|
77163
77186
|
}
|
|
77164
77187
|
}
|
|
@@ -77305,8 +77328,8 @@ var createContext = async (args, prevArgs) => {
|
|
|
77305
77328
|
experimental: args.experimental
|
|
77306
77329
|
});
|
|
77307
77330
|
const frameworkOptions = Object.entries(frameworkMap).map(
|
|
77308
|
-
([key,
|
|
77309
|
-
label:
|
|
77331
|
+
([key, config27]) => ({
|
|
77332
|
+
label: config27.displayName,
|
|
77310
77333
|
value: key
|
|
77311
77334
|
})
|
|
77312
77335
|
);
|
|
@@ -77444,28 +77467,28 @@ var processRemoteTemplate = async (args) => {
|
|
|
77444
77467
|
src = src.replace("https://github.com/", "github:").replace("/tree/main/", "/");
|
|
77445
77468
|
}
|
|
77446
77469
|
const path6 = await downloadRemoteTemplate(src);
|
|
77447
|
-
const
|
|
77448
|
-
validateTemplate(path6,
|
|
77470
|
+
const config27 = inferTemplateConfig(path6);
|
|
77471
|
+
validateTemplate(path6, config27);
|
|
77449
77472
|
updateStatus(`${brandColor("template")} ${dim("cloned and validated")}`);
|
|
77450
77473
|
return {
|
|
77451
77474
|
path: path6,
|
|
77452
|
-
...
|
|
77475
|
+
...config27
|
|
77453
77476
|
};
|
|
77454
77477
|
};
|
|
77455
|
-
var validateTemplate = (path6,
|
|
77456
|
-
if (!
|
|
77478
|
+
var validateTemplate = (path6, config27) => {
|
|
77479
|
+
if (!config27.copyFiles) {
|
|
77457
77480
|
return;
|
|
77458
77481
|
}
|
|
77459
|
-
if (isVariantInfo(
|
|
77460
|
-
validateTemplateSrcDirectory((0, import_path13.resolve)(path6,
|
|
77482
|
+
if (isVariantInfo(config27.copyFiles)) {
|
|
77483
|
+
validateTemplateSrcDirectory((0, import_path13.resolve)(path6, config27.copyFiles.path), config27);
|
|
77461
77484
|
} else {
|
|
77462
|
-
for (const variant of Object.values(
|
|
77463
|
-
validateTemplateSrcDirectory((0, import_path13.resolve)(path6, variant.path),
|
|
77485
|
+
for (const variant of Object.values(config27.copyFiles.variants)) {
|
|
77486
|
+
validateTemplateSrcDirectory((0, import_path13.resolve)(path6, variant.path), config27);
|
|
77464
77487
|
}
|
|
77465
77488
|
}
|
|
77466
77489
|
};
|
|
77467
|
-
var validateTemplateSrcDirectory = (path6,
|
|
77468
|
-
if (
|
|
77490
|
+
var validateTemplateSrcDirectory = (path6, config27) => {
|
|
77491
|
+
if (config27.platform === "workers") {
|
|
77469
77492
|
const wranglerTomlPath = (0, import_path13.resolve)(path6, "wrangler.toml");
|
|
77470
77493
|
if (!(0, import_fs11.existsSync)(wranglerTomlPath)) {
|
|
77471
77494
|
throw new Error(
|
|
@@ -79171,14 +79194,16 @@ var updateWranglerToml = async (ctx) => {
|
|
|
79171
79194
|
}
|
|
79172
79195
|
} else {
|
|
79173
79196
|
newToml.prepend(
|
|
79174
|
-
`compatibility_date = "${await getWorkerdCompatibilityDate()}"
|
|
79197
|
+
`compatibility_date = "${await getWorkerdCompatibilityDate()}"
|
|
79198
|
+
`
|
|
79175
79199
|
);
|
|
79176
79200
|
}
|
|
79177
79201
|
const nameRe = /^name\s*=.*/m;
|
|
79178
79202
|
if (wranglerToml.match(nameRe)) {
|
|
79179
79203
|
newToml.replace(nameRe, `name = "${ctx.project.name}"`);
|
|
79180
79204
|
} else {
|
|
79181
|
-
newToml.prepend(`name = "${ctx.project.name}"
|
|
79205
|
+
newToml.prepend(`name = "${ctx.project.name}"
|
|
79206
|
+
`);
|
|
79182
79207
|
}
|
|
79183
79208
|
writeWranglerToml(ctx, newToml.toString());
|
|
79184
79209
|
};
|
|
@@ -79200,7 +79225,7 @@ var writeWranglerToml = (ctx, contents) => {
|
|
|
79200
79225
|
|
|
79201
79226
|
// src/deploy.ts
|
|
79202
79227
|
var offerToDeploy = async (ctx) => {
|
|
79203
|
-
const { npm:
|
|
79228
|
+
const { npm: npm23 } = detectPackageManager();
|
|
79204
79229
|
startSection(`Deploy with Cloudflare`, `Step 3 of 3`);
|
|
79205
79230
|
if (!await isDeployable(ctx)) {
|
|
79206
79231
|
ctx.args.deploy = false;
|
|
@@ -79211,7 +79236,7 @@ var offerToDeploy = async (ctx) => {
|
|
|
79211
79236
|
);
|
|
79212
79237
|
}
|
|
79213
79238
|
const label = `deploy via \`${quoteShellArgs([
|
|
79214
|
-
|
|
79239
|
+
npm23,
|
|
79215
79240
|
"run",
|
|
79216
79241
|
ctx.template.deployScript ?? "deploy"
|
|
79217
79242
|
])}\``;
|
|
@@ -79241,11 +79266,11 @@ var isDeployable = async (ctx) => {
|
|
|
79241
79266
|
return !hasBinding(wranglerToml);
|
|
79242
79267
|
};
|
|
79243
79268
|
var runDeploy = async (ctx) => {
|
|
79244
|
-
const { npm:
|
|
79269
|
+
const { npm: npm23, name: pm4 } = detectPackageManager();
|
|
79245
79270
|
if (!ctx.account?.id) {
|
|
79246
79271
|
throw new Error("Failed to read Cloudflare account.");
|
|
79247
79272
|
}
|
|
79248
|
-
const baseDeployCmd = [
|
|
79273
|
+
const baseDeployCmd = [npm23, "run", ctx.template.deployScript ?? "deploy"];
|
|
79249
79274
|
const insideGitRepo = await isInsideGitRepo(ctx.project.path);
|
|
79250
79275
|
const deployCmd = [
|
|
79251
79276
|
...baseDeployCmd,
|
|
@@ -79335,16 +79360,22 @@ function createDialog(lines) {
|
|
|
79335
79360
|
""
|
|
79336
79361
|
].join("\n");
|
|
79337
79362
|
}
|
|
79338
|
-
function printWelcomeMessage(version3, telemetryEnabled) {
|
|
79363
|
+
function printWelcomeMessage(version3, telemetryEnabled, args) {
|
|
79339
79364
|
const lines = [
|
|
79340
79365
|
`\u{1F44B} Welcome to create-cloudflare v${version3}!`,
|
|
79341
79366
|
`\u{1F9E1} Let's get started.`
|
|
79342
79367
|
];
|
|
79368
|
+
if (args.experimental) {
|
|
79369
|
+
lines.push("", blue`🧪 Running in experimental mode`);
|
|
79370
|
+
}
|
|
79343
79371
|
if (telemetryEnabled) {
|
|
79372
|
+
if (args.experimental) {
|
|
79373
|
+
lines.push("");
|
|
79374
|
+
}
|
|
79344
79375
|
const telemetryDocsUrl = `https://github.com/cloudflare/workers-sdk/blob/main/packages/create-cloudflare/telemetry.md`;
|
|
79345
79376
|
lines.push(
|
|
79346
79377
|
`\u{1F4CA} Cloudflare collects telemetry about your usage of Create-Cloudflare.`,
|
|
79347
|
-
|
|
79378
|
+
"",
|
|
79348
79379
|
`Learn more at: ${blue.underline(hyperlink(telemetryDocsUrl))}`
|
|
79349
79380
|
);
|
|
79350
79381
|
}
|
|
@@ -79355,14 +79386,14 @@ var printSummary = (ctx) => {
|
|
|
79355
79386
|
const dashboardUrl = ctx.account ? `https://dash.cloudflare.com/?to=/:account/workers/services/view/${ctx.project.name}` : null;
|
|
79356
79387
|
const relativePath = (0, import_path15.relative)(ctx.originalCWD, ctx.project.path);
|
|
79357
79388
|
const cdCommand = relativePath ? `cd ${relativePath}` : null;
|
|
79358
|
-
const { npm:
|
|
79389
|
+
const { npm: npm23 } = detectPackageManager();
|
|
79359
79390
|
const devServerCommand = quoteShellArgs([
|
|
79360
|
-
|
|
79391
|
+
npm23,
|
|
79361
79392
|
"run",
|
|
79362
79393
|
ctx.template.devScript ?? "start"
|
|
79363
79394
|
]);
|
|
79364
79395
|
const deployCommand = quoteShellArgs([
|
|
79365
|
-
|
|
79396
|
+
npm23,
|
|
79366
79397
|
"run",
|
|
79367
79398
|
ctx.template.deployScript ?? "deploy"
|
|
79368
79399
|
]);
|
|
@@ -79730,8 +79761,8 @@ var renderValues = (values) => {
|
|
|
79730
79761
|
};
|
|
79731
79762
|
|
|
79732
79763
|
// src/helpers/retry.ts
|
|
79733
|
-
var retry = async (
|
|
79734
|
-
let { times } =
|
|
79764
|
+
var retry = async (config27, fn) => {
|
|
79765
|
+
let { times } = config27;
|
|
79735
79766
|
let error2 = null;
|
|
79736
79767
|
while (times > 0) {
|
|
79737
79768
|
try {
|
|
@@ -79739,10 +79770,10 @@ var retry = async (config26, fn) => {
|
|
|
79739
79770
|
} catch (e) {
|
|
79740
79771
|
error2 = e;
|
|
79741
79772
|
times--;
|
|
79742
|
-
if (
|
|
79773
|
+
if (config27.exitCondition?.(e)) {
|
|
79743
79774
|
break;
|
|
79744
79775
|
}
|
|
79745
|
-
await sleep(
|
|
79776
|
+
await sleep(config27.sleepMs ?? 1e3);
|
|
79746
79777
|
}
|
|
79747
79778
|
}
|
|
79748
79779
|
throw error2;
|
|
@@ -81139,14 +81170,14 @@ function applyEdits(text, edits) {
|
|
|
81139
81170
|
|
|
81140
81171
|
// src/workers.ts
|
|
81141
81172
|
async function installWorkersTypes(ctx) {
|
|
81142
|
-
const { npm:
|
|
81173
|
+
const { npm: npm23 } = detectPackageManager();
|
|
81143
81174
|
if (!usesTypescript(ctx)) {
|
|
81144
81175
|
return;
|
|
81145
81176
|
}
|
|
81146
81177
|
await installPackages(["@cloudflare/workers-types"], {
|
|
81147
81178
|
dev: true,
|
|
81148
81179
|
startText: "Installing @cloudflare/workers-types",
|
|
81149
|
-
doneText: `${brandColor("installed")} ${dim(`via ${
|
|
81180
|
+
doneText: `${brandColor("installed")} ${dim(`via ${npm23}`)}`
|
|
81150
81181
|
});
|
|
81151
81182
|
await addWorkersTypesToTsConfig(ctx);
|
|
81152
81183
|
}
|
|
@@ -81169,8 +81200,8 @@ async function addWorkersTypesToTsConfig(ctx) {
|
|
|
81169
81200
|
}
|
|
81170
81201
|
const typesEntrypoint = `@cloudflare/workers-types/${entrypointVersion}`;
|
|
81171
81202
|
try {
|
|
81172
|
-
const
|
|
81173
|
-
const currentTypes =
|
|
81203
|
+
const config27 = parse3(tsconfig);
|
|
81204
|
+
const currentTypes = config27.compilerOptions?.types ?? [];
|
|
81174
81205
|
const explicitEntrypoint = currentTypes.some(
|
|
81175
81206
|
(t) => t.match(/@cloudflare\/workers-types\/\d{4}-\d{2}-\d{2}/)
|
|
81176
81207
|
);
|
|
@@ -81200,7 +81231,7 @@ async function addWorkersTypesToTsConfig(ctx) {
|
|
|
81200
81231
|
}
|
|
81201
81232
|
|
|
81202
81233
|
// src/cli.ts
|
|
81203
|
-
var { npm:
|
|
81234
|
+
var { npm: npm22 } = detectPackageManager();
|
|
81204
81235
|
var main = async (argv) => {
|
|
81205
81236
|
const result = await parseArgs(argv);
|
|
81206
81237
|
if (result.type === "unknown") {
|
|
@@ -81236,13 +81267,13 @@ ${result.errorMessage}`);
|
|
|
81236
81267
|
};
|
|
81237
81268
|
var runLatest = async () => {
|
|
81238
81269
|
const args = process.argv.slice(2);
|
|
81239
|
-
if (
|
|
81270
|
+
if (npm22 === "npm") {
|
|
81240
81271
|
args.unshift("--");
|
|
81241
81272
|
}
|
|
81242
|
-
await runCommand([
|
|
81273
|
+
await runCommand([npm22, "create", "cloudflare@latest", ...args]);
|
|
81243
81274
|
};
|
|
81244
81275
|
var runCli = async (args) => {
|
|
81245
|
-
printBanner();
|
|
81276
|
+
printBanner(args);
|
|
81246
81277
|
const ctx = await createContext(args);
|
|
81247
81278
|
await create(ctx);
|
|
81248
81279
|
await configure19(ctx);
|
|
@@ -81296,8 +81327,8 @@ var deploy = async (ctx) => {
|
|
|
81296
81327
|
await maybeOpenBrowser(ctx);
|
|
81297
81328
|
endSection("Done");
|
|
81298
81329
|
};
|
|
81299
|
-
var printBanner = () => {
|
|
81300
|
-
printWelcomeMessage(version, reporter.isEnabled);
|
|
81330
|
+
var printBanner = (args) => {
|
|
81331
|
+
printWelcomeMessage(version, reporter.isEnabled, args);
|
|
81301
81332
|
startSection(`Create an application with Cloudflare`, "Step 1 of 3");
|
|
81302
81333
|
};
|
|
81303
81334
|
main(process.argv).catch((e) => {
|