@wix/create-new 0.0.72 → 0.0.74
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/build/index.js +9 -29
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -92051,16 +92051,13 @@ function parseProviderString(cloudProvider) {
|
|
|
92051
92051
|
});
|
|
92052
92052
|
}
|
|
92053
92053
|
}
|
|
92054
|
-
function parseCloudProviders(
|
|
92054
|
+
function parseCloudProviders() {
|
|
92055
92055
|
const envProviders = process.env.WIX_CLOUD_PROVIDERS;
|
|
92056
92056
|
if (envProviders) {
|
|
92057
|
-
const providers = envProviders.split(",").map((
|
|
92057
|
+
const providers = envProviders.split(",").map((provider) => provider.trim()).filter(Boolean);
|
|
92058
92058
|
return providers.map(parseProviderString);
|
|
92059
92059
|
}
|
|
92060
|
-
|
|
92061
|
-
return [CloudProvider.CLOUD_FLARE];
|
|
92062
|
-
}
|
|
92063
|
-
return [parseProviderString(cloudProvider)];
|
|
92060
|
+
return [CloudProvider.CLOUD_FLARE];
|
|
92064
92061
|
}
|
|
92065
92062
|
async function parseTemplateOptions2(options) {
|
|
92066
92063
|
if (options.siteTemplate) {
|
|
@@ -92132,7 +92129,7 @@ async function parseCommandOptions2(targetParentFolder2, options) {
|
|
|
92132
92129
|
targetParentFolder2,
|
|
92133
92130
|
options
|
|
92134
92131
|
);
|
|
92135
|
-
const cloudProviders = parseCloudProviders(
|
|
92132
|
+
const cloudProviders = parseCloudProviders();
|
|
92136
92133
|
const publish = processPublish({
|
|
92137
92134
|
template,
|
|
92138
92135
|
projectName,
|
|
@@ -92184,19 +92181,6 @@ function validateTemplateParams2(value2) {
|
|
|
92184
92181
|
}
|
|
92185
92182
|
}
|
|
92186
92183
|
|
|
92187
|
-
// ../create-new-packages/headless-command/src/validations/validate-cloud-provider.ts
|
|
92188
|
-
init_esm_shims();
|
|
92189
|
-
var validateCloudProvider = (value2) => {
|
|
92190
|
-
const allowedValues = ["cloudflare", "kubernetes"];
|
|
92191
|
-
const normalizedValue = value2.toLowerCase();
|
|
92192
|
-
if (!allowedValues.includes(normalizedValue)) {
|
|
92193
|
-
throw new Error(
|
|
92194
|
-
`Invalid cloud provider: ${value2}. Allowed values are: ${allowedValues.join(", ")}`
|
|
92195
|
-
);
|
|
92196
|
-
}
|
|
92197
|
-
return normalizedValue;
|
|
92198
|
-
};
|
|
92199
|
-
|
|
92200
92184
|
// ../create-new-packages/headless-command/src/components/ProcessCommand.tsx
|
|
92201
92185
|
init_esm_shims();
|
|
92202
92186
|
var import_react155 = __toESM(require_react(), 1);
|
|
@@ -93994,7 +93978,9 @@ var getHeadlessInitCommand = ({
|
|
|
93994
93978
|
targetParentFolder: targetParentFolder2,
|
|
93995
93979
|
aiAgentName: aiAgentName2
|
|
93996
93980
|
}) => {
|
|
93997
|
-
return createCommand("init").description(
|
|
93981
|
+
return createCommand("init").description(
|
|
93982
|
+
"Initialize a new Wix project in one step. The command signs you in, creates the project, and saves the generated configuration files locally so you can start developing right away."
|
|
93983
|
+
).action(async (_2, command) => {
|
|
93998
93984
|
errorReporter2.setContext("Command Info", {
|
|
93999
93985
|
Arguments: command.args,
|
|
94000
93986
|
Options: command.opts()
|
|
@@ -94134,11 +94120,6 @@ var getHeadlessCommand = ({
|
|
|
94134
94120
|
"--project-name <project-name>",
|
|
94135
94121
|
"The name of your Custom Frontend project"
|
|
94136
94122
|
).argParser(validateProjectName)
|
|
94137
|
-
).addOption(
|
|
94138
|
-
new Option(
|
|
94139
|
-
"--cloud-provider <cloud-provider>",
|
|
94140
|
-
"Cloud provider for deployment"
|
|
94141
|
-
).argParser(validateCloudProvider).hideHelp()
|
|
94142
94123
|
).addOption(
|
|
94143
94124
|
new Option(
|
|
94144
94125
|
"--no-publish",
|
|
@@ -94194,7 +94175,7 @@ import { randomUUID as randomUUID3 } from "node:crypto";
|
|
|
94194
94175
|
var package_default = {
|
|
94195
94176
|
name: "@wix/create-new",
|
|
94196
94177
|
description: "General entry point for creating Wix projects",
|
|
94197
|
-
version: "0.0.
|
|
94178
|
+
version: "0.0.74",
|
|
94198
94179
|
bin: "bin/index.cjs",
|
|
94199
94180
|
devDependencies: {
|
|
94200
94181
|
"@commander-js/extra-typings": "^13.0.0",
|
|
@@ -94316,8 +94297,7 @@ program2.addCommand(
|
|
|
94316
94297
|
cliSessionId,
|
|
94317
94298
|
targetParentFolder,
|
|
94318
94299
|
aiAgentName
|
|
94319
|
-
})
|
|
94320
|
-
{ hidden: true }
|
|
94300
|
+
})
|
|
94321
94301
|
);
|
|
94322
94302
|
try {
|
|
94323
94303
|
await program2.parseAsync();
|