@wix/create-new 0.0.9 → 0.0.10
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 +29 -6
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -86552,6 +86552,7 @@ var Platform;
|
|
|
86552
86552
|
Platform2["EditorSettings"] = "editor:settings";
|
|
86553
86553
|
Platform2["Mobile"] = "mobile";
|
|
86554
86554
|
Platform2["Standards"] = "standards";
|
|
86555
|
+
Platform2["DevPortal"] = "dev-portal";
|
|
86555
86556
|
})(Platform || (Platform = {}));
|
|
86556
86557
|
var ErrorSeverity;
|
|
86557
86558
|
(function(ErrorSeverity2) {
|
|
@@ -90168,6 +90169,7 @@ var ComponentType;
|
|
|
90168
90169
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
90169
90170
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
90170
90171
|
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
90172
|
+
ComponentType3["ECOM_FORMS"] = "ECOM_FORMS";
|
|
90171
90173
|
})(ComponentType || (ComponentType = {}));
|
|
90172
90174
|
var WidgetVertical;
|
|
90173
90175
|
(function(WidgetVertical3) {
|
|
@@ -90886,6 +90888,7 @@ var DecorationType;
|
|
|
90886
90888
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
90887
90889
|
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
90888
90890
|
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
90891
|
+
DecorationType3["FONT_FAMILY"] = "FONT_FAMILY";
|
|
90889
90892
|
})(DecorationType || (DecorationType = {}));
|
|
90890
90893
|
var FontType;
|
|
90891
90894
|
(function(FontType3) {
|
|
@@ -90989,6 +90992,7 @@ var TestEnum;
|
|
|
90989
90992
|
(function(TestEnum3) {
|
|
90990
90993
|
TestEnum3["UNKNOWN_TEST_ENUM"] = "UNKNOWN_TEST_ENUM";
|
|
90991
90994
|
TestEnum3["FIRST_TEST"] = "FIRST_TEST";
|
|
90995
|
+
TestEnum3["SECOND_TEST"] = "SECOND_TEST";
|
|
90992
90996
|
})(TestEnum || (TestEnum = {}));
|
|
90993
90997
|
var CalendarType;
|
|
90994
90998
|
(function(CalendarType3) {
|
|
@@ -92461,9 +92465,12 @@ var TimeConstraintType;
|
|
|
92461
92465
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
92462
92466
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
92463
92467
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
92468
|
+
TimeConstraintType3["TODAY"] = "TODAY";
|
|
92464
92469
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
92465
92470
|
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
92466
92471
|
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
92472
|
+
TimeConstraintType3["LAST_MONTHS"] = "LAST_MONTHS";
|
|
92473
|
+
TimeConstraintType3["NEXT_MONTHS"] = "NEXT_MONTHS";
|
|
92467
92474
|
})(TimeConstraintType || (TimeConstraintType = {}));
|
|
92468
92475
|
var ValueConstraintType;
|
|
92469
92476
|
(function(ValueConstraintType3) {
|
|
@@ -92508,6 +92515,7 @@ var AssetType;
|
|
|
92508
92515
|
AssetType3["RICOS"] = "RICOS";
|
|
92509
92516
|
AssetType3["DOC"] = "DOC";
|
|
92510
92517
|
AssetType3["SLIDE"] = "SLIDE";
|
|
92518
|
+
AssetType3["WIDGET"] = "WIDGET";
|
|
92511
92519
|
})(AssetType || (AssetType = {}));
|
|
92512
92520
|
var SaleType;
|
|
92513
92521
|
(function(SaleType2) {
|
|
@@ -92952,6 +92960,7 @@ var ComponentType2;
|
|
|
92952
92960
|
ComponentType3["WIX_AI_GATEWAY_CALLBACK"] = "WIX_AI_GATEWAY_CALLBACK";
|
|
92953
92961
|
ComponentType3["URL_MAPPER_PROVIDER"] = "URL_MAPPER_PROVIDER";
|
|
92954
92962
|
ComponentType3["PROVIDER_SUPPRESSION_SERVICE_PLUGIN"] = "PROVIDER_SUPPRESSION_SERVICE_PLUGIN";
|
|
92963
|
+
ComponentType3["ECOM_FORMS"] = "ECOM_FORMS";
|
|
92955
92964
|
})(ComponentType2 || (ComponentType2 = {}));
|
|
92956
92965
|
var WidgetVertical2;
|
|
92957
92966
|
(function(WidgetVertical3) {
|
|
@@ -93670,6 +93679,7 @@ var DecorationType2;
|
|
|
93670
93679
|
DecorationType3["STRIKETHROUGH"] = "STRIKETHROUGH";
|
|
93671
93680
|
DecorationType3["SUPERSCRIPT"] = "SUPERSCRIPT";
|
|
93672
93681
|
DecorationType3["SUBSCRIPT"] = "SUBSCRIPT";
|
|
93682
|
+
DecorationType3["FONT_FAMILY"] = "FONT_FAMILY";
|
|
93673
93683
|
})(DecorationType2 || (DecorationType2 = {}));
|
|
93674
93684
|
var FontType2;
|
|
93675
93685
|
(function(FontType3) {
|
|
@@ -93773,6 +93783,7 @@ var TestEnum2;
|
|
|
93773
93783
|
(function(TestEnum3) {
|
|
93774
93784
|
TestEnum3["UNKNOWN_TEST_ENUM"] = "UNKNOWN_TEST_ENUM";
|
|
93775
93785
|
TestEnum3["FIRST_TEST"] = "FIRST_TEST";
|
|
93786
|
+
TestEnum3["SECOND_TEST"] = "SECOND_TEST";
|
|
93776
93787
|
})(TestEnum2 || (TestEnum2 = {}));
|
|
93777
93788
|
var CalendarType2;
|
|
93778
93789
|
(function(CalendarType3) {
|
|
@@ -95245,9 +95256,12 @@ var TimeConstraintType2;
|
|
|
95245
95256
|
TimeConstraintType3["LAST_DAYS"] = "LAST_DAYS";
|
|
95246
95257
|
TimeConstraintType3["NEXT_DAYS"] = "NEXT_DAYS";
|
|
95247
95258
|
TimeConstraintType3["BETWEEN"] = "BETWEEN";
|
|
95259
|
+
TimeConstraintType3["TODAY"] = "TODAY";
|
|
95248
95260
|
TimeConstraintType3["THIS_MONTH"] = "THIS_MONTH";
|
|
95249
95261
|
TimeConstraintType3["ON_OR_AFTER"] = "ON_OR_AFTER";
|
|
95250
95262
|
TimeConstraintType3["ON_OR_BEFORE"] = "ON_OR_BEFORE";
|
|
95263
|
+
TimeConstraintType3["LAST_MONTHS"] = "LAST_MONTHS";
|
|
95264
|
+
TimeConstraintType3["NEXT_MONTHS"] = "NEXT_MONTHS";
|
|
95251
95265
|
})(TimeConstraintType2 || (TimeConstraintType2 = {}));
|
|
95252
95266
|
var ValueConstraintType2;
|
|
95253
95267
|
(function(ValueConstraintType3) {
|
|
@@ -95292,6 +95306,7 @@ var AssetType2;
|
|
|
95292
95306
|
AssetType3["RICOS"] = "RICOS";
|
|
95293
95307
|
AssetType3["DOC"] = "DOC";
|
|
95294
95308
|
AssetType3["SLIDE"] = "SLIDE";
|
|
95309
|
+
AssetType3["WIDGET"] = "WIDGET";
|
|
95295
95310
|
})(AssetType2 || (AssetType2 = {}));
|
|
95296
95311
|
var OpenConsentIn2;
|
|
95297
95312
|
(function(OpenConsentIn3) {
|
|
@@ -100298,16 +100313,17 @@ init_esm_shims();
|
|
|
100298
100313
|
import { resolve as resolve5, join as join14 } from "node:path";
|
|
100299
100314
|
import { copyFile as copyFile2, mkdir as mkdir2 } from "node:fs/promises";
|
|
100300
100315
|
async function assetsGenerator(opts) {
|
|
100301
|
-
const { templateRoot, projectFolder, outputPath } = opts;
|
|
100316
|
+
const { templateRoot, projectFolder, outputPath, assetsPrefix } = opts;
|
|
100302
100317
|
const assets = join14(templateRoot, "assets");
|
|
100303
100318
|
if (await pathExists(assets)) {
|
|
100304
|
-
const publicDir = join14(projectFolder,
|
|
100319
|
+
const publicDir = join14(projectFolder, outputPath ?? "");
|
|
100305
100320
|
const publicFiles = await getFiles(assets);
|
|
100306
100321
|
await mkdir2(publicDir, { recursive: true });
|
|
100307
100322
|
await Promise.all(
|
|
100308
100323
|
publicFiles.map(async (file) => {
|
|
100324
|
+
const outputName = assetsPrefix ? `${assetsPrefix}-${file}` : file;
|
|
100309
100325
|
const from = resolve5(assets, file);
|
|
100310
|
-
const to = resolve5(publicDir,
|
|
100326
|
+
const to = resolve5(publicDir, outputName);
|
|
100311
100327
|
await copyFile2(from, to);
|
|
100312
100328
|
})
|
|
100313
100329
|
);
|
|
@@ -100316,7 +100332,13 @@ async function assetsGenerator(opts) {
|
|
|
100316
100332
|
|
|
100317
100333
|
// ../gena/src/component-generator.ts
|
|
100318
100334
|
async function componentGenerator(opts) {
|
|
100319
|
-
const {
|
|
100335
|
+
const {
|
|
100336
|
+
template,
|
|
100337
|
+
projectFolder,
|
|
100338
|
+
assetsOutputPath,
|
|
100339
|
+
assetsPrefix,
|
|
100340
|
+
...generatorOpts
|
|
100341
|
+
} = opts;
|
|
100320
100342
|
const newFiles = await generator({
|
|
100321
100343
|
...generatorOpts,
|
|
100322
100344
|
template: join15(template, "files")
|
|
@@ -100324,7 +100346,8 @@ async function componentGenerator(opts) {
|
|
|
100324
100346
|
await assetsGenerator({
|
|
100325
100347
|
templateRoot: template,
|
|
100326
100348
|
projectFolder,
|
|
100327
|
-
outputPath: assetsOutputPath
|
|
100349
|
+
outputPath: assetsOutputPath,
|
|
100350
|
+
assetsPrefix
|
|
100328
100351
|
});
|
|
100329
100352
|
const newDependencies = await dependenciesUpdater({
|
|
100330
100353
|
projectFolder,
|
|
@@ -111970,7 +111993,7 @@ var getHeadlessCommand = ({
|
|
|
111970
111993
|
var package_default = {
|
|
111971
111994
|
name: "@wix/create-new",
|
|
111972
111995
|
description: "General entry point for creating Wix projects",
|
|
111973
|
-
version: "0.0.
|
|
111996
|
+
version: "0.0.10",
|
|
111974
111997
|
bin: "bin/index.cjs",
|
|
111975
111998
|
devDependencies: {
|
|
111976
111999
|
"@commander-js/extra-typings": "^13.0.0",
|