@yamato-daiwa/automation 0.4.1 → 0.5.0-alpha.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/EntryPoint.js +582 -127
- package/README.md +0 -3
- package/package.json +30 -30
package/EntryPoint.js
CHANGED
|
@@ -170,6 +170,7 @@ const AudiosProcessor_1 = __importDefault(__webpack_require__(/*! @AudiosProcess
|
|
|
170
170
|
const PlainCopier_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/PlainCopying/PlainCopier */ "./ProjectBuilding/PlainCopying/PlainCopier.ts"));
|
|
171
171
|
const LocalDevelopmentServerOrchestrator_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/Subtasks/LocalDevelopmentServerOrchestration/LocalDevelopmentServerOrchestrator */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/Subtasks/LocalDevelopmentServerOrchestration/LocalDevelopmentServerOrchestrator.ts"));
|
|
172
172
|
const BrowserLiveReloader_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserLiveReloader */ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloader.ts"));
|
|
173
|
+
const OutputPackageJSON_Generator_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_Generator */ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_Generator.ts"));
|
|
173
174
|
/* --- Applied utils ------------------------------------------------------------------------------------------------ */
|
|
174
175
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
175
176
|
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/FilesWatching/Watchers/FilesMasterWatcher */ "./ProjectBuilding/FilesWatching/Watchers/FilesMasterWatcher.ts"));
|
|
@@ -214,6 +215,7 @@ class ProjectBuilder {
|
|
|
214
215
|
VideosProcessor_1.default.provideVideosProcessingIfMust(masterConfigRepresentative),
|
|
215
216
|
MarkupProcessor_1.default.provideMarkupProcessingIfMust(masterConfigRepresentative),
|
|
216
217
|
BrowserLiveReloader_1.default.provideBrowserLiveReloadingIfMust(masterConfigRepresentative),
|
|
218
|
+
OutputPackageJSON_Generator_1.default.generateIfMust(masterConfigRepresentative),
|
|
217
219
|
gulp_1.default.parallel([
|
|
218
220
|
FilesMasterWatcher_1.default.watchIfMust(masterConfigRepresentative),
|
|
219
221
|
LocalDevelopmentServerOrchestrator_1.default.orchestrateIfMust(masterConfigRepresentative)
|
|
@@ -1131,7 +1133,7 @@ class ImagesProcessor extends GulpStreamsBasedAssetsProcessor_1.default {
|
|
|
1131
1133
|
super({
|
|
1132
1134
|
projectBuildingMasterConfigRepresentative,
|
|
1133
1135
|
associatedAssetsProcessingSettingsRepresentative: imagesProcessingSettingsRepresentative,
|
|
1134
|
-
taskTitleForLogging: "Images
|
|
1136
|
+
taskTitleForLogging: "Images Processing",
|
|
1135
1137
|
waitingForSubsequentFilesWillSavedPeriod__seconds: imagesProcessingSettingsRepresentative.assetsProcessingCommonSettings.
|
|
1136
1138
|
periodBetweenFileUpdatingAndRebuildingStarting__seconds
|
|
1137
1139
|
});
|
|
@@ -2206,12 +2208,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
2206
2208
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2207
2209
|
};
|
|
2208
2210
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2209
|
-
|
|
2211
|
+
const mustProvideIncrementalProjectBuilding_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/mustProvideIncrementalProjectBuilding */ "./ProjectBuilding/Common/Restrictions/mustProvideIncrementalProjectBuilding.ts"));
|
|
2212
|
+
/* ─── Raw Valid Settings ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2210
2213
|
const ProjectBuildingTasksIDsForConfigFile_1 = __webpack_require__(/*! @ProjectBuilding:Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile */ "./ProjectBuilding/Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile.ts");
|
|
2211
|
-
/*
|
|
2214
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2212
2215
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
2213
2216
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
2214
|
-
const mustProvideIncrementalProjectBuilding_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/mustProvideIncrementalProjectBuilding */ "./ProjectBuilding/Common/Restrictions/mustProvideIncrementalProjectBuilding.ts"));
|
|
2215
2217
|
class ProjectBuildingCommonSettingsNormalizer {
|
|
2216
2218
|
static normalize({ commonSettings__fromFile__rawValid, consumingProjectRootDirectoryAbsolutePath, projectBuildingMode, actualSelectiveExecutionID, actualSelectiveExecution }) {
|
|
2217
2219
|
const consumingProjectRootDirectoryAbsolutePath__forwardSlashes = es_extensions_nodejs_1.ImprovedPath.
|
|
@@ -2247,6 +2249,7 @@ class ProjectBuildingCommonSettingsNormalizer {
|
|
|
2247
2249
|
}
|
|
2248
2250
|
} : null,
|
|
2249
2251
|
browserLiveReloadingSetupID: actualSelectiveExecution?.browserLiveReloadingSetupID,
|
|
2252
|
+
mustGenerateOutputPackageJSON: actualSelectiveExecution?.outputPackageJSON_Generating === true,
|
|
2250
2253
|
actualPublicDirectoryAbsolutePath
|
|
2251
2254
|
};
|
|
2252
2255
|
}
|
|
@@ -2392,6 +2395,7 @@ var ProjectBuildingTasksIDsForConfigFile;
|
|
|
2392
2395
|
ProjectBuildingTasksIDsForConfigFile["browserLiveReloading"] = "browserLiveReloading";
|
|
2393
2396
|
ProjectBuildingTasksIDsForConfigFile["plainCopying"] = "plainCopying";
|
|
2394
2397
|
ProjectBuildingTasksIDsForConfigFile["filesWatching"] = "filesWatching";
|
|
2398
|
+
ProjectBuildingTasksIDsForConfigFile["outputPackageJSON_Generating"] = "outputPackageJSON_Generating";
|
|
2395
2399
|
})(ProjectBuildingTasksIDsForConfigFile || (exports.ProjectBuildingTasksIDsForConfigFile = ProjectBuildingTasksIDsForConfigFile = {}));
|
|
2396
2400
|
|
|
2397
2401
|
|
|
@@ -2408,10 +2412,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
2408
2412
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2409
2413
|
};
|
|
2410
2414
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2411
|
-
/*
|
|
2415
|
+
/* ─── Restrictions ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2412
2416
|
const ConsumingProjectBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes.ts"));
|
|
2413
2417
|
const ProjectBuildingTasksIDsForConfigFile_1 = __webpack_require__(/*! @ProjectBuilding:Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile */ "./ProjectBuilding/Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile.ts");
|
|
2414
|
-
/*
|
|
2418
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2415
2419
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
2416
2420
|
var ProjectBuildingCommonSettings__FromFile__RawValid;
|
|
2417
2421
|
(function (ProjectBuildingCommonSettings__FromFile__RawValid) {
|
|
@@ -2455,6 +2459,11 @@ var ProjectBuildingCommonSettings__FromFile__RawValid;
|
|
|
2455
2459
|
newName: "browserLiveReloadingSetupID",
|
|
2456
2460
|
type: String,
|
|
2457
2461
|
required: false
|
|
2462
|
+
},
|
|
2463
|
+
[projectBuildingCommonSettingsLocalization.selectiveExecutions.outputPackageJSON_Generating.KEY]: {
|
|
2464
|
+
newName: "outputPackageJSON_Generating",
|
|
2465
|
+
type: Boolean,
|
|
2466
|
+
required: false
|
|
2458
2467
|
}
|
|
2459
2468
|
}
|
|
2460
2469
|
}
|
|
@@ -3300,8 +3309,7 @@ const SourceCodeProcessingConfigRepresentative_1 = __importDefault(__webpack_req
|
|
|
3300
3309
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
3301
3310
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
3302
3311
|
class GulpStreamBasedSourceCodeProcessingConfigRepresentative extends SourceCodeProcessingConfigRepresentative_1.default {
|
|
3303
|
-
|
|
3304
|
-
/* ━━━ Static helpers ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
3312
|
+
/* ━━━ Static Helpers ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
3305
3313
|
static computeRelevantOutputDirectoryAbsolutePathForTargetSourceFile(targetSourceFileAbsolutePath, relevantEntryPointsGroupSettings) {
|
|
3306
3314
|
let outputDirectoryAbsolutePathForTargetSourceFile = relevantEntryPointsGroupSettings.isSingeEntryPointGroup ?
|
|
3307
3315
|
relevantEntryPointsGroupSettings.outputFilesTopDirectoryAbsolutePath :
|
|
@@ -3377,15 +3385,6 @@ class GulpStreamBasedSourceCodeProcessingConfigRepresentative extends SourceCode
|
|
|
3377
3385
|
get hasAtLeastOneRelevantEntryPointsGroup() {
|
|
3378
3386
|
return this.relevantEntryPointsGroupsSettings.size > 0;
|
|
3379
3387
|
}
|
|
3380
|
-
get relevantEntryPointsSourceFilesAbsolutePaths() {
|
|
3381
|
-
if (this.cachedRelevantEntryPointsSourceFilesAbsolutePaths.length > 0) {
|
|
3382
|
-
return this.cachedRelevantEntryPointsSourceFilesAbsolutePaths;
|
|
3383
|
-
}
|
|
3384
|
-
this.relevantEntryPointsGroupsSettings.forEach((entryPointsGroupNormalizedSettings) => {
|
|
3385
|
-
this.cachedRelevantEntryPointsSourceFilesAbsolutePaths.push(...es_extensions_nodejs_1.ImprovedGlob.getFilesAbsolutePathsSynchronously(entryPointsGroupNormalizedSettings.sourceFilesGlobSelectors));
|
|
3386
|
-
});
|
|
3387
|
-
return this.cachedRelevantEntryPointsSourceFilesAbsolutePaths;
|
|
3388
|
-
}
|
|
3389
3388
|
}
|
|
3390
3389
|
exports["default"] = GulpStreamBasedSourceCodeProcessingConfigRepresentative;
|
|
3391
3390
|
|
|
@@ -3456,6 +3455,7 @@ const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "
|
|
|
3456
3455
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
3457
3456
|
class SourceCodeProcessingConfigRepresentative {
|
|
3458
3457
|
projectBuildingMasterConfigRepresentative;
|
|
3458
|
+
cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths;
|
|
3459
3459
|
constructor(projectBuildingMasterConfigRepresentative) {
|
|
3460
3460
|
this.projectBuildingMasterConfigRepresentative = projectBuildingMasterConfigRepresentative;
|
|
3461
3461
|
}
|
|
@@ -3477,15 +3477,12 @@ class SourceCodeProcessingConfigRepresentative {
|
|
|
3477
3477
|
], { alwaysForwardSlashSeparators: true });
|
|
3478
3478
|
}
|
|
3479
3479
|
return Array.from(this.relevantEntryPointsGroupsSettings.values()).
|
|
3480
|
-
some((entryPointGroupSettings) =>
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
}
|
|
3484
|
-
return es_extensions_nodejs_1.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({
|
|
3480
|
+
some((entryPointGroupSettings) => (entryPointGroupSettings.isSingeEntryPointGroup ?
|
|
3481
|
+
targetFileAbsolutePath === entryPointGroupSettings.sourceFilesGlobSelectors[0] :
|
|
3482
|
+
es_extensions_nodejs_1.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({
|
|
3485
3483
|
filePath: targetFileAbsolutePath,
|
|
3486
3484
|
globSelectors: entryPointGroupSettings.sourceFilesGlobSelectors
|
|
3487
|
-
});
|
|
3488
|
-
});
|
|
3485
|
+
})));
|
|
3489
3486
|
}
|
|
3490
3487
|
get actualOutputFilesGlobSelectors() {
|
|
3491
3488
|
return Array.from(this.relevantEntryPointsGroupsSettings.values()).map((entryPointsGroupNormalizedSettings) => es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
@@ -3494,6 +3491,11 @@ class SourceCodeProcessingConfigRepresentative {
|
|
|
3494
3491
|
fileNamesExtensions: this.sourceCodeProcessingCommonSettings.supportedOutputFileNameExtensionsWithoutLeadingDots
|
|
3495
3492
|
}));
|
|
3496
3493
|
}
|
|
3494
|
+
get initialRelevantEntryPointsSourceFilesAbsolutePaths() {
|
|
3495
|
+
return this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths ?? (this.cachedInitialRelevantEntryPointsSourceFilesAbsolutePaths =
|
|
3496
|
+
Array.from(this.relevantEntryPointsGroupsSettings.values()).
|
|
3497
|
+
flatMap((entryPointsGroupNormalizedSettings) => es_extensions_nodejs_1.ImprovedGlob.getFilesAbsolutePathsSynchronously(entryPointsGroupNormalizedSettings.sourceFilesGlobSelectors)));
|
|
3498
|
+
}
|
|
3497
3499
|
}
|
|
3498
3500
|
exports["default"] = SourceCodeProcessingConfigRepresentative;
|
|
3499
3501
|
|
|
@@ -4413,11 +4415,12 @@ const ChokidarSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdParty
|
|
|
4413
4415
|
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
4414
4416
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
4415
4417
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
4418
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4416
4419
|
class FilesMasterWatcher {
|
|
4417
4420
|
static passiveWatchers = new Set();
|
|
4418
4421
|
static watchIfMust(projectBuildingMasterConfigRepresentative) {
|
|
4419
4422
|
const filesWatchingSettingsRepresentative = projectBuildingMasterConfigRepresentative.filesWatchingSettingsRepresentative;
|
|
4420
|
-
if (!filesWatchingSettingsRepresentative.mustProvideFilesWatching) {
|
|
4423
|
+
if ((0, es_extensions_1.isUndefined)(filesWatchingSettingsRepresentative) || !filesWatchingSettingsRepresentative.mustProvideFilesWatching) {
|
|
4421
4424
|
return (callback) => { callback(); };
|
|
4422
4425
|
}
|
|
4423
4426
|
return (callback) => {
|
|
@@ -4504,6 +4507,304 @@ class FilesPassiveWatcher {
|
|
|
4504
4507
|
exports["default"] = FilesPassiveWatcher;
|
|
4505
4508
|
|
|
4506
4509
|
|
|
4510
|
+
/***/ }),
|
|
4511
|
+
|
|
4512
|
+
/***/ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsNormalizer.ts":
|
|
4513
|
+
/*!********************************************************************************************************!*\
|
|
4514
|
+
!*** ./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsNormalizer.ts ***!
|
|
4515
|
+
\********************************************************************************************************/
|
|
4516
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4517
|
+
|
|
4518
|
+
|
|
4519
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4520
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4521
|
+
};
|
|
4522
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4523
|
+
/* ─── Default Settings ───────────────────────────────────────────────────────────────────────────────────────────── */
|
|
4524
|
+
const OutputPackageJSON_GeneratingSettings__Default_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__Default */ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__Default.ts"));
|
|
4525
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
4526
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4527
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
4528
|
+
class OutputPackageJSON_GeneratingSettingsNormalizer {
|
|
4529
|
+
static normalizeIfThereAreActualOnes({ outputPackageJSON_GeneratingSettings__fromFile__rawValid, commonSettings__normalized }) {
|
|
4530
|
+
if ((0, es_extensions_1.isUndefined)(outputPackageJSON_GeneratingSettings__fromFile__rawValid)) {
|
|
4531
|
+
return null;
|
|
4532
|
+
}
|
|
4533
|
+
if ((0, es_extensions_1.isNotUndefined)(commonSettings__normalized.tasksAndSourceFilesSelection) &&
|
|
4534
|
+
!commonSettings__normalized.mustGenerateOutputPackageJSON) {
|
|
4535
|
+
return null;
|
|
4536
|
+
}
|
|
4537
|
+
const outputPackageJSON_GeneratingSettingsActualForCurrentProjectBuildingMode__fromFile__rawValid = outputPackageJSON_GeneratingSettings__fromFile__rawValid.
|
|
4538
|
+
buildingModeDependent[commonSettings__normalized.projectBuildingMode];
|
|
4539
|
+
if ((0, es_extensions_1.isUndefined)(outputPackageJSON_GeneratingSettingsActualForCurrentProjectBuildingMode__fromFile__rawValid)) {
|
|
4540
|
+
return null;
|
|
4541
|
+
}
|
|
4542
|
+
const extractionFromPackageJSON_OfConsumingProject = es_extensions_nodejs_1.ObjectDataFilesProcessor.processFile({
|
|
4543
|
+
filePath: es_extensions_nodejs_1.ImprovedPath.joinPathSegments([commonSettings__normalized.projectRootDirectoryAbsolutePath, "package.json"], { alwaysForwardSlashSeparators: true }),
|
|
4544
|
+
validDataSpecification: {
|
|
4545
|
+
subtype: es_extensions_1.RawObjectDataProcessor.ObjectSubtypes.fixedKeyAndValuePairsObject,
|
|
4546
|
+
nameForLogging: "PackageJSON_OfConsumingProject",
|
|
4547
|
+
properties: {
|
|
4548
|
+
scripts: {
|
|
4549
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
4550
|
+
defaultValue: {},
|
|
4551
|
+
value: {
|
|
4552
|
+
type: String
|
|
4553
|
+
}
|
|
4554
|
+
},
|
|
4555
|
+
dependencies: {
|
|
4556
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
4557
|
+
defaultValue: {},
|
|
4558
|
+
value: {
|
|
4559
|
+
type: String
|
|
4560
|
+
}
|
|
4561
|
+
},
|
|
4562
|
+
devDependencies: {
|
|
4563
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
4564
|
+
defaultValue: {},
|
|
4565
|
+
value: {
|
|
4566
|
+
type: String
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4570
|
+
},
|
|
4571
|
+
synchronously: true
|
|
4572
|
+
});
|
|
4573
|
+
return {
|
|
4574
|
+
dependencies: Object.entries(extractionFromPackageJSON_OfConsumingProject.dependencies).reduce((packagesIDsAndVersionsCorrespondence, [packageID, packageVersion]) => {
|
|
4575
|
+
if (outputPackageJSON_GeneratingSettings__fromFile__rawValid.inheritedDependencies?.
|
|
4576
|
+
includes(packageID) === true) {
|
|
4577
|
+
packagesIDsAndVersionsCorrespondence[packageID] = packageVersion;
|
|
4578
|
+
}
|
|
4579
|
+
return packagesIDsAndVersionsCorrespondence;
|
|
4580
|
+
}, {}),
|
|
4581
|
+
developmentDependencies: Object.entries(extractionFromPackageJSON_OfConsumingProject.devDependencies).reduce((packagesIDsAndVersionsCorrespondence, [packageID, packageVersion]) => {
|
|
4582
|
+
if (outputPackageJSON_GeneratingSettings__fromFile__rawValid.inheritedDevelopmentDependencies?.
|
|
4583
|
+
includes(packageID) === true) {
|
|
4584
|
+
packagesIDsAndVersionsCorrespondence[packageID] = packageVersion;
|
|
4585
|
+
}
|
|
4586
|
+
return packagesIDsAndVersionsCorrespondence;
|
|
4587
|
+
}, {}),
|
|
4588
|
+
scripts: Object.entries(extractionFromPackageJSON_OfConsumingProject.devDependencies).reduce((npmScript, [command, script]) => {
|
|
4589
|
+
if (outputPackageJSON_GeneratingSettings__fromFile__rawValid.inheritedNPM_Scripts?.
|
|
4590
|
+
includes(command) === true) {
|
|
4591
|
+
npmScript[command] = script;
|
|
4592
|
+
}
|
|
4593
|
+
return npmScript;
|
|
4594
|
+
}, outputPackageJSON_GeneratingSettings__fromFile__rawValid.newNPM_Scripts ?? {}),
|
|
4595
|
+
indentString: outputPackageJSON_GeneratingSettingsActualForCurrentProjectBuildingMode__fromFile__rawValid.indentString ??
|
|
4596
|
+
outputPackageJSON_GeneratingSettings__fromFile__rawValid.indentString ??
|
|
4597
|
+
OutputPackageJSON_GeneratingSettings__Default_1.default.indentString,
|
|
4598
|
+
linesSeparator: outputPackageJSON_GeneratingSettingsActualForCurrentProjectBuildingMode__fromFile__rawValid.linesSeparator ??
|
|
4599
|
+
outputPackageJSON_GeneratingSettings__fromFile__rawValid.linesSeparator ??
|
|
4600
|
+
OutputPackageJSON_GeneratingSettings__Default_1.default.linesSeparator,
|
|
4601
|
+
outputFileAbsolutePath: es_extensions_nodejs_1.ImprovedPath.joinPathSegments([
|
|
4602
|
+
commonSettings__normalized.projectRootDirectoryAbsolutePath,
|
|
4603
|
+
outputPackageJSON_GeneratingSettingsActualForCurrentProjectBuildingMode__fromFile__rawValid.
|
|
4604
|
+
outputDirectoryRelativePath,
|
|
4605
|
+
"package.json"
|
|
4606
|
+
], { alwaysForwardSlashSeparators: true })
|
|
4607
|
+
};
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
4610
|
+
exports["default"] = OutputPackageJSON_GeneratingSettingsNormalizer;
|
|
4611
|
+
|
|
4612
|
+
|
|
4613
|
+
/***/ }),
|
|
4614
|
+
|
|
4615
|
+
/***/ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsRepresentative.ts":
|
|
4616
|
+
/*!************************************************************************************************************!*\
|
|
4617
|
+
!*** ./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsRepresentative.ts ***!
|
|
4618
|
+
\************************************************************************************************************/
|
|
4619
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
4620
|
+
|
|
4621
|
+
|
|
4622
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4623
|
+
class OutputPackageJSON_GeneratingSettingsRepresentative {
|
|
4624
|
+
outputPackageJSON_GeneratingSettings;
|
|
4625
|
+
constructor(outputPackageJSON_GeneratingSettings) {
|
|
4626
|
+
this.outputPackageJSON_GeneratingSettings = outputPackageJSON_GeneratingSettings;
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
exports["default"] = OutputPackageJSON_GeneratingSettingsRepresentative;
|
|
4630
|
+
|
|
4631
|
+
|
|
4632
|
+
/***/ }),
|
|
4633
|
+
|
|
4634
|
+
/***/ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__Default.ts":
|
|
4635
|
+
/*!*******************************************************************************************************!*\
|
|
4636
|
+
!*** ./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__Default.ts ***!
|
|
4637
|
+
\*******************************************************************************************************/
|
|
4638
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4639
|
+
|
|
4640
|
+
|
|
4641
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4642
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4643
|
+
};
|
|
4644
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4645
|
+
const os_1 = __importDefault(__webpack_require__(/*! os */ "os"));
|
|
4646
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4647
|
+
const OutputPackageJSON_GeneratingSettings__Normalized = {
|
|
4648
|
+
indentString: " ",
|
|
4649
|
+
linesSeparator: os_1.default.EOL === "\n" ? es_extensions_1.LineSeparators.lineFeed : es_extensions_1.LineSeparators.carriageReturnAndLineFeed
|
|
4650
|
+
};
|
|
4651
|
+
exports["default"] = OutputPackageJSON_GeneratingSettings__Normalized;
|
|
4652
|
+
|
|
4653
|
+
|
|
4654
|
+
/***/ }),
|
|
4655
|
+
|
|
4656
|
+
/***/ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__FromFile__RawValid.ts":
|
|
4657
|
+
/*!******************************************************************************************************************!*\
|
|
4658
|
+
!*** ./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__FromFile__RawValid.ts ***!
|
|
4659
|
+
\******************************************************************************************************************/
|
|
4660
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4661
|
+
|
|
4662
|
+
|
|
4663
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4664
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4665
|
+
};
|
|
4666
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4667
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4668
|
+
const ConsumingProjectBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes.ts"));
|
|
4669
|
+
var OutputPackageJSON_GeneratingSettings__FromFile__RawValid;
|
|
4670
|
+
(function (OutputPackageJSON_GeneratingSettings__FromFile__RawValid) {
|
|
4671
|
+
function getLocalizedPropertiesSpecification({ outputPackageJSON_GeneratingSettingsLocalization, consumingProjectLocalizedPreDefinedBuildingModes }) {
|
|
4672
|
+
return {
|
|
4673
|
+
[outputPackageJSON_GeneratingSettingsLocalization.inheritedDependencies.KEY]: {
|
|
4674
|
+
newName: "inheritedDependencies",
|
|
4675
|
+
type: Array,
|
|
4676
|
+
required: false,
|
|
4677
|
+
minimalElementsCount: 1,
|
|
4678
|
+
element: {
|
|
4679
|
+
type: String,
|
|
4680
|
+
minimalCharactersCount: 1
|
|
4681
|
+
}
|
|
4682
|
+
},
|
|
4683
|
+
[outputPackageJSON_GeneratingSettingsLocalization.inheritedDevelopmentDependencies.KEY]: {
|
|
4684
|
+
newName: "inheritedDevelopmentDependencies",
|
|
4685
|
+
type: Array,
|
|
4686
|
+
required: false,
|
|
4687
|
+
minimalElementsCount: 1,
|
|
4688
|
+
element: {
|
|
4689
|
+
type: String,
|
|
4690
|
+
minimalCharactersCount: 1
|
|
4691
|
+
}
|
|
4692
|
+
},
|
|
4693
|
+
[outputPackageJSON_GeneratingSettingsLocalization.inheritedNPM_Scripts.KEY]: {
|
|
4694
|
+
newName: "inheritedNPM_Scripts",
|
|
4695
|
+
type: Array,
|
|
4696
|
+
required: false,
|
|
4697
|
+
minimalElementsCount: 1,
|
|
4698
|
+
element: {
|
|
4699
|
+
type: String,
|
|
4700
|
+
minimalCharactersCount: 1
|
|
4701
|
+
}
|
|
4702
|
+
},
|
|
4703
|
+
[outputPackageJSON_GeneratingSettingsLocalization.newNPM_Scripts.KEY]: {
|
|
4704
|
+
newName: "newNPM_Scripts",
|
|
4705
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
4706
|
+
required: false,
|
|
4707
|
+
preValidationModifications: es_extensions_1.nullToUndefined,
|
|
4708
|
+
minimalEntriesCount: 1,
|
|
4709
|
+
value: {
|
|
4710
|
+
type: String,
|
|
4711
|
+
minimalCharactersCount: 1
|
|
4712
|
+
}
|
|
4713
|
+
},
|
|
4714
|
+
[outputPackageJSON_GeneratingSettingsLocalization.indentString.KEY]: {
|
|
4715
|
+
newName: "indentString",
|
|
4716
|
+
type: String,
|
|
4717
|
+
required: false,
|
|
4718
|
+
minimalCharactersCount: 1
|
|
4719
|
+
},
|
|
4720
|
+
[outputPackageJSON_GeneratingSettingsLocalization.linesSeparator.KEY]: {
|
|
4721
|
+
newName: "linesSeparator",
|
|
4722
|
+
type: String,
|
|
4723
|
+
required: false,
|
|
4724
|
+
allowedAlternatives: Object.values(es_extensions_1.LineSeparators.lineFeed)
|
|
4725
|
+
},
|
|
4726
|
+
[outputPackageJSON_GeneratingSettingsLocalization.buildingModeDependent.KEY]: {
|
|
4727
|
+
newName: "buildingModeDependent",
|
|
4728
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
4729
|
+
required: true,
|
|
4730
|
+
allowedKeys: Object.values(ConsumingProjectBuildingModes_1.default),
|
|
4731
|
+
minimalEntriesCount: 1,
|
|
4732
|
+
keysRenamings: {
|
|
4733
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staticPreview]: ConsumingProjectBuildingModes_1.default.staticPreview,
|
|
4734
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectBuildingModes_1.default.localDevelopment,
|
|
4735
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.testing]: ConsumingProjectBuildingModes_1.default.testing,
|
|
4736
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staging]: ConsumingProjectBuildingModes_1.default.staging,
|
|
4737
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.production]: ConsumingProjectBuildingModes_1.default.production
|
|
4738
|
+
},
|
|
4739
|
+
value: {
|
|
4740
|
+
type: Object,
|
|
4741
|
+
properties: {
|
|
4742
|
+
[outputPackageJSON_GeneratingSettingsLocalization.buildingModeDependent.outputDirectoryRelativePath.KEY]: {
|
|
4743
|
+
newName: "outputDirectoryRelativePath",
|
|
4744
|
+
type: String,
|
|
4745
|
+
required: true,
|
|
4746
|
+
minimalCharactersCount: 1
|
|
4747
|
+
},
|
|
4748
|
+
[outputPackageJSON_GeneratingSettingsLocalization.buildingModeDependent.indentString.KEY]: {
|
|
4749
|
+
newName: "indentString",
|
|
4750
|
+
type: String,
|
|
4751
|
+
required: false,
|
|
4752
|
+
minimalCharactersCount: 1
|
|
4753
|
+
},
|
|
4754
|
+
[outputPackageJSON_GeneratingSettingsLocalization.buildingModeDependent.linesSeparator.KEY]: {
|
|
4755
|
+
newName: "linesSeparator",
|
|
4756
|
+
type: String,
|
|
4757
|
+
required: false,
|
|
4758
|
+
allowedAlternatives: Object.values(es_extensions_1.LineSeparators.lineFeed)
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
}
|
|
4762
|
+
}
|
|
4763
|
+
};
|
|
4764
|
+
}
|
|
4765
|
+
OutputPackageJSON_GeneratingSettings__FromFile__RawValid.getLocalizedPropertiesSpecification = getLocalizedPropertiesSpecification;
|
|
4766
|
+
})(OutputPackageJSON_GeneratingSettings__FromFile__RawValid || (OutputPackageJSON_GeneratingSettings__FromFile__RawValid = {}));
|
|
4767
|
+
exports["default"] = OutputPackageJSON_GeneratingSettings__FromFile__RawValid;
|
|
4768
|
+
|
|
4769
|
+
|
|
4770
|
+
/***/ }),
|
|
4771
|
+
|
|
4772
|
+
/***/ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_Generator.ts":
|
|
4773
|
+
/*!*************************************************************************************!*\
|
|
4774
|
+
!*** ./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_Generator.ts ***!
|
|
4775
|
+
\*************************************************************************************/
|
|
4776
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4777
|
+
|
|
4778
|
+
|
|
4779
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4780
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4781
|
+
};
|
|
4782
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4783
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
4784
|
+
const fs_1 = __importDefault(__webpack_require__(/*! fs */ "fs"));
|
|
4785
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4786
|
+
const replaceLinesSeparators_1 = __importDefault(__webpack_require__(/*! @UtilsIncubator/Strings/replaceLinesSeparators */ "./UtilsIncubator/Strings/replaceLinesSeparators.ts"));
|
|
4787
|
+
class OutputPackageJSON_Generator {
|
|
4788
|
+
static generateIfMust(projectBuildingMasterConfigRepresentative) {
|
|
4789
|
+
if ((0, es_extensions_1.isUndefined)(projectBuildingMasterConfigRepresentative.outputPackageJSON_GeneratingSettingsRepresentative)) {
|
|
4790
|
+
return async () => Promise.resolve();
|
|
4791
|
+
}
|
|
4792
|
+
const { outputPackageJSON_GeneratingSettingsRepresentative } = projectBuildingMasterConfigRepresentative;
|
|
4793
|
+
return async () => OutputPackageJSON_Generator.generate(outputPackageJSON_GeneratingSettingsRepresentative.outputPackageJSON_GeneratingSettings);
|
|
4794
|
+
}
|
|
4795
|
+
static async generate({ outputFileAbsolutePath, dependencies, developmentDependencies, scripts, indentString, linesSeparator }) {
|
|
4796
|
+
fs_1.default.writeFileSync(outputFileAbsolutePath, (0, replaceLinesSeparators_1.default)(JSON.stringify({
|
|
4797
|
+
private: true,
|
|
4798
|
+
dependencies,
|
|
4799
|
+
devDependencies: developmentDependencies,
|
|
4800
|
+
scripts
|
|
4801
|
+
}, null, indentString), linesSeparator));
|
|
4802
|
+
return Promise.resolve();
|
|
4803
|
+
}
|
|
4804
|
+
}
|
|
4805
|
+
exports["default"] = OutputPackageJSON_Generator;
|
|
4806
|
+
|
|
4807
|
+
|
|
4507
4808
|
/***/ }),
|
|
4508
4809
|
|
|
4509
4810
|
/***/ "./ProjectBuilding/PlainCopying/PlainCopier.ts":
|
|
@@ -5008,7 +5309,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5008
5309
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5009
5310
|
};
|
|
5010
5311
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5011
|
-
/*
|
|
5312
|
+
/* ─── Raw Valid Settings ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5012
5313
|
const ProjectBuildingTasksIDsForConfigFile_1 = __webpack_require__(/*! @ProjectBuilding:Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile */ "./ProjectBuilding/Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile.ts");
|
|
5013
5314
|
const ProjectBuildingCommonSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding:Common/NormalizedConfig/ProjectBuildingCommonSettingsNormalizer */ "./ProjectBuilding/Common/NormalizedConfig/ProjectBuildingCommonSettingsNormalizer.ts"));
|
|
5014
5315
|
const MarkupProcessingRawSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/RawSettingsNormalizer/MarkupProcessingRawSettingsNormalizer */ "./ProjectBuilding/SourceCodeProcessing/Markup/RawSettingsNormalizer/MarkupProcessingRawSettingsNormalizer.ts"));
|
|
@@ -5021,7 +5322,8 @@ const AudiosProcessingRawSettingsNormalizer_1 = __importDefault(__webpack_requir
|
|
|
5021
5322
|
const PlainCopyingRawSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/PlainCopying/PlainCopyingRawSettingsNormalizer */ "./ProjectBuilding/PlainCopying/PlainCopyingRawSettingsNormalizer.ts"));
|
|
5022
5323
|
const FilesWatchingSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/FilesWatching/FilesWatchingSettingsNormalizer */ "./ProjectBuilding/FilesWatching/FilesWatchingSettingsNormalizer.ts"));
|
|
5023
5324
|
const BrowserLiveReloadingSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/RawSettingsNormalizer/BrowserLiveReloadingSettingsNormalizer */ "./ProjectBuilding/BrowserLiveReloading/RawSettingsNormalizer/BrowserLiveReloadingSettingsNormalizer.ts"));
|
|
5024
|
-
|
|
5325
|
+
const OutputPackageJSON_GeneratingSettingsNormalizer_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsNormalizer */ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsNormalizer.ts"));
|
|
5326
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5025
5327
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
5026
5328
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
5027
5329
|
class ProjectBuilderRawConfigNormalizer {
|
|
@@ -5195,6 +5497,13 @@ class ProjectBuilderRawConfigNormalizer {
|
|
|
5195
5497
|
...(0, es_extensions_1.isNotUndefined)(selectedBrowserLiveReloadingSetupID) ? { selectedBrowserLiveReloadingSetupID } : {}
|
|
5196
5498
|
})
|
|
5197
5499
|
};
|
|
5500
|
+
})(),
|
|
5501
|
+
...(() => {
|
|
5502
|
+
const outputPackageJSON_Generating = OutputPackageJSON_GeneratingSettingsNormalizer_1.default.normalizeIfThereAreActualOnes({
|
|
5503
|
+
outputPackageJSON_GeneratingSettings__fromFile__rawValid: projectBuildingConfig__fromFile__rawValid[ProjectBuildingTasksIDsForConfigFile_1.ProjectBuildingTasksIDsForConfigFile.outputPackageJSON_Generating],
|
|
5504
|
+
commonSettings__normalized
|
|
5505
|
+
});
|
|
5506
|
+
return (0, es_extensions_1.isNotNull)(outputPackageJSON_Generating) ? { outputPackageJSON_Generating } : {};
|
|
5198
5507
|
})()
|
|
5199
5508
|
};
|
|
5200
5509
|
}
|
|
@@ -5268,7 +5577,8 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
5268
5577
|
videosProcessing: "videosProcessing",
|
|
5269
5578
|
plainCopying: "plainCopying",
|
|
5270
5579
|
browserLiveReloading: "browserLiveReloading",
|
|
5271
|
-
filesWatching: "filesWatching"
|
|
5580
|
+
filesWatching: "filesWatching",
|
|
5581
|
+
outputPackageJSON_Generating: "outputPackageJSON_Generating"
|
|
5272
5582
|
},
|
|
5273
5583
|
consumingProjectPreDefinedBuildingModes: {
|
|
5274
5584
|
staticPreview: "STATIC_PREVIEW",
|
|
@@ -5331,7 +5641,8 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
5331
5641
|
selectiveExecutions: {
|
|
5332
5642
|
KEY: "selectiveExecutions",
|
|
5333
5643
|
tasksAndSourceFilesSelection: { KEY: "tasksAndSourceFilesSelection" },
|
|
5334
|
-
browserLiveReloadingSetupID: { KEY: "browserLiveReloadingSetupID" }
|
|
5644
|
+
browserLiveReloadingSetupID: { KEY: "browserLiveReloadingSetupID" },
|
|
5645
|
+
outputPackageJSON_Generating: { KEY: "outputPackageJSON_Generating" }
|
|
5335
5646
|
},
|
|
5336
5647
|
publicDirectoriesRelativePaths: { KEY: "publicDirectoriesRelativePaths" }
|
|
5337
5648
|
}
|
|
@@ -5512,6 +5823,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
5512
5823
|
KEY: "logging",
|
|
5513
5824
|
filesPaths: { KEY: "filesPaths" },
|
|
5514
5825
|
filesCount: { KEY: "filesCount" },
|
|
5826
|
+
partialFilesAndParentEntryPointsCorrespondence: { KEY: "partialFilesAndParentEntryPointsCorrespondence" },
|
|
5515
5827
|
filesWatcherEvents: { KEY: "filesWatcherEvents" },
|
|
5516
5828
|
linting: {
|
|
5517
5829
|
KEY: "linting",
|
|
@@ -5682,6 +5994,20 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
5682
5994
|
browserTabWillBeReloadedSoon: { KEY: "browserTabWillBeReloadedSoon" },
|
|
5683
5995
|
browsersyncConnection: { KEY: "browsersyncConnection" }
|
|
5684
5996
|
}
|
|
5997
|
+
},
|
|
5998
|
+
outputPackageJSON_Generating: {
|
|
5999
|
+
inheritedDependencies: { KEY: "inheritedDependencies" },
|
|
6000
|
+
inheritedDevelopmentDependencies: { KEY: "inheritedDevelopmentDependencies" },
|
|
6001
|
+
inheritedNPM_Scripts: { KEY: "inheritedNPM_Scripts" },
|
|
6002
|
+
newNPM_Scripts: { KEY: "newNPM_Scripts" },
|
|
6003
|
+
indentString: { KEY: "indentString" },
|
|
6004
|
+
linesSeparator: { KEY: "linesSeparator" },
|
|
6005
|
+
buildingModeDependent: {
|
|
6006
|
+
KEY: "buildingModeDependent",
|
|
6007
|
+
outputDirectoryRelativePath: { KEY: "outputDirectoryRelativePath" },
|
|
6008
|
+
indentString: { KEY: "indentString" },
|
|
6009
|
+
linesSeparator: { KEY: "linesSeparator" }
|
|
6010
|
+
}
|
|
5685
6011
|
}
|
|
5686
6012
|
}
|
|
5687
6013
|
};
|
|
@@ -5716,6 +6042,7 @@ const AudiosProcessingSettings__FromFile__RawValid_1 = __importDefault(__webpack
|
|
|
5716
6042
|
const PlainCopyingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/PlainCopying/PlainCopyingSettings__FromFile__RawValid */ "./ProjectBuilding/PlainCopying/PlainCopyingSettings__FromFile__RawValid.ts"));
|
|
5717
6043
|
const FilesWatchingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/FilesWatching/FilesWatchingSettings__FromFile__RawValid */ "./ProjectBuilding/FilesWatching/FilesWatchingSettings__FromFile__RawValid.ts"));
|
|
5718
6044
|
const BrowserLiveReloadingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserLiveReloadingSettings__FromFile__RawValid */ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloadingSettings__FromFile__RawValid.ts"));
|
|
6045
|
+
const OutputPackageJSON_GeneratingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__FromFile__RawValid */ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettings__FromFile__RawValid.ts"));
|
|
5719
6046
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5720
6047
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
5721
6048
|
var ProjectBuildingConfig__FromFile__RawValid;
|
|
@@ -5869,6 +6196,16 @@ var ProjectBuildingConfig__FromFile__RawValid;
|
|
|
5869
6196
|
preValidationModifications: es_extensions_1.nullToUndefined,
|
|
5870
6197
|
properties: BrowserLiveReloadingSettings__FromFile__RawValid_1.default.
|
|
5871
6198
|
getLocalizedPropertiesSpecification(localization.tasks.browserLiveReloading)
|
|
6199
|
+
},
|
|
6200
|
+
[localization.enumerations.tasksIDs.outputPackageJSON_Generating]: {
|
|
6201
|
+
newName: "outputPackageJSON_Generating",
|
|
6202
|
+
type: Object,
|
|
6203
|
+
required: false,
|
|
6204
|
+
preValidationModifications: es_extensions_1.nullToUndefined,
|
|
6205
|
+
properties: OutputPackageJSON_GeneratingSettings__FromFile__RawValid_1.default.getLocalizedPropertiesSpecification({
|
|
6206
|
+
outputPackageJSON_GeneratingSettingsLocalization: localization.tasks.outputPackageJSON_Generating,
|
|
6207
|
+
consumingProjectLocalizedPreDefinedBuildingModes
|
|
6208
|
+
})
|
|
5872
6209
|
}
|
|
5873
6210
|
}
|
|
5874
6211
|
}
|
|
@@ -5906,6 +6243,7 @@ const VideosProcessingSettingsRepresentative_1 = __importDefault(__webpack_requi
|
|
|
5906
6243
|
const PlainCopyingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/PlainCopying/PlainCopyingSettingsRepresentative */ "./ProjectBuilding/PlainCopying/PlainCopyingSettingsRepresentative.ts"));
|
|
5907
6244
|
const FilesWatchingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/FilesWatching/FilesWatchingSettingsRepresentative */ "./ProjectBuilding/FilesWatching/FilesWatchingSettingsRepresentative.ts"));
|
|
5908
6245
|
const BrowserLiveReloadingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserLiveReloadingSettingsRepresentative */ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloadingSettingsRepresentative.ts"));
|
|
6246
|
+
const OutputPackageJSON_GeneratingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsRepresentative */ "./ProjectBuilding/OutputPackageJSON_Generating/OutputPackageJSON_GeneratingSettingsRepresentative.ts"));
|
|
5909
6247
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
5910
6248
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
5911
6249
|
class ProjectBuildingMasterConfigRepresentative {
|
|
@@ -5920,6 +6258,7 @@ class ProjectBuildingMasterConfigRepresentative {
|
|
|
5920
6258
|
plainCopyingSettingsRepresentative;
|
|
5921
6259
|
filesWatchingSettingsRepresentative;
|
|
5922
6260
|
browserLiveReloadingSettingsRepresentative;
|
|
6261
|
+
outputPackageJSON_GeneratingSettingsRepresentative;
|
|
5923
6262
|
commonSettings;
|
|
5924
6263
|
static initializeAndGetInstance(projectBuilderConfig__normalized) {
|
|
5925
6264
|
if ((0, es_extensions_1.isNotNull)(ProjectBuildingMasterConfigRepresentative.selfSoleInstance)) {
|
|
@@ -5966,6 +6305,9 @@ class ProjectBuildingMasterConfigRepresentative {
|
|
|
5966
6305
|
if ((0, es_extensions_1.isNotUndefined)(projectBuilderNormalizedConfig.browserLiveReloading)) {
|
|
5967
6306
|
this.browserLiveReloadingSettingsRepresentative = new BrowserLiveReloadingSettingsRepresentative_1.default(projectBuilderNormalizedConfig.browserLiveReloading);
|
|
5968
6307
|
}
|
|
6308
|
+
if ((0, es_extensions_1.isNotUndefined)(projectBuilderNormalizedConfig.outputPackageJSON_Generating)) {
|
|
6309
|
+
this.outputPackageJSON_GeneratingSettingsRepresentative = new OutputPackageJSON_GeneratingSettingsRepresentative_1.default(projectBuilderNormalizedConfig.outputPackageJSON_Generating);
|
|
6310
|
+
}
|
|
5969
6311
|
}
|
|
5970
6312
|
/* === Common settings ============================================================================================ */
|
|
5971
6313
|
get consumingProjectRootDirectoryAbsolutePath() {
|
|
@@ -6103,6 +6445,8 @@ class ECMA_ScriptLogicProcessingRawSettingsNormalizer extends SourceCodeProcessi
|
|
|
6103
6445
|
ECMA_ScriptLogicProcessingSettings__Default_1.default.logging.filesPaths,
|
|
6104
6446
|
filesCount: ECMA_ScriptLogicProcessingSettings__fromFile__rawValid.logging?.filesCount ??
|
|
6105
6447
|
ECMA_ScriptLogicProcessingSettings__Default_1.default.logging.filesCount,
|
|
6448
|
+
partialFilesAndParentEntryPointsCorrespondence: ECMA_ScriptLogicProcessingSettings__fromFile__rawValid.logging?.filesWatcherEvents ??
|
|
6449
|
+
ECMA_ScriptLogicProcessingSettings__Default_1.default.logging.partialFilesAndParentEntryPointsCorrespondence,
|
|
6106
6450
|
filesWatcherEvents: ECMA_ScriptLogicProcessingSettings__fromFile__rawValid.logging?.filesWatcherEvents ??
|
|
6107
6451
|
ECMA_ScriptLogicProcessingSettings__Default_1.default.logging.filesWatcherEvents,
|
|
6108
6452
|
linting: {
|
|
@@ -6224,7 +6568,7 @@ exports["default"] = ECMA_ScriptLogicProcessingRawSettingsNormalizer;
|
|
|
6224
6568
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6225
6569
|
var ECMA_ScriptLogicProcessingRestrictions;
|
|
6226
6570
|
(function (ECMA_ScriptLogicProcessingRestrictions) {
|
|
6227
|
-
ECMA_ScriptLogicProcessingRestrictions.supportedSourceFilesNamesExtensionsWithoutLeadingDots = ["js", "mjs", "
|
|
6571
|
+
ECMA_ScriptLogicProcessingRestrictions.supportedSourceFilesNamesExtensionsWithoutLeadingDots = ["js", "mjs", "ts", "tsx", "jsx"];
|
|
6228
6572
|
ECMA_ScriptLogicProcessingRestrictions.supportedOutputFilesNamesExtensionsWithoutLeadingDots = ["js"];
|
|
6229
6573
|
let SupportedECMA_ScriptRuntimesTypes;
|
|
6230
6574
|
(function (SupportedECMA_ScriptRuntimesTypes) {
|
|
@@ -6337,6 +6681,7 @@ const ECMA_ScriptLogicProcessingSettings__Default = {
|
|
|
6337
6681
|
logging: {
|
|
6338
6682
|
filesPaths: true,
|
|
6339
6683
|
filesCount: false,
|
|
6684
|
+
partialFilesAndParentEntryPointsCorrespondence: false,
|
|
6340
6685
|
filesWatcherEvents: true,
|
|
6341
6686
|
linting: {
|
|
6342
6687
|
starting: true,
|
|
@@ -6533,6 +6878,11 @@ var ECMA_ScriptLogicProcessingSettings__FromFile__RawValid;
|
|
|
6533
6878
|
type: Boolean,
|
|
6534
6879
|
required: false
|
|
6535
6880
|
},
|
|
6881
|
+
[ECMA_ScriptProcessingPropertiesLocalization.logging.partialFilesAndParentEntryPointsCorrespondence.KEY]: {
|
|
6882
|
+
newName: "partialFilesAndParentEntryPointsCorrespondence",
|
|
6883
|
+
type: Boolean,
|
|
6884
|
+
required: false
|
|
6885
|
+
},
|
|
6536
6886
|
[ECMA_ScriptProcessingPropertiesLocalization.logging.filesWatcherEvents.KEY]: {
|
|
6537
6887
|
newName: "filesWatcherEvents",
|
|
6538
6888
|
type: Boolean,
|
|
@@ -6637,13 +6987,14 @@ class ECMA_ScriptLogicProcessor {
|
|
|
6637
6987
|
TASK_NAME_FOR_LOGGING = "ECMAScript logic processing";
|
|
6638
6988
|
masterConfigRepresentative;
|
|
6639
6989
|
ECMA_ScriptLogicProcessingConfigRepresentative;
|
|
6640
|
-
static provideLogicProcessingIfMust(
|
|
6641
|
-
|
|
6990
|
+
static provideLogicProcessingIfMust(projectBuildingMasterConfigRepresentative) {
|
|
6991
|
+
const ecmaScriptLogicProcessingSettingsRepresentative = projectBuildingMasterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;
|
|
6992
|
+
if ((0, es_extensions_1.isUndefined)(ecmaScriptLogicProcessingSettingsRepresentative)) {
|
|
6642
6993
|
return (callback) => { callback(); };
|
|
6643
6994
|
}
|
|
6644
|
-
const dataHoldingSelfInstance = new ECMA_ScriptLogicProcessor(
|
|
6995
|
+
const dataHoldingSelfInstance = new ECMA_ScriptLogicProcessor(ecmaScriptLogicProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative);
|
|
6645
6996
|
const webpackConfigurationSets = WebpackConfigGenerator_1.default.
|
|
6646
|
-
generateWebpackConfigurationForEachEntryPointsGroup(
|
|
6997
|
+
generateWebpackConfigurationForEachEntryPointsGroup(ecmaScriptLogicProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative);
|
|
6647
6998
|
return (callback) => {
|
|
6648
6999
|
try {
|
|
6649
7000
|
/* [ Webpack theory ] Although there is no `null` hardError is type definitions, the `hardError` could be null. */
|
|
@@ -6709,9 +7060,9 @@ class ECMA_ScriptLogicProcessor {
|
|
|
6709
7060
|
}
|
|
6710
7061
|
};
|
|
6711
7062
|
}
|
|
6712
|
-
constructor(
|
|
6713
|
-
this.masterConfigRepresentative = masterConfigRepresentative;
|
|
7063
|
+
constructor(ecmaScriptLogicProcessingConfigRepresentative, masterConfigRepresentative) {
|
|
6714
7064
|
this.ECMA_ScriptLogicProcessingConfigRepresentative = ecmaScriptLogicProcessingConfigRepresentative;
|
|
7065
|
+
this.masterConfigRepresentative = masterConfigRepresentative;
|
|
6715
7066
|
}
|
|
6716
7067
|
}
|
|
6717
7068
|
exports["default"] = ECMA_ScriptLogicProcessor;
|
|
@@ -7465,9 +7816,15 @@ class WebpackConfigGenerator {
|
|
|
7465
7816
|
"development" : "production",
|
|
7466
7817
|
watch: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
7467
7818
|
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,
|
|
7819
|
+
watchOptions: {
|
|
7820
|
+
ignored: ["node_modules"]
|
|
7821
|
+
},
|
|
7822
|
+
/* [ Theory ] Although "cheap-module-source-map" causes both slow first building and slow rebuilding,
|
|
7823
|
+
* faster alternatives including "eval" could cause the errors related with security.
|
|
7824
|
+
* See https://stackoverflow.com/a/49100966. */
|
|
7468
7825
|
devtool: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
7469
7826
|
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode ?
|
|
7470
|
-
"
|
|
7827
|
+
"cheap-module-source-map" : false,
|
|
7471
7828
|
...entryPointsGroupSettings.targetRuntime.type === SupportedECMA_ScriptRuntimesTypes.nodeJS ? {
|
|
7472
7829
|
node: {
|
|
7473
7830
|
__dirname: true,
|
|
@@ -7506,12 +7863,21 @@ class WebpackConfigGenerator {
|
|
|
7506
7863
|
oneOf: [
|
|
7507
7864
|
{
|
|
7508
7865
|
resourceQuery: /^\?vue/u,
|
|
7509
|
-
|
|
7866
|
+
loader: "@webdiscus/pug-loader",
|
|
7867
|
+
options: { mode: "html" }
|
|
7510
7868
|
},
|
|
7511
7869
|
{
|
|
7870
|
+
test: /\.renderer\.pug$/u,
|
|
7512
7871
|
loader: "@webdiscus/pug-loader",
|
|
7513
|
-
|
|
7514
|
-
|
|
7872
|
+
options: { mode: "compile" }
|
|
7873
|
+
},
|
|
7874
|
+
{
|
|
7875
|
+
test: /\.ydfr\.pug$/u,
|
|
7876
|
+
loader: "pug3-ast-loader"
|
|
7877
|
+
},
|
|
7878
|
+
{
|
|
7879
|
+
loader: "@webdiscus/pug-loader",
|
|
7880
|
+
options: { mode: "render" }
|
|
7515
7881
|
}
|
|
7516
7882
|
]
|
|
7517
7883
|
},
|
|
@@ -8331,6 +8697,7 @@ const ResourcesReferencesResolverForHTML_1 = __importDefault(__webpack_require__
|
|
|
8331
8697
|
const AccessibilityInspector_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/AccessibilityInspector/AccessibilityInspector */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AccessibilityInspector/AccessibilityInspector.ts"));
|
|
8332
8698
|
const ImagesAspectRatioAffixer_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/ImagesAspectRatioAffixer */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/ImagesAspectRatioAffixer.ts"));
|
|
8333
8699
|
const SpacesNormalizerForCJK_Text_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/SpacesNormalizerForCJK_Text */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/SpacesNormalizerForCJK_Text.ts"));
|
|
8700
|
+
const CodeListingPugFilter_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/PugFilters/CodeListingPugFilter */ "./ProjectBuilding/SourceCodeProcessing/Markup/PugFilters/CodeListingPugFilter.ts"));
|
|
8334
8701
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
8335
8702
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
8336
8703
|
const node_html_parser_1 = __webpack_require__(/*! node-html-parser */ "node-html-parser");
|
|
@@ -8378,13 +8745,12 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8378
8745
|
}
|
|
8379
8746
|
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
8380
8747
|
dataHoldingSelfInstance.sourceCodeSelectiveReprocessingHelper = new SourceCodeSelectiveReprocessingHelper_1.default({
|
|
8381
|
-
|
|
8748
|
+
initialEntryPointsSourceFilesAbsolutePaths: markupProcessingSettingsRepresentative.
|
|
8749
|
+
initialRelevantEntryPointsSourceFilesAbsolutePaths,
|
|
8382
8750
|
affiliatedFilesResolutionRules: {
|
|
8383
|
-
supportedAffiliatedFilesNamesExtensionsWithoutLeadingDots: PugPreProcessorSpecialist_1.default.
|
|
8384
|
-
supportedEntryPointsFileNamesExtensionsWithoutLeadingDots,
|
|
8385
8751
|
affiliatedFilesIncludingDeclarationsPatterns: PugPreProcessorSpecialist_1.default.partialFilesIncludingDeclarationPatterns,
|
|
8386
|
-
|
|
8387
|
-
|
|
8752
|
+
implicitFilesNamesExtensionsWithoutLeadingDotsOfAffiliatedFiles: PugPreProcessorSpecialist_1.default.
|
|
8753
|
+
implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials
|
|
8388
8754
|
},
|
|
8389
8755
|
isEntryPoint: markupProcessingSettingsRepresentative.isEntryPoint.bind(markupProcessingSettingsRepresentative),
|
|
8390
8756
|
logging: {
|
|
@@ -8416,7 +8782,7 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8416
8782
|
handler: MarkupProcessor.onEntryPointFileDeleted
|
|
8417
8783
|
});
|
|
8418
8784
|
}
|
|
8419
|
-
return dataHoldingSelfInstance.processEntryPoints(markupProcessingSettingsRepresentative.
|
|
8785
|
+
return dataHoldingSelfInstance.processEntryPoints(markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths);
|
|
8420
8786
|
}
|
|
8421
8787
|
constructor(markupProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative) {
|
|
8422
8788
|
super({
|
|
@@ -8475,7 +8841,8 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8475
8841
|
__IS_PRODUCTION_BUILDING_MODE__: this.projectBuildingMasterConfigRepresentative.isProductionBuildingMode
|
|
8476
8842
|
},
|
|
8477
8843
|
filters: {
|
|
8478
|
-
html_special_characters_to_html_entities: MarkupProcessor.
|
|
8844
|
+
html_special_characters_to_html_entities: MarkupProcessor.convertApplicableCharactersToHTML_Entities,
|
|
8845
|
+
"code_listing--yda": CodeListingPugFilter_1.default.apply
|
|
8479
8846
|
}
|
|
8480
8847
|
})).
|
|
8481
8848
|
pipe((0, gulp_if_1.default)((markupFile) => markupFile instanceof MarkupEntryPointVinylFile_1.default &&
|
|
@@ -8574,7 +8941,7 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8574
8941
|
}
|
|
8575
8942
|
/* [ Theory ] The ampersand must be escaped first, otherwise the ampersand from which HTML other entities begins
|
|
8576
8943
|
* will be escaped too. */
|
|
8577
|
-
static
|
|
8944
|
+
static convertApplicableCharactersToHTML_Entities(pugCode) {
|
|
8578
8945
|
return pugCode.
|
|
8579
8946
|
replace(/&/gu, "&").
|
|
8580
8947
|
replace(/</gu, "<").
|
|
@@ -8704,7 +9071,7 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8704
9071
|
}
|
|
8705
9072
|
/* ━━━ Helpers ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
8706
9073
|
initializeSourceAndOutputFilesAbsolutePathsCorrespondenceMap() {
|
|
8707
|
-
for (const markupSourceFileAbsolutePath of es_extensions_nodejs_1.ImprovedGlob.getFilesAbsolutePathsSynchronously(this.markupProcessingSettingsRepresentative.
|
|
9074
|
+
for (const markupSourceFileAbsolutePath of es_extensions_nodejs_1.ImprovedGlob.getFilesAbsolutePathsSynchronously(this.markupProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths, { alwaysForwardSlashSeparators: true })) {
|
|
8708
9075
|
const markupEntryPointsGroupSettingsActualForCurrentFile = this.markupProcessingSettingsRepresentative.
|
|
8709
9076
|
getExpectedToExistEntryPointsGroupSettingsRelevantForSpecifiedSourceFileAbsolutePath(markupSourceFileAbsolutePath);
|
|
8710
9077
|
const outputFileNameWithLastExtensionWithLeadingDot = this.markupProcessingSettingsRepresentative.
|
|
@@ -9419,7 +9786,7 @@ class AccessibilityInspector {
|
|
|
9419
9786
|
}
|
|
9420
9787
|
return null;
|
|
9421
9788
|
}),
|
|
9422
|
-
puppeteer_1.default.launch(
|
|
9789
|
+
puppeteer_1.default.launch()
|
|
9423
9790
|
]);
|
|
9424
9791
|
return {
|
|
9425
9792
|
...(0, es_extensions_1.isNotNull)(cachedInspectionsResults) ? { cachedInspectionsResults } : null,
|
|
@@ -9494,12 +9861,9 @@ const accessibilityInspectorLocalization__english = {
|
|
|
9494
9861
|
generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog: ({ targetFileRelativePath, secondsElapsed }) => ({
|
|
9495
9862
|
title: "HTML code accessibility cheking of single file has finished with no issues found",
|
|
9496
9863
|
description: `The HTML code in file "${targetFileRelativePath}" has no the accessibility issues.\n` +
|
|
9497
|
-
`${
|
|
9498
|
-
/* eslint-disable-next-line @typescript-eslint/no-useless-template-literals --
|
|
9499
|
-
* テンプレートリテラルを無くすと、「+」の前の部分が無くなっていまう。 */
|
|
9500
9864
|
(0, es_extensions_1.isUndefined)(secondsElapsed) ?
|
|
9501
|
-
|
|
9502
|
-
|
|
9865
|
+
"(Cached result, no changes in output HTML code since last building)" :
|
|
9866
|
+
`${secondsElapsed} seconds taken.`
|
|
9503
9867
|
}),
|
|
9504
9868
|
generateIssuesFoundInSingleFileErrorLog: ({ targetFileRelativePath, formattedErrorsAndWarnings }) => ({
|
|
9505
9869
|
title: "HTML accessibility inspection, issue(s) found",
|
|
@@ -10151,12 +10515,9 @@ const HTML_ValidatorLocalization__english = {
|
|
|
10151
10515
|
generateValidationOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog: ({ targetFileRelativePath, secondsElapsed }) => ({
|
|
10152
10516
|
title: "HTML validation of single file has finished with no issues found",
|
|
10153
10517
|
description: `File "${targetFileRelativePath}" is fully obeying to W3C rules and recommendations.\n` +
|
|
10154
|
-
`${
|
|
10155
|
-
/* eslint-disable-next-line @typescript-eslint/no-useless-template-literals --
|
|
10156
|
-
* テンプレートリテラルを無くすと、「+」の前の部分が無くなっていまう。 */
|
|
10157
10518
|
(0, es_extensions_1.isUndefined)(secondsElapsed) ?
|
|
10158
|
-
|
|
10159
|
-
|
|
10519
|
+
"(Cached result, no changes in output HTML code since last building)" :
|
|
10520
|
+
`${secondsElapsed} seconds taken.`
|
|
10160
10521
|
}),
|
|
10161
10522
|
generateIssuesFoundInSingleFileErrorLog: ({ targetFileRelativePath, formattedErrorsAndWarnings }) => ({
|
|
10162
10523
|
title: "HTML validation, issue(s) found",
|
|
@@ -10245,8 +10606,8 @@ class ImagesAspectRatioAffixer {
|
|
|
10245
10606
|
mustOutputIf: true,
|
|
10246
10607
|
errorType: es_extensions_1.UnexpectedEventError.NAME,
|
|
10247
10608
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
10248
|
-
description: `No image with path "${imageRawPath}" specified in output HTML code has been found
|
|
10249
|
-
"
|
|
10609
|
+
description: `No image with path "${imageRawPath}" specified in output HTML code has been found. ` +
|
|
10610
|
+
"It must be investigated.",
|
|
10250
10611
|
occurrenceLocation: "ImagesAspectRatioAffixer.affix(compoundParameter)",
|
|
10251
10612
|
caughtError: error
|
|
10252
10613
|
});
|
|
@@ -10414,8 +10775,8 @@ class ResourcesReferencesResolverForHTML {
|
|
|
10414
10775
|
resolveStylesheetsAliasedPaths().
|
|
10415
10776
|
resolveScriptsPathsAliases().
|
|
10416
10777
|
resolveImagesAliasedPaths().
|
|
10417
|
-
|
|
10418
|
-
|
|
10778
|
+
resolveVideosAliasedPaths().
|
|
10779
|
+
resolveAudiosAliasedPaths().
|
|
10419
10780
|
rootHTML_Element;
|
|
10420
10781
|
}
|
|
10421
10782
|
constructor({ rootHTML_Element, projectBuildingMasterConfigRepresentative, markupProcessingSettingsRepresentative, absolutePathOfOutputDirectoryForTargetHTML_File }) {
|
|
@@ -10773,7 +11134,7 @@ class ResourcesReferencesResolverForHTML {
|
|
|
10773
11134
|
ResourcesReferencesResolverForHTML.
|
|
10774
11135
|
aliasedURIsAndOutputImagesFilesAbsolutePathsCorrespondenceMap.
|
|
10775
11136
|
set(targetHTML_ElementAttributeValue, resolvedAbsolutePath);
|
|
10776
|
-
targetHTML_Element.setAttribute(targetHTML_ElementAttributeName,
|
|
11137
|
+
targetHTML_Element.setAttribute(targetHTML_ElementAttributeName, this.buildResourceFileFinalPath(resolvedAbsolutePath));
|
|
10777
11138
|
return;
|
|
10778
11139
|
}
|
|
10779
11140
|
const imagesProcessingSettingsRepresentative = this.projectBuildingMasterConfigRepresentative.imagesProcessingSettingsRepresentative;
|
|
@@ -10798,7 +11159,7 @@ class ResourcesReferencesResolverForHTML {
|
|
|
10798
11159
|
targetHTML_Element.setAttribute(targetHTML_ElementAttributeName, this.buildResourceFileFinalPath(resolvedAbsolutePath));
|
|
10799
11160
|
}
|
|
10800
11161
|
/* ─── Videos ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
10801
|
-
|
|
11162
|
+
resolveVideosAliasedPaths() {
|
|
10802
11163
|
const videosProcessingSettingsRepresentative = this.projectBuildingMasterConfigRepresentative.videosProcessingSettingsRepresentative;
|
|
10803
11164
|
if ((0, es_extensions_1.isUndefined)(this.plainCopyingSettingsRepresentative) && (0, es_extensions_1.isUndefined)(videosProcessingSettingsRepresentative)) {
|
|
10804
11165
|
return this;
|
|
@@ -10857,7 +11218,7 @@ class ResourcesReferencesResolverForHTML {
|
|
|
10857
11218
|
return this;
|
|
10858
11219
|
}
|
|
10859
11220
|
/* ─── Audios ──────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
10860
|
-
|
|
11221
|
+
resolveAudiosAliasedPaths() {
|
|
10861
11222
|
const audiosProcessingSettingsRepresentative = this.projectBuildingMasterConfigRepresentative.audiosProcessingSettingsRepresentative;
|
|
10862
11223
|
if ((0, es_extensions_1.isUndefined)(this.plainCopyingSettingsRepresentative) && (0, es_extensions_1.isUndefined)(audiosProcessingSettingsRepresentative)) {
|
|
10863
11224
|
return this;
|
|
@@ -11032,6 +11393,76 @@ class SpacesNormalizerForCJK_Text {
|
|
|
11032
11393
|
exports["default"] = SpacesNormalizerForCJK_Text;
|
|
11033
11394
|
|
|
11034
11395
|
|
|
11396
|
+
/***/ }),
|
|
11397
|
+
|
|
11398
|
+
/***/ "./ProjectBuilding/SourceCodeProcessing/Markup/PugFilters/CodeListingPugFilter.ts":
|
|
11399
|
+
/*!****************************************************************************************!*\
|
|
11400
|
+
!*** ./ProjectBuilding/SourceCodeProcessing/Markup/PugFilters/CodeListingPugFilter.ts ***!
|
|
11401
|
+
\****************************************************************************************/
|
|
11402
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
11403
|
+
|
|
11404
|
+
|
|
11405
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
11406
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
11407
|
+
class CodeListingPugFilter {
|
|
11408
|
+
static optionsSpecification = {
|
|
11409
|
+
subtype: es_extensions_1.RawObjectDataProcessor.ObjectSubtypes.fixedKeyAndValuePairsObject,
|
|
11410
|
+
nameForLogging: "CodeListingPugFilerOptions",
|
|
11411
|
+
properties: {
|
|
11412
|
+
mustAppendEmptyLine: {
|
|
11413
|
+
type: Boolean,
|
|
11414
|
+
defaultValue: false
|
|
11415
|
+
},
|
|
11416
|
+
indentationMultiplier: {
|
|
11417
|
+
preValidationModifications: es_extensions_1.convertPotentialStringToIntegerIfPossible,
|
|
11418
|
+
type: Number,
|
|
11419
|
+
required: false,
|
|
11420
|
+
numbersSet: es_extensions_1.RawObjectDataProcessor.NumbersSets.naturalNumber
|
|
11421
|
+
},
|
|
11422
|
+
indentationString: {
|
|
11423
|
+
type: String,
|
|
11424
|
+
requiredIf: {
|
|
11425
|
+
predicate: (rawOptions) => (0, es_extensions_1.isNotUndefined)(rawOptions.indentationMultiplier),
|
|
11426
|
+
descriptionForLogging: "\"indentationMultiplier\" has been specified"
|
|
11427
|
+
},
|
|
11428
|
+
minimalCharactersCount: 1
|
|
11429
|
+
}
|
|
11430
|
+
}
|
|
11431
|
+
};
|
|
11432
|
+
static apply(sourcePugCode, rawOptions) {
|
|
11433
|
+
const rawOptionsProcessingResult = es_extensions_1.RawObjectDataProcessor.process(rawOptions, CodeListingPugFilter.optionsSpecification);
|
|
11434
|
+
if (rawOptionsProcessingResult.rawDataIsInvalid) {
|
|
11435
|
+
es_extensions_1.Logger.throwErrorAndLog({
|
|
11436
|
+
errorInstance: new es_extensions_1.InvalidExternalDataError({
|
|
11437
|
+
customMessage: "One or more invalid options found for \"CodeListing\" pug filer.\n" +
|
|
11438
|
+
es_extensions_1.RawObjectDataProcessor.formatValidationErrorsList(rawOptionsProcessingResult.validationErrorsMessages)
|
|
11439
|
+
}),
|
|
11440
|
+
title: es_extensions_1.InvalidExternalDataError.localization.defaultTitle,
|
|
11441
|
+
occurrenceLocation: "CodeListingPugFilter.apply(sourcePugCode, rawOptions)"
|
|
11442
|
+
});
|
|
11443
|
+
}
|
|
11444
|
+
const { mustAppendEmptyLine, indentationString, indentationMultiplier } = rawOptionsProcessingResult.processedData;
|
|
11445
|
+
const lineSeparator = (0, es_extensions_1.getLineSeparatorType)(sourcePugCode);
|
|
11446
|
+
let outputCodeWorkpiece = sourcePugCode;
|
|
11447
|
+
if ((0, es_extensions_1.isNotUndefined)(indentationString) && (0, es_extensions_1.isNotUndefined)(indentationMultiplier)) {
|
|
11448
|
+
outputCodeWorkpiece = (0, es_extensions_1.explodeStringToLines)({ targetString: outputCodeWorkpiece, mustIgnoreCarriageReturn: true }).
|
|
11449
|
+
map((sourceCodeLine) => `${indentationString.repeat(indentationMultiplier - 1)}${sourceCodeLine}`).
|
|
11450
|
+
join(lineSeparator);
|
|
11451
|
+
}
|
|
11452
|
+
return [
|
|
11453
|
+
...mustAppendEmptyLine ? [lineSeparator] : [],
|
|
11454
|
+
outputCodeWorkpiece.
|
|
11455
|
+
replace(/&(?!#?[a-z0-9]+;)/gu, "&").
|
|
11456
|
+
replace(/</gu, "<").
|
|
11457
|
+
replace(/>/gu, ">").
|
|
11458
|
+
replace(/"/gu, """).
|
|
11459
|
+
replace(/'/gu, "'")
|
|
11460
|
+
].join("");
|
|
11461
|
+
}
|
|
11462
|
+
}
|
|
11463
|
+
exports["default"] = CodeListingPugFilter;
|
|
11464
|
+
|
|
11465
|
+
|
|
11035
11466
|
/***/ }),
|
|
11036
11467
|
|
|
11037
11468
|
/***/ "./ProjectBuilding/SourceCodeProcessing/Markup/RawSettingsNormalizer/MarkupProcessingRawSettingsNormalizer.ts":
|
|
@@ -12376,13 +12807,12 @@ class StylesProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
12376
12807
|
const dataHoldingSelfInstance = new StylesProcessor(stylesProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative);
|
|
12377
12808
|
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
12378
12809
|
dataHoldingSelfInstance.sourceCodeSelectiveReprocessingHelper = new SourceCodeSelectiveReprocessingHelper_1.default({
|
|
12379
|
-
|
|
12810
|
+
initialEntryPointsSourceFilesAbsolutePaths: stylesProcessingSettingsRepresentative.
|
|
12811
|
+
initialRelevantEntryPointsSourceFilesAbsolutePaths,
|
|
12380
12812
|
affiliatedFilesResolutionRules: {
|
|
12381
|
-
supportedAffiliatedFilesNamesExtensionsWithoutLeadingDots: StylusPreProcessorSpecialist_1.default.
|
|
12382
|
-
supportedEntryPointsFileNamesExtensionsWithoutLeadingDots,
|
|
12383
12813
|
affiliatedFilesIncludingDeclarationsPatterns: StylusPreProcessorSpecialist_1.default.partialFilesIncludingDeclarationPatterns,
|
|
12384
|
-
|
|
12385
|
-
|
|
12814
|
+
implicitFilesNamesExtensionsWithoutLeadingDotsOfAffiliatedFiles: StylusPreProcessorSpecialist_1.default.
|
|
12815
|
+
implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials
|
|
12386
12816
|
},
|
|
12387
12817
|
isEntryPoint: stylesProcessingSettingsRepresentative.isEntryPoint.bind(stylesProcessingSettingsRepresentative),
|
|
12388
12818
|
logging: {
|
|
@@ -12414,7 +12844,7 @@ class StylesProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
12414
12844
|
handler: StylesProcessor.onEntryPointFileDeleted
|
|
12415
12845
|
});
|
|
12416
12846
|
}
|
|
12417
|
-
return dataHoldingSelfInstance.processEntryPoints(stylesProcessingSettingsRepresentative.
|
|
12847
|
+
return dataHoldingSelfInstance.processEntryPoints(stylesProcessingSettingsRepresentative.initialRelevantEntryPointsSourceFilesAbsolutePaths);
|
|
12418
12848
|
}
|
|
12419
12849
|
constructor(stylesProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative) {
|
|
12420
12850
|
super({
|
|
@@ -12703,14 +13133,13 @@ exports["default"] = ESLintLinterSpecialist;
|
|
|
12703
13133
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
12704
13134
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
12705
13135
|
class PugPreProcessorSpecialist {
|
|
12706
|
-
static supportedEntryPointsFileNamesExtensionsWithoutLeadingDots = ["pug"];
|
|
12707
13136
|
/* [ Fiddle ] https://regex101.com/r/uqO9CT/4 */
|
|
12708
13137
|
static partialFilesIncludingDeclarationPatterns = [
|
|
12709
13138
|
/* eslint-disable-next-line prefer-named-capture-group --
|
|
12710
13139
|
* No simple way to know the capturing group name outside of this file. */
|
|
12711
13140
|
/^ *(?:include|extends) +((?:\w|-|\.|\/)+) *$/gmu
|
|
12712
13141
|
];
|
|
12713
|
-
static
|
|
13142
|
+
static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials = ["pug"];
|
|
12714
13143
|
static linterConfigurationFilesNamesWithExtensions = [
|
|
12715
13144
|
".pug-lintrc", ".pug-lintrc.js", ".pug-lintrc.json", "package.json"
|
|
12716
13145
|
];
|
|
@@ -12794,14 +13223,13 @@ exports["default"] = StlintLinterSpecialist;
|
|
|
12794
13223
|
|
|
12795
13224
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
12796
13225
|
class StylusPreProcessorSpecialist {
|
|
12797
|
-
static supportedEntryPointsFileNamesExtensionsWithoutLeadingDots = ["styl", "stylus"];
|
|
12798
13226
|
/* [ Fiddle ] https://regex101.com/r/KDM184/3 */
|
|
12799
13227
|
static partialFilesIncludingDeclarationPatterns = [
|
|
12800
13228
|
/* eslint-disable-next-line prefer-named-capture-group --
|
|
12801
13229
|
* No simple way to know the capturing group name outside of this file. */
|
|
12802
13230
|
/^ *@(?:import|require) +['"]((?:\w|-|\.|\/)+?)['"] *;? *$/gmu
|
|
12803
13231
|
];
|
|
12804
|
-
static
|
|
13232
|
+
static implicitFilesNamesExtensionsWithoutLeadingDotsOfPartials = ["styl", "stylus", "css"];
|
|
12805
13233
|
}
|
|
12806
13234
|
exports["default"] = StylusPreProcessorSpecialist;
|
|
12807
13235
|
|
|
@@ -13038,6 +13466,23 @@ class Stopwatch {
|
|
|
13038
13466
|
exports["default"] = Stopwatch;
|
|
13039
13467
|
|
|
13040
13468
|
|
|
13469
|
+
/***/ }),
|
|
13470
|
+
|
|
13471
|
+
/***/ "./UtilsIncubator/Strings/replaceLinesSeparators.ts":
|
|
13472
|
+
/*!**********************************************************!*\
|
|
13473
|
+
!*** ./UtilsIncubator/Strings/replaceLinesSeparators.ts ***!
|
|
13474
|
+
\**********************************************************/
|
|
13475
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
13476
|
+
|
|
13477
|
+
|
|
13478
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13479
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
13480
|
+
function replaceLinesSeparators(targetString, lineSeparators) {
|
|
13481
|
+
return (0, es_extensions_1.explodeStringToLines)({ targetString, mustIgnoreCarriageReturn: false }).join(lineSeparators);
|
|
13482
|
+
}
|
|
13483
|
+
exports["default"] = replaceLinesSeparators;
|
|
13484
|
+
|
|
13485
|
+
|
|
13041
13486
|
/***/ }),
|
|
13042
13487
|
|
|
13043
13488
|
/***/ "./Utils/DotYDA_DirectoryManager.ts":
|
|
@@ -13385,39 +13830,37 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13385
13830
|
}
|
|
13386
13831
|
}
|
|
13387
13832
|
};
|
|
13388
|
-
entryPointsAbsolutePaths;
|
|
13389
13833
|
entryPointsMetadata = new Map();
|
|
13390
13834
|
isEntryPoint;
|
|
13391
13835
|
affiliatedFilesMetadata = new Map();
|
|
13392
13836
|
affiliatedFilesResolutionRules;
|
|
13837
|
+
absolutePathsOfAffiliatedFilesWhichHasBeenScannedDuringCurrentPass = new Set();
|
|
13393
13838
|
CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH;
|
|
13394
13839
|
CACHED_METADATA_FILE_ABSOLUTE_PATH;
|
|
13395
|
-
absolutePathsOfAffiliatedFilesWhichHasBeenScannedDuringCurrentPass = new Set();
|
|
13396
13840
|
TARGET_FILES_TYPE_IN_SINGULAR_FORM;
|
|
13397
13841
|
constructor(initializationProperties) {
|
|
13398
|
-
this.entryPointsAbsolutePaths = new Set(initializationProperties.entryPointsSourceFilesAbsolutePaths.map((entryPointFileAbsolutePath__potentiallyWithOperationingSystemDependentPathSeparators) => es_extensions_nodejs_1.ImprovedPath.replacePathSeparatorsToForwardSlashes(entryPointFileAbsolutePath__potentiallyWithOperationingSystemDependentPathSeparators)));
|
|
13399
13842
|
this.isEntryPoint = initializationProperties.isEntryPoint;
|
|
13400
13843
|
this.affiliatedFilesResolutionRules = initializationProperties.affiliatedFilesResolutionRules;
|
|
13401
13844
|
this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH = initializationProperties.consumingProjectRootDirectoryAbsolutePath;
|
|
13402
13845
|
this.CACHED_METADATA_FILE_ABSOLUTE_PATH = initializationProperties.cacheFileAbsolutePath;
|
|
13403
13846
|
this.TARGET_FILES_TYPE_IN_SINGULAR_FORM = initializationProperties.logging.targetFilesTypeInSingularForm;
|
|
13404
|
-
this.generateInitialMetadataMaps();
|
|
13847
|
+
this.generateInitialMetadataMaps(new Set(initializationProperties.initialEntryPointsSourceFilesAbsolutePaths.map((entryPointFileAbsolutePath__potentiallyWithOperationingSystemDependentPathSeparators) => es_extensions_nodejs_1.ImprovedPath.replacePathSeparatorsToForwardSlashes(entryPointFileAbsolutePath__potentiallyWithOperationingSystemDependentPathSeparators))));
|
|
13405
13848
|
if (initializationProperties.logging.mustEnable) {
|
|
13406
13849
|
this.logAffiliatedFilesAndEntryPointsRelationships();
|
|
13407
13850
|
}
|
|
13408
13851
|
this.cacheFilesMetadataMapsToFile();
|
|
13409
13852
|
}
|
|
13410
|
-
getAbsolutePathsOfEntryPointsWhichMustBeProcessed(
|
|
13853
|
+
getAbsolutePathsOfEntryPointsWhichMustBeProcessed(absolutePathsOfFilesWithChangesStatus) {
|
|
13411
13854
|
const absolutePathsOfEntryPointsWhichMustBeProcessed = new Set();
|
|
13412
|
-
for (const
|
|
13413
|
-
if (this.isEntryPoint(
|
|
13414
|
-
if (fs_1.default.existsSync(
|
|
13415
|
-
absolutePathsOfEntryPointsWhichMustBeProcessed.add(
|
|
13855
|
+
for (const absolutePathOfFileWithChangesStatus of absolutePathsOfFilesWithChangesStatus) {
|
|
13856
|
+
if (this.isEntryPoint(absolutePathOfFileWithChangesStatus)) {
|
|
13857
|
+
if (fs_1.default.existsSync(absolutePathOfFileWithChangesStatus)) {
|
|
13858
|
+
absolutePathsOfEntryPointsWhichMustBeProcessed.add(absolutePathOfFileWithChangesStatus);
|
|
13416
13859
|
}
|
|
13417
13860
|
else {
|
|
13418
13861
|
this.entryPointsMetadata.delete(es_extensions_nodejs_1.ImprovedPath.computeRelativePath({
|
|
13419
13862
|
basePath: this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,
|
|
13420
|
-
comparedPath:
|
|
13863
|
+
comparedPath: absolutePathOfFileWithChangesStatus,
|
|
13421
13864
|
alwaysForwardSlashSeparators: true
|
|
13422
13865
|
}));
|
|
13423
13866
|
}
|
|
@@ -13425,10 +13868,10 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13425
13868
|
else {
|
|
13426
13869
|
const targetAffiliatedFileRelativePath = es_extensions_nodejs_1.ImprovedPath.computeRelativePath({
|
|
13427
13870
|
basePath: this.CONSUMING_PROJECT_ROOT_DIRECTORY_ABSOLUTE_PATH,
|
|
13428
|
-
comparedPath:
|
|
13871
|
+
comparedPath: absolutePathOfFileWithChangesStatus,
|
|
13429
13872
|
alwaysForwardSlashSeparators: true
|
|
13430
13873
|
});
|
|
13431
|
-
if (fs_1.default.existsSync(
|
|
13874
|
+
if (fs_1.default.existsSync(absolutePathOfFileWithChangesStatus)) {
|
|
13432
13875
|
(0, es_extensions_1.addMultipleElementsToSet)(absolutePathsOfEntryPointsWhichMustBeProcessed, Array.from(this.affiliatedFilesMetadata.get(targetAffiliatedFileRelativePath)?.parentEntryPointsAbsolutePaths ?? []));
|
|
13433
13876
|
}
|
|
13434
13877
|
else {
|
|
@@ -13438,11 +13881,11 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13438
13881
|
}
|
|
13439
13882
|
return Array.from(absolutePathsOfEntryPointsWhichMustBeProcessed);
|
|
13440
13883
|
}
|
|
13441
|
-
/*
|
|
13884
|
+
/* ━━━ First Mapping Since Last YDA Launch ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
13442
13885
|
/* [ Theory ] The cached metadata from previous YDA launches could be. */
|
|
13443
|
-
generateInitialMetadataMaps() {
|
|
13444
|
-
this.
|
|
13445
|
-
for (const entryPointFileAbsolutePath of
|
|
13886
|
+
generateInitialMetadataMaps(initialEntryPointsAbsolutePaths) {
|
|
13887
|
+
this.extractCacheFromFileAndApplyIfItExists();
|
|
13888
|
+
for (const entryPointFileAbsolutePath of initialEntryPointsAbsolutePaths) {
|
|
13446
13889
|
const entryPointDirectoryAbsolutePath = es_extensions_nodejs_1.ImprovedPath.extractDirectoryFromFilePath({
|
|
13447
13890
|
targetPath: entryPointFileAbsolutePath,
|
|
13448
13891
|
alwaysForwardSlashSeparators: true,
|
|
@@ -13467,10 +13910,11 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13467
13910
|
continue;
|
|
13468
13911
|
}
|
|
13469
13912
|
es_extensions_1.Logger.logError({
|
|
13913
|
+
mustOutputIf: true || 0,
|
|
13470
13914
|
errorType: "FileStatisticsRetrievingFailedError",
|
|
13471
|
-
title: "File
|
|
13472
|
-
description:
|
|
13473
|
-
|
|
13915
|
+
title: "File Statistics Retrieving Failed Error",
|
|
13916
|
+
description: `Unable to retrieve the statistics of file "${entryPointFilePathRelativeToConsumingProjectRootDirectory}". ` +
|
|
13917
|
+
"This file will not be mapped.",
|
|
13474
13918
|
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper.generateInitialMetadataMaps()",
|
|
13475
13919
|
caughtError: error
|
|
13476
13920
|
});
|
|
@@ -13478,8 +13922,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13478
13922
|
}
|
|
13479
13923
|
const cachedMetadataOfCurrentEntryPoint = this.entryPointsMetadata.get(entryPointFilePathRelativeToConsumingProjectRootDirectory);
|
|
13480
13924
|
let absolutePathsOfDirectExistingAffiliatedFilesOfCurrentEntryPoint;
|
|
13481
|
-
if (
|
|
13482
|
-
cachedMetadataOfCurrentEntryPoint.modificationDate__ISO8601 === entryPointModificationDateTime__ISO8601) {
|
|
13925
|
+
if (cachedMetadataOfCurrentEntryPoint?.modificationDate__ISO8601 === entryPointModificationDateTime__ISO8601) {
|
|
13483
13926
|
/* [ Theory ] Although the entry point file is existing and has not changed since last mapping, its affiliated
|
|
13484
13927
|
* files could be added or deleted. */
|
|
13485
13928
|
absolutePathsOfDirectExistingAffiliatedFilesOfCurrentEntryPoint = new Set();
|
|
@@ -13512,7 +13955,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13512
13955
|
badge: { customText: "Debug" },
|
|
13513
13956
|
title: "SourceCodeSelectiveReprocessingHelper, entry point has been analyzed.",
|
|
13514
13957
|
description: `The metadata of entry point "${entryPointFilePathRelativeToConsumingProjectRootDirectory}" ` +
|
|
13515
|
-
`has been
|
|
13958
|
+
`has been is:\n${(0, es_extensions_1.stringifyAndFormatArbitraryValue)(this.entryPointsMetadata)}\n`
|
|
13516
13959
|
});
|
|
13517
13960
|
for (const absolutePathOfDirectExistingAffiliatedFileOfCurrentEntryPoint of absolutePathsOfDirectExistingAffiliatedFilesOfCurrentEntryPoint) {
|
|
13518
13961
|
this.updateMetadataMapForExistingAffiliatedFile({
|
|
@@ -13525,7 +13968,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13525
13968
|
}
|
|
13526
13969
|
this.absolutePathsOfAffiliatedFilesWhichHasBeenScannedDuringCurrentPass.clear();
|
|
13527
13970
|
}
|
|
13528
|
-
|
|
13971
|
+
extractCacheFromFileAndApplyIfItExists() {
|
|
13529
13972
|
let cachedRawMetadata;
|
|
13530
13973
|
try {
|
|
13531
13974
|
cachedRawMetadata = es_extensions_nodejs_1.ObjectDataFilesProcessor.processFile({
|
|
@@ -13535,12 +13978,13 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13535
13978
|
});
|
|
13536
13979
|
}
|
|
13537
13980
|
catch (error) {
|
|
13538
|
-
if (!(error instanceof es_extensions_nodejs_1.FileNotFoundError)
|
|
13981
|
+
if (!(error instanceof es_extensions_nodejs_1.FileNotFoundError)) {
|
|
13539
13982
|
es_extensions_1.Logger.logError({
|
|
13983
|
+
mustOutputIf: true || 0,
|
|
13540
13984
|
errorType: "CachedDataRetrievingFailure",
|
|
13541
|
-
title: "Cached
|
|
13985
|
+
title: "Cached Data Retrieving Failure",
|
|
13542
13986
|
description: `Unable to read the existing cache file "${this.CACHED_METADATA_FILE_ABSOLUTE_PATH}".`,
|
|
13543
|
-
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper.
|
|
13987
|
+
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper.extractCacheFromFileAndApplyIfItExists()",
|
|
13544
13988
|
caughtError: error
|
|
13545
13989
|
});
|
|
13546
13990
|
}
|
|
@@ -13567,38 +14011,38 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13567
14011
|
fileContent = fs_1.default.readFileSync(targetFileAbsolutePath, "utf-8");
|
|
13568
14012
|
}
|
|
13569
14013
|
catch (error) {
|
|
13570
|
-
if ((0, es_extensions_nodejs_1.isErrnoException)(error) && error.code === "ENOENT"
|
|
14014
|
+
if ((0, es_extensions_nodejs_1.isErrnoException)(error) && error.code === "ENOENT") {
|
|
13571
14015
|
es_extensions_1.Logger.logError({
|
|
14016
|
+
mustOutputIf: true || 0,
|
|
13572
14017
|
errorType: es_extensions_1.UnexpectedEventError.NAME,
|
|
13573
14018
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
13574
14019
|
description: `The existence of the file "${targetFileAbsolutePath}" has been confirmed one moment ago ` +
|
|
13575
14020
|
"but suddenly disappeared during reading. Skipping this file.",
|
|
13576
14021
|
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper." +
|
|
13577
|
-
"getAbsolutePathsOfExistingAffiliatedFilesOfExistingUpdatedTargetOne(
|
|
14022
|
+
"getAbsolutePathsOfExistingAffiliatedFilesOfExistingUpdatedTargetOne(compoundParameter)",
|
|
13578
14023
|
caughtError: error
|
|
13579
14024
|
});
|
|
13580
14025
|
return absolutePathsOfExistingAffiliatedFilesOfTargetOne;
|
|
13581
14026
|
}
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
}
|
|
14027
|
+
es_extensions_1.Logger.logError({
|
|
14028
|
+
mustOutputIf: true || 0,
|
|
14029
|
+
errorType: es_extensions_1.FileReadingFailedError.NAME,
|
|
14030
|
+
title: es_extensions_1.FileReadingFailedError.localization.defaultTitle,
|
|
14031
|
+
description: es_extensions_1.FileReadingFailedError.localization.generateDescription({ filePath: targetFileAbsolutePath }),
|
|
14032
|
+
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper." +
|
|
14033
|
+
"getAbsolutePathsOfExistingAffiliatedFilesOfExistingUpdatedTargetOne(compoundParameter)",
|
|
14034
|
+
caughtError: error
|
|
14035
|
+
});
|
|
13592
14036
|
return absolutePathsOfExistingAffiliatedFilesOfTargetOne;
|
|
13593
14037
|
}
|
|
13594
14038
|
for (const fileIncludingDeclarationPattern of this.affiliatedFilesResolutionRules.affiliatedFilesIncludingDeclarationsPatterns) {
|
|
13595
|
-
/* [ Theory ] Same file could be included for the multiple times.
|
|
13596
|
-
|
|
14039
|
+
/* [ Theory ] Same file could be included for the multiple times.
|
|
14040
|
+
* Occasionally it is even meaningful, but we are not need the duplicated here. */
|
|
13597
14041
|
const affiliatedFilesRawPaths = new Set(Array.from(fileContent.matchAll(fileIncludingDeclarationPattern)).
|
|
13598
14042
|
map((regularExpressionMatchingData) => regularExpressionMatchingData[1]).
|
|
13599
14043
|
filter((affiliatedFileRawPath) => (0, es_extensions_1.isNonEmptyString)(affiliatedFileRawPath)));
|
|
13600
14044
|
for (const affiliatedFileRawPath of affiliatedFilesRawPaths) {
|
|
13601
|
-
const affiliatedFileNormalizedPath = this.
|
|
14045
|
+
const affiliatedFileNormalizedPath = this.computeAbsolutePathOfAffiliatedFileIfItExists({
|
|
13602
14046
|
affiliatedFileRawPath,
|
|
13603
14047
|
parentFileDirectoryAbsolutePath: targetFileDirectoryAbsolutePath
|
|
13604
14048
|
});
|
|
@@ -13711,16 +14155,17 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13711
14155
|
});
|
|
13712
14156
|
}
|
|
13713
14157
|
}
|
|
13714
|
-
|
|
14158
|
+
computeAbsolutePathOfAffiliatedFileIfItExists({ affiliatedFileRawPath, parentFileDirectoryAbsolutePath }) {
|
|
13715
14159
|
const possibleAbsolutePathsOfTargetAffiliatedFile = new Set();
|
|
13716
14160
|
const explicitlySpecifiedLastFileNameExtensionInAffiliatedFileRawPath = (0, es_extensions_1.extractLastExtensionOfFileName)({ targetPath: affiliatedFileRawPath, withLeadingDot: false });
|
|
13717
|
-
/* [ Approach ]
|
|
14161
|
+
/* [ Approach ]
|
|
14162
|
+
* The second condition is aimed to the processing of paths with multiple files names extensions.
|
|
13718
14163
|
* For example, in the Pug preprocessor case, the file "ProductCard.static.pug" could be referred as
|
|
13719
|
-
*
|
|
14164
|
+
* `include ProductCard.static`. */
|
|
13720
14165
|
if ((0, es_extensions_1.isNull)(explicitlySpecifiedLastFileNameExtensionInAffiliatedFileRawPath) ||
|
|
13721
|
-
!this.affiliatedFilesResolutionRules.
|
|
14166
|
+
!this.affiliatedFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfAffiliatedFiles.
|
|
13722
14167
|
includes(explicitlySpecifiedLastFileNameExtensionInAffiliatedFileRawPath)) {
|
|
13723
|
-
(0, es_extensions_1.addMultipleElementsToSet)(possibleAbsolutePathsOfTargetAffiliatedFile,
|
|
14168
|
+
(0, es_extensions_1.addMultipleElementsToSet)(possibleAbsolutePathsOfTargetAffiliatedFile, this.affiliatedFilesResolutionRules.implicitFilesNamesExtensionsWithoutLeadingDotsOfAffiliatedFiles.map((affiliatedFileNameImplicitExtension) => es_extensions_nodejs_1.ImprovedPath.joinPathSegments([parentFileDirectoryAbsolutePath, `${affiliatedFileRawPath}.${affiliatedFileNameImplicitExtension}`], { alwaysForwardSlashSeparators: true })));
|
|
13724
14169
|
}
|
|
13725
14170
|
else {
|
|
13726
14171
|
possibleAbsolutePathsOfTargetAffiliatedFile.add(es_extensions_nodejs_1.ImprovedPath.joinPathSegments([parentFileDirectoryAbsolutePath, affiliatedFileRawPath], { alwaysForwardSlashSeparators: true }));
|
|
@@ -13739,7 +14184,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13739
14184
|
description: `The error occurred during the checking of the file ${possibleAbsolutePathOfTargetAffiliatedFile}` +
|
|
13740
14185
|
"for existence.",
|
|
13741
14186
|
occurrenceLocation: "sourceCodeSelectiveReprocessingHelper." +
|
|
13742
|
-
"
|
|
14187
|
+
"computeAbsolutePathOfAffiliatedFileIfItExists(compoundParameter)",
|
|
13743
14188
|
caughtError: error
|
|
13744
14189
|
});
|
|
13745
14190
|
}
|
|
@@ -13790,7 +14235,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13790
14235
|
fs_1.default.writeFileSync(this.CACHED_METADATA_FILE_ABSOLUTE_PATH, (0, es_extensions_1.stringifyAndFormatArbitraryValue)(outputData));
|
|
13791
14236
|
}
|
|
13792
14237
|
/* === Incremental remapping ====================================================================================== */
|
|
13793
|
-
/*
|
|
14238
|
+
/* ━━━ Logging ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
13794
14239
|
logAffiliatedFilesAndEntryPointsRelationships() {
|
|
13795
14240
|
let accumulatingString = "";
|
|
13796
14241
|
for (const [affiliatedFileRelativePath, affiliatedFileMetadata] of this.affiliatedFilesMetadata.entries()) {
|
|
@@ -13804,7 +14249,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
13804
14249
|
}
|
|
13805
14250
|
}
|
|
13806
14251
|
es_extensions_1.Logger.logInfo({
|
|
13807
|
-
title: `${this.TARGET_FILES_TYPE_IN_SINGULAR_FORM}
|
|
14252
|
+
title: `${this.TARGET_FILES_TYPE_IN_SINGULAR_FORM} Affiliated Files and Respective Parent Entry Points Relationships`,
|
|
13808
14253
|
description: accumulatingString.length > 0 ? accumulatingString : "No existing affiliated files has been found."
|
|
13809
14254
|
});
|
|
13810
14255
|
}
|
|
@@ -14289,6 +14734,16 @@ module.exports = require("node:util");
|
|
|
14289
14734
|
|
|
14290
14735
|
/***/ }),
|
|
14291
14736
|
|
|
14737
|
+
/***/ "os":
|
|
14738
|
+
/*!*********************!*\
|
|
14739
|
+
!*** external "os" ***!
|
|
14740
|
+
\*********************/
|
|
14741
|
+
/***/ ((module) => {
|
|
14742
|
+
|
|
14743
|
+
module.exports = require("os");
|
|
14744
|
+
|
|
14745
|
+
/***/ }),
|
|
14746
|
+
|
|
14292
14747
|
/***/ "path":
|
|
14293
14748
|
/*!***********************!*\
|
|
14294
14749
|
!*** external "path" ***!
|
|
@@ -14341,7 +14796,7 @@ function revisionHash(data) {
|
|
|
14341
14796
|
\***********************/
|
|
14342
14797
|
/***/ ((module) => {
|
|
14343
14798
|
|
|
14344
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.
|
|
14799
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.5.0-alpha.0","description":"The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.","keywords":["build","pug","stylus","tool","typescript"],"engines":{"node":">=18.18.0"},"bin":{"yda":"Executable"},"files":["EntryPoint.js"],"dependencies":{"@stylistic/eslint-plugin":"1.7.2","@typescript-eslint/eslint-plugin":"7.12.0","@typescript-eslint/parser":"7.12.0","@vue/compiler-sfc":"3.4.27","@webdiscus/pug-loader":"2.11.0","@yamato-daiwa/es-extensions":"1.7.0-rc.2","@yamato-daiwa/es-extensions-nodejs":"1.7.0-alpha.10","@yamato-daiwa/style_guides":"0.2.7","autoprefixer":"10.4.19","browser-sync":"3.0.2","css-loader":"7.1.2","cssnano":"7.0.2","eslint":"8.57.0","eslint-plugin-import":"2.29.1","eslint-plugin-node":"11.1.0","eslint-plugin-react":"7.34.2","eslint-plugin-vue":"9.26.0","eslint-plugin-vue-pug":"0.6.2","fork-ts-checker-webpack-plugin":"7.3.0","gulp":"4.0.2","gulp-data":"1.3.1","gulp-html-prettify":"0.0.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","imagemin-pngquant":"9.0.2","json5-loader":"4.0.1","node-html-parser":"6.1.13","node-notifier":"10.0.1","pa11y":"8.0.0","probe-image-size":"7.2.3","pug3-ast-loader":"0.0.0","pug-lint":"2.7.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.0","ts-loader":"9.5.1","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"0.8.1","webpack":"5.91.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-html-prettify":"0.0.5","@types/gulp-if":"3.0.4","@types/gulp-imagemin":"8.0.6","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.37","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.38","@types/gulp-stylus":"2.7.8","@types/node":"20.14.2","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.4","@types/pug":"2.0.10","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"5.4.5","webpack-cli":"5.1.4"},"scripts":{"Incremental development building":"webpack --mode development","Production building":"webpack --mode production","Linting":"eslint Source","Tree diagram of source files generating":"tree Source /f"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
|
|
14345
14800
|
|
|
14346
14801
|
/***/ })
|
|
14347
14802
|
|