@yamato-daiwa/automation 0.3.1 → 0.3.2
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 +615 -557
- package/LICENSE +1 -1
- package/package.json +1 -1
package/EntryPoint.js
CHANGED
|
@@ -172,6 +172,7 @@ const LocalDevelopmentServerOrchestrator_1 = __importDefault(__webpack_require__
|
|
|
172
172
|
const BrowserLiveReloader_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserLiveReloader */ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloader.ts"));
|
|
173
173
|
/* --- Applied utils ------------------------------------------------------------------------------------------------ */
|
|
174
174
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
175
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
175
176
|
/* --- General utils ------------------------------------------------------------------------------------------------ */
|
|
176
177
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
177
178
|
class ProjectBuilder {
|
|
@@ -213,6 +214,7 @@ class ProjectBuilder {
|
|
|
213
214
|
VideosProcessor_1.default.provideVideosProcessingIfMust(masterConfigRepresentative),
|
|
214
215
|
MarkupProcessor_1.default.provideMarkupProcessingIfMust(masterConfigRepresentative),
|
|
215
216
|
gulp_1.default.parallel([
|
|
217
|
+
FilesMasterWatcher_1.default.watchIfMust(masterConfigRepresentative),
|
|
216
218
|
LocalDevelopmentServerOrchestrator_1.default.orchestrateIfMust(masterConfigRepresentative),
|
|
217
219
|
BrowserLiveReloader_1.default.provideBrowserLiveReloadingIfMust(masterConfigRepresentative)
|
|
218
220
|
])
|
|
@@ -434,7 +436,6 @@ const AudiosSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Audi
|
|
|
434
436
|
const GulpStreamsBasedAssetsProcessor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor.ts"));
|
|
435
437
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
436
438
|
const AudiosProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @AudiosProcessing/AudiosProcessingSharedState */ "./ProjectBuilding/AssetsProcessing/Audios/AudiosProcessingSharedState.ts"));
|
|
437
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
438
439
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
439
440
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
440
441
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
@@ -451,26 +452,25 @@ class AudiosProcessor extends GulpStreamsBasedAssetsProcessor_1.default {
|
|
|
451
452
|
return (0, createImmediatelyEndingEmptyStream_1.default)();
|
|
452
453
|
}
|
|
453
454
|
const dataHoldingSelfInstance = new AudiosProcessor(projectBuildingMasterConfigRepresentative, audiosProcessingSettingsRepresentative);
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
set("BY_AUDIOS_PROCESSOR", () => { audiosSourceFilesWatcher.startWatching(); });
|
|
455
|
+
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
456
|
+
AudiosSourceFilesWatcher_1.default.
|
|
457
|
+
initializeIfRequiredAndGetInstance({
|
|
458
|
+
audiosProcessingSettingsRepresentative,
|
|
459
|
+
projectBuildingMasterConfigRepresentative
|
|
460
|
+
}).
|
|
461
|
+
addOnFileAddedEventHandler({
|
|
462
|
+
handlerID: "ON_AUDIO_FILE_ADDED--BY_AUDIOS_PROCESSOR",
|
|
463
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
464
|
+
}).
|
|
465
|
+
addFileUpdatedEventHandler({
|
|
466
|
+
handlerID: "ON_AUDIO_FILE_UPDATED--BY_AUDIOS_PROCESSOR",
|
|
467
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
468
|
+
}).
|
|
469
|
+
addOnFileDeletedEventHandler({
|
|
470
|
+
handlerID: "ON_AUDIO_FILE_DELETED--BY_AUDIOS_PROCESSOR",
|
|
471
|
+
handler: dataHoldingSelfInstance.onAudioFileDeleted.bind(dataHoldingSelfInstance)
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
474
|
return dataHoldingSelfInstance.processAssets(audiosProcessingSettingsRepresentative.actualAssetsSourceFilesAbsolutePaths);
|
|
475
475
|
}
|
|
476
476
|
constructor(projectBuildingMasterConfigRepresentative, audiosProcessingSettingsRepresentative) {
|
|
@@ -535,28 +535,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
535
535
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
536
536
|
};
|
|
537
537
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
538
|
-
|
|
538
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
539
|
+
const AssetsSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts"));
|
|
540
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
539
541
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
540
542
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
541
543
|
class AudiosSourceFilesWatcher extends AssetsSourceFilesWatcher_1.default {
|
|
542
544
|
static selfSoleInstance = null;
|
|
543
|
-
mustLogSourceFilesWatcherEvents;
|
|
544
|
-
audiosProcessingSettingsRepresentative;
|
|
545
545
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
546
546
|
if ((0, es_extensions_1.isNull)(AudiosSourceFilesWatcher.selfSoleInstance)) {
|
|
547
547
|
AudiosSourceFilesWatcher.selfSoleInstance = new AudiosSourceFilesWatcher(initializationRequirements);
|
|
548
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(AudiosSourceFilesWatcher.selfSoleInstance);
|
|
548
549
|
}
|
|
549
550
|
return AudiosSourceFilesWatcher.selfSoleInstance;
|
|
550
551
|
}
|
|
551
552
|
constructor({ audiosProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
552
553
|
super({
|
|
554
|
+
ID: "AUDIOS_SOURCE_FILES_WATCHER",
|
|
555
|
+
mustLogEvents: audiosProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents,
|
|
553
556
|
projectBuildingMasterConfigRepresentative,
|
|
554
557
|
targetFilesNamesExtensionsWithoutLeadingDots: audiosProcessingSettingsRepresentative.
|
|
555
558
|
supportedSourceFilesNamesExtensionsWithoutLeadingDots,
|
|
559
|
+
outputFilesGlobSelectors: audiosProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
556
560
|
targetSourceFilesType__singularForm: "Audio"
|
|
557
561
|
});
|
|
558
|
-
this.audiosProcessingSettingsRepresentative = audiosProcessingSettingsRepresentative;
|
|
559
|
-
this.mustLogSourceFilesWatcherEvents = this.audiosProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents;
|
|
560
562
|
}
|
|
561
563
|
}
|
|
562
564
|
exports["default"] = AudiosSourceFilesWatcher;
|
|
@@ -760,7 +762,6 @@ const FontsSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Fonts
|
|
|
760
762
|
const GulpStreamsBasedAssetsProcessor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor.ts"));
|
|
761
763
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
762
764
|
const FontsProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @FontsProcessing/FontsProcessingSharedState */ "./ProjectBuilding/AssetsProcessing/Fonts/FontsProcessingSharedState.ts"));
|
|
763
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
764
765
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
765
766
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
766
767
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
@@ -777,26 +778,25 @@ class FontsProcessor extends GulpStreamsBasedAssetsProcessor_1.default {
|
|
|
777
778
|
return (0, createImmediatelyEndingEmptyStream_1.default)();
|
|
778
779
|
}
|
|
779
780
|
const dataHoldingSelfInstance = new FontsProcessor(projectBuildingMasterConfigRepresentative, fontsProcessingSettingsRepresentative);
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
set("BY_FONTS_PROCESSOR", () => { fontsSourceFilesWatcher.startWatching(); });
|
|
781
|
+
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
782
|
+
FontsSourceFilesWatcher_1.default.
|
|
783
|
+
initializeIfRequiredAndGetInstance({
|
|
784
|
+
fontsProcessingSettingsRepresentative,
|
|
785
|
+
projectBuildingMasterConfigRepresentative
|
|
786
|
+
}).
|
|
787
|
+
addOnFileAddedEventHandler({
|
|
788
|
+
handlerID: "ON_FONTS_FILE_ADDED--BY_FONTS_PROCESSOR",
|
|
789
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
790
|
+
}).
|
|
791
|
+
addFileUpdatedEventHandler({
|
|
792
|
+
handlerID: "ON_FONTS_FILE_UPDATED--BY_FONTS_PROCESSOR",
|
|
793
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
794
|
+
}).
|
|
795
|
+
addOnFileDeletedEventHandler({
|
|
796
|
+
handlerID: "ON_FONTS_FILE_DELETED--BY_FONTS_PROCESSOR",
|
|
797
|
+
handler: dataHoldingSelfInstance.onFontFileDeleted.bind(dataHoldingSelfInstance)
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
800
|
return dataHoldingSelfInstance.processAssets(fontsProcessingSettingsRepresentative.actualAssetsSourceFilesAbsolutePaths);
|
|
801
801
|
}
|
|
802
802
|
constructor(projectBuildingMasterConfigRepresentative, fontsProcessingSettingsRepresentative) {
|
|
@@ -861,28 +861,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
861
861
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
862
862
|
};
|
|
863
863
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
864
|
-
|
|
864
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
865
|
+
const AssetsSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts"));
|
|
866
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
865
867
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
866
868
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
867
869
|
class FontsSourceFilesWatcher extends AssetsSourceFilesWatcher_1.default {
|
|
868
870
|
static selfSoleInstance = null;
|
|
869
|
-
mustLogSourceFilesWatcherEvents;
|
|
870
|
-
fontsProcessingSettingsRepresentative;
|
|
871
871
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
872
872
|
if ((0, es_extensions_1.isNull)(FontsSourceFilesWatcher.selfSoleInstance)) {
|
|
873
873
|
FontsSourceFilesWatcher.selfSoleInstance = new FontsSourceFilesWatcher(initializationRequirements);
|
|
874
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(FontsSourceFilesWatcher.selfSoleInstance);
|
|
874
875
|
}
|
|
875
876
|
return FontsSourceFilesWatcher.selfSoleInstance;
|
|
876
877
|
}
|
|
877
878
|
constructor({ fontsProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
878
879
|
super({
|
|
880
|
+
ID: "FONTS_SOURCE_FILES_WATCHER",
|
|
881
|
+
mustLogEvents: fontsProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents,
|
|
879
882
|
projectBuildingMasterConfigRepresentative,
|
|
880
883
|
targetFilesNamesExtensionsWithoutLeadingDots: fontsProcessingSettingsRepresentative.
|
|
881
884
|
supportedSourceFilesNamesExtensionsWithoutLeadingDots,
|
|
885
|
+
outputFilesGlobSelectors: fontsProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
882
886
|
targetSourceFilesType__singularForm: "Video"
|
|
883
887
|
});
|
|
884
|
-
this.fontsProcessingSettingsRepresentative = fontsProcessingSettingsRepresentative;
|
|
885
|
-
this.mustLogSourceFilesWatcherEvents = this.fontsProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents;
|
|
886
888
|
}
|
|
887
889
|
}
|
|
888
890
|
exports["default"] = FontsSourceFilesWatcher;
|
|
@@ -1085,7 +1087,6 @@ const ImagesSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Imag
|
|
|
1085
1087
|
const GulpStreamsBasedAssetsProcessor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor.ts"));
|
|
1086
1088
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1087
1089
|
const ImagesProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @ImagesProcessing/ImagesProcessingSharedState */ "./ProjectBuilding/AssetsProcessing/Images/ImagesProcessingSharedState.ts"));
|
|
1088
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
1089
1090
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1090
1091
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
1091
1092
|
const gulp_if_1 = __importDefault(__webpack_require__(/*! gulp-if */ "gulp-if"));
|
|
@@ -1105,26 +1106,25 @@ class ImagesProcessor extends GulpStreamsBasedAssetsProcessor_1.default {
|
|
|
1105
1106
|
return (0, createImmediatelyEndingEmptyStream_1.default)();
|
|
1106
1107
|
}
|
|
1107
1108
|
const dataHoldingSelfInstance = new ImagesProcessor(projectBuildingMasterConfigRepresentative, imagesProcessingSettingsRepresentative);
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
set("BY_IMAGES_PROCESSOR", () => { imagesSourceFilesWatcher.startWatching(); });
|
|
1109
|
+
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
1110
|
+
ImagesSourceFilesWatcher_1.default.
|
|
1111
|
+
initializeIfRequiredAndGetInstance({
|
|
1112
|
+
imagesProcessingSettingsRepresentative,
|
|
1113
|
+
projectBuildingMasterConfigRepresentative
|
|
1114
|
+
}).
|
|
1115
|
+
addOnFileAddedEventHandler({
|
|
1116
|
+
handlerID: "ON_IMAGES_FILE_ADDED--BY_IMAGES_PROCESSOR",
|
|
1117
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
1118
|
+
}).
|
|
1119
|
+
addFileUpdatedEventHandler({
|
|
1120
|
+
handlerID: "ON_IMAGES_FILE_UPDATED--BY_IMAGES_PROCESSOR",
|
|
1121
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
1122
|
+
}).
|
|
1123
|
+
addOnFileDeletedEventHandler({
|
|
1124
|
+
handlerID: "ON_IMAGES_FILE_DELETED--BY_IMAGES_PROCESSOR",
|
|
1125
|
+
handler: dataHoldingSelfInstance.onImageFileDeleted.bind(dataHoldingSelfInstance)
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
1128
|
return dataHoldingSelfInstance.processAssets(imagesProcessingSettingsRepresentative.actualAssetsSourceFilesAbsolutePaths);
|
|
1129
1129
|
}
|
|
1130
1130
|
constructor(projectBuildingMasterConfigRepresentative, imagesProcessingSettingsRepresentative) {
|
|
@@ -1196,28 +1196,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1196
1196
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1197
1197
|
};
|
|
1198
1198
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1199
|
-
|
|
1199
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1200
|
+
const AssetsSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts"));
|
|
1201
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
1200
1202
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1201
1203
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1202
1204
|
class ImagesSourceFilesWatcher extends AssetsSourceFilesWatcher_1.default {
|
|
1203
1205
|
static selfSoleInstance = null;
|
|
1204
|
-
mustLogSourceFilesWatcherEvents;
|
|
1205
|
-
imagesProcessingSettingsRepresentative;
|
|
1206
1206
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
1207
1207
|
if ((0, es_extensions_1.isNull)(ImagesSourceFilesWatcher.selfSoleInstance)) {
|
|
1208
1208
|
ImagesSourceFilesWatcher.selfSoleInstance = new ImagesSourceFilesWatcher(initializationRequirements);
|
|
1209
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(ImagesSourceFilesWatcher.selfSoleInstance);
|
|
1209
1210
|
}
|
|
1210
1211
|
return ImagesSourceFilesWatcher.selfSoleInstance;
|
|
1211
1212
|
}
|
|
1212
1213
|
constructor({ imagesProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
1213
1214
|
super({
|
|
1215
|
+
ID: "IMAGE_SOURCE_FILES_WATCHER",
|
|
1216
|
+
mustLogEvents: imagesProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents,
|
|
1214
1217
|
projectBuildingMasterConfigRepresentative,
|
|
1215
1218
|
targetFilesNamesExtensionsWithoutLeadingDots: imagesProcessingSettingsRepresentative.
|
|
1216
1219
|
supportedSourceFilesNamesExtensionsWithoutLeadingDots,
|
|
1220
|
+
outputFilesGlobSelectors: imagesProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
1217
1221
|
targetSourceFilesType__singularForm: "Image"
|
|
1218
1222
|
});
|
|
1219
|
-
this.imagesProcessingSettingsRepresentative = imagesProcessingSettingsRepresentative;
|
|
1220
|
-
this.mustLogSourceFilesWatcherEvents = this.imagesProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents;
|
|
1221
1223
|
}
|
|
1222
1224
|
}
|
|
1223
1225
|
exports["default"] = ImagesSourceFilesWatcher;
|
|
@@ -1420,7 +1422,6 @@ const VideosSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Vide
|
|
|
1420
1422
|
const GulpStreamsBasedAssetsProcessor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor.ts"));
|
|
1421
1423
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1422
1424
|
const VideosProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @VideosProcessing/VideosProcessingSharedState */ "./ProjectBuilding/AssetsProcessing/Videos/VideosProcessingSharedState.ts"));
|
|
1423
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
1424
1425
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1425
1426
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
1426
1427
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
@@ -1437,26 +1438,25 @@ class VideosProcessor extends GulpStreamsBasedAssetsProcessor_1.default {
|
|
|
1437
1438
|
return (0, createImmediatelyEndingEmptyStream_1.default)();
|
|
1438
1439
|
}
|
|
1439
1440
|
const dataHoldingSelfInstance = new VideosProcessor(projectBuildingMasterConfigRepresentative, videosProcessingSettingsRepresentative);
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
set("BY_VIDEOS_PROCESSOR", () => { videosSourceFilesWatcher.startWatching(); });
|
|
1441
|
+
if (projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
1442
|
+
VideosSourceFilesWatcher_1.default.
|
|
1443
|
+
initializeIfRequiredAndGetInstance({
|
|
1444
|
+
videosProcessingSettingsRepresentative,
|
|
1445
|
+
projectBuildingMasterConfigRepresentative
|
|
1446
|
+
}).
|
|
1447
|
+
addOnFileAddedEventHandler({
|
|
1448
|
+
handlerID: "ON_VIDEO_FILE_ADDED--BY_VIDEOS_PROCESSOR",
|
|
1449
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
1450
|
+
}).
|
|
1451
|
+
addFileUpdatedEventHandler({
|
|
1452
|
+
handlerID: "ON_VIDEO_FILE_UPDATED--BY_VIDEOS_PROCESSOR",
|
|
1453
|
+
handler: dataHoldingSelfInstance.onSourceFilesWatcherEmittedFileAddingOrUpdatingEvent.bind(dataHoldingSelfInstance)
|
|
1454
|
+
}).
|
|
1455
|
+
addOnFileDeletedEventHandler({
|
|
1456
|
+
handlerID: "ON_VIDEO_FILE_DELETED--BY_VIDEOS_PROCESSOR",
|
|
1457
|
+
handler: dataHoldingSelfInstance.onVideoFileDeleted.bind(dataHoldingSelfInstance)
|
|
1458
|
+
});
|
|
1459
|
+
}
|
|
1460
1460
|
return dataHoldingSelfInstance.processAssets(videosProcessingSettingsRepresentative.actualAssetsSourceFilesAbsolutePaths);
|
|
1461
1461
|
}
|
|
1462
1462
|
constructor(projectBuildingMasterConfigRepresentative, videosProcessingConfigRepresentative) {
|
|
@@ -1521,33 +1521,75 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1521
1521
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1522
1522
|
};
|
|
1523
1523
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1524
|
-
|
|
1524
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1525
|
+
const AssetsSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts"));
|
|
1526
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
1525
1527
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1526
1528
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1527
1529
|
class VideosSourceFilesWatcher extends AssetsSourceFilesWatcher_1.default {
|
|
1528
1530
|
static selfSoleInstance = null;
|
|
1529
|
-
mustLogSourceFilesWatcherEvents;
|
|
1530
|
-
videosProcessingSettingsRepresentative;
|
|
1531
1531
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
1532
1532
|
if ((0, es_extensions_1.isNull)(VideosSourceFilesWatcher.selfSoleInstance)) {
|
|
1533
1533
|
VideosSourceFilesWatcher.selfSoleInstance = new VideosSourceFilesWatcher(initializationRequirements);
|
|
1534
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(VideosSourceFilesWatcher.selfSoleInstance);
|
|
1534
1535
|
}
|
|
1535
1536
|
return VideosSourceFilesWatcher.selfSoleInstance;
|
|
1536
1537
|
}
|
|
1537
1538
|
constructor({ videosProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
1538
1539
|
super({
|
|
1540
|
+
ID: "VIDEOS_SOURCE_FILES_WATCHER",
|
|
1541
|
+
mustLogEvents: videosProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents,
|
|
1539
1542
|
projectBuildingMasterConfigRepresentative,
|
|
1540
1543
|
targetFilesNamesExtensionsWithoutLeadingDots: videosProcessingSettingsRepresentative.
|
|
1541
1544
|
supportedSourceFilesNamesExtensionsWithoutLeadingDots,
|
|
1545
|
+
outputFilesGlobSelectors: videosProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
1542
1546
|
targetSourceFilesType__singularForm: "Video"
|
|
1543
1547
|
});
|
|
1544
|
-
this.videosProcessingSettingsRepresentative = videosProcessingSettingsRepresentative;
|
|
1545
|
-
this.mustLogSourceFilesWatcherEvents = this.videosProcessingSettingsRepresentative.loggingSettings.filesWatcherEvents;
|
|
1546
1548
|
}
|
|
1547
1549
|
}
|
|
1548
1550
|
exports["default"] = VideosSourceFilesWatcher;
|
|
1549
1551
|
|
|
1550
1552
|
|
|
1553
|
+
/***/ }),
|
|
1554
|
+
|
|
1555
|
+
/***/ "./ProjectBuilding/BrowserLiveReloading/BrowserCoordinatorRelatedFilesWatcher.ts":
|
|
1556
|
+
/*!***************************************************************************************!*\
|
|
1557
|
+
!*** ./ProjectBuilding/BrowserLiveReloading/BrowserCoordinatorRelatedFilesWatcher.ts ***!
|
|
1558
|
+
\***************************************************************************************/
|
|
1559
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1560
|
+
|
|
1561
|
+
|
|
1562
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1563
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1564
|
+
};
|
|
1565
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1566
|
+
const FilesPassiveWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher.ts"));
|
|
1567
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
1568
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
1569
|
+
class BrowserCoordinatorRelatedFilesWatcher extends FilesPassiveWatcher_1.default {
|
|
1570
|
+
onAnyEventRelatedWithActualFilesHandler;
|
|
1571
|
+
static initialize(initializationRequirements) {
|
|
1572
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(new BrowserCoordinatorRelatedFilesWatcher(initializationRequirements));
|
|
1573
|
+
}
|
|
1574
|
+
constructor({ browserLiveReloadingSettingsRepresentative, onAnyEventRelatedWithActualFilesHandler }) {
|
|
1575
|
+
super({
|
|
1576
|
+
ID: "BROWSER_COORDINATOR_RELATED_FILES_WATCHER",
|
|
1577
|
+
targetFilesGlobSelectors: [
|
|
1578
|
+
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
1579
|
+
basicDirectoryPath: browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath
|
|
1580
|
+
})
|
|
1581
|
+
],
|
|
1582
|
+
mustLogEvents: browserLiveReloadingSettingsRepresentative.mustLogOutputFileChangeDetection
|
|
1583
|
+
});
|
|
1584
|
+
this.onAnyEventRelatedWithActualFilesHandler = onAnyEventRelatedWithActualFilesHandler;
|
|
1585
|
+
}
|
|
1586
|
+
notifyAboutRelatedFileStateChange(targetFileAbsolutePath__forwardSlashesPathSeparators, eventName) {
|
|
1587
|
+
this.onAnyEventRelatedWithActualFilesHandler(targetFileAbsolutePath__forwardSlashesPathSeparators, eventName);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
exports["default"] = BrowserCoordinatorRelatedFilesWatcher;
|
|
1591
|
+
|
|
1592
|
+
|
|
1551
1593
|
/***/ }),
|
|
1552
1594
|
|
|
1553
1595
|
/***/ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloader.ts":
|
|
@@ -1562,12 +1604,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1562
1604
|
};
|
|
1563
1605
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1564
1606
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
1565
|
-
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
1566
1607
|
const browser_sync_1 = __importDefault(__webpack_require__(/*! browser-sync */ "browser-sync"));
|
|
1567
|
-
|
|
1568
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
1569
|
-
/* ─── Third-party Solutions Specialises ──────────────────────────────────────────────────────────────────────────── */
|
|
1570
|
-
const ChokidarSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist */ "./ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist.ts"));
|
|
1608
|
+
const BrowserCoordinatorRelatedFilesWatcher_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserCoordinatorRelatedFilesWatcher */ "./ProjectBuilding/BrowserLiveReloading/BrowserCoordinatorRelatedFilesWatcher.ts"));
|
|
1571
1609
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1572
1610
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
1573
1611
|
/* ─── Localization ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
@@ -1576,6 +1614,7 @@ class BrowserLiveReloader {
|
|
|
1576
1614
|
static localization = BrowserLiveReloaderLocalization_english_1.default;
|
|
1577
1615
|
static onURI_ChangedEventHandlers = [];
|
|
1578
1616
|
browserLiveReloadingSettingsRepresentative;
|
|
1617
|
+
waitingForSubsequentFilesWillBeUpdatedCountdown;
|
|
1579
1618
|
static provideBrowserLiveReloadingIfMust(masterConfigRepresentative) {
|
|
1580
1619
|
const browserLiveReloadingConfigRepresentative = masterConfigRepresentative.getBrowserLiveReloadingSettingsRepresentativeIfMustProvideBrowserLiveReloading();
|
|
1581
1620
|
if ((0, es_extensions_1.isNull)(browserLiveReloadingConfigRepresentative)) {
|
|
@@ -1583,8 +1622,12 @@ class BrowserLiveReloader {
|
|
|
1583
1622
|
}
|
|
1584
1623
|
const dataHoldingSelfInstance = new BrowserLiveReloader(browserLiveReloadingConfigRepresentative);
|
|
1585
1624
|
return () => {
|
|
1625
|
+
BrowserCoordinatorRelatedFilesWatcher_1.default.initialize({
|
|
1626
|
+
onAnyEventRelatedWithActualFilesHandler: dataHoldingSelfInstance.onAnyChangeInRelatedFiles.
|
|
1627
|
+
bind(dataHoldingSelfInstance),
|
|
1628
|
+
browserLiveReloadingSettingsRepresentative: browserLiveReloadingConfigRepresentative
|
|
1629
|
+
});
|
|
1586
1630
|
dataHoldingSelfInstance.initializeBrowsersync();
|
|
1587
|
-
dataHoldingSelfInstance.initializeOutputFilesWatcher();
|
|
1588
1631
|
};
|
|
1589
1632
|
}
|
|
1590
1633
|
static addOnURI_ChangedEventHandler(onURI_ChangedEventHandler) {
|
|
@@ -1624,33 +1667,18 @@ class BrowserLiveReloader {
|
|
|
1624
1667
|
logLevel: "warn",
|
|
1625
1668
|
notify: this.browserLiveReloadingSettingsRepresentative.mustDisplayBrowsersyncConnectedPopupInBrowser,
|
|
1626
1669
|
middleware: this.onRequest.bind(this)
|
|
1627
|
-
}, () => { CommonSharedState_1.default.triggerInitialBuildDoneEvent(); });
|
|
1628
|
-
}
|
|
1629
|
-
initializeOutputFilesWatcher() {
|
|
1630
|
-
let waitingForSubsequentFilesWillBeUpdatedCountdown;
|
|
1631
|
-
gulp_1.default.watch(es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
1632
|
-
basicDirectoryPath: this.browserLiveReloadingSettingsRepresentative.targetFilesRootDirectoryAbsolutePath
|
|
1633
|
-
})).
|
|
1634
|
-
on("all", (eventName, fileOrDirectoryPath) => {
|
|
1635
|
-
if (eventName === ChokidarSpecialist_1.default.EventsNames.directoryAdded ||
|
|
1636
|
-
eventName === ChokidarSpecialist_1.default.EventsNames.directoryDeleted) {
|
|
1637
|
-
return;
|
|
1638
|
-
}
|
|
1639
|
-
clearTimeout(waitingForSubsequentFilesWillBeUpdatedCountdown);
|
|
1640
|
-
if (this.browserLiveReloadingSettingsRepresentative.mustLogOutputFileChangeDetection) {
|
|
1641
|
-
es_extensions_1.Logger.logInfo(BrowserLiveReloader.localization.generateOutputFileChangeDetectionLog({
|
|
1642
|
-
filePath: fileOrDirectoryPath,
|
|
1643
|
-
eventLocalizedInterpretation: ChokidarSpecialist_1.default.getEventNameInterpretation(eventName)
|
|
1644
|
-
}));
|
|
1645
|
-
}
|
|
1646
|
-
waitingForSubsequentFilesWillBeUpdatedCountdown = setTimeout(() => {
|
|
1647
|
-
if (this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon) {
|
|
1648
|
-
es_extensions_1.Logger.logInfo(BrowserLiveReloader.localization.browserTabWillBeReloadedSoonLog);
|
|
1649
|
-
}
|
|
1650
|
-
browser_sync_1.default.reload();
|
|
1651
|
-
}, (0, es_extensions_1.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds));
|
|
1652
1670
|
});
|
|
1653
1671
|
}
|
|
1672
|
+
onAnyChangeInRelatedFiles() {
|
|
1673
|
+
clearTimeout(this.waitingForSubsequentFilesWillBeUpdatedCountdown);
|
|
1674
|
+
this.waitingForSubsequentFilesWillBeUpdatedCountdown = setTimeout(() => {
|
|
1675
|
+
es_extensions_1.Logger.logInfo({
|
|
1676
|
+
mustOutputIf: this.browserLiveReloadingSettingsRepresentative.mustLogBrowserTabWillBeReloadedSoon,
|
|
1677
|
+
...BrowserLiveReloader.localization.browserTabWillBeReloadedSoonLog
|
|
1678
|
+
});
|
|
1679
|
+
browser_sync_1.default.reload();
|
|
1680
|
+
}, (0, es_extensions_1.secondsToMilliseconds)(this.browserLiveReloadingSettingsRepresentative.periodBetweenFileUpdatingAndBrowserReloading__seconds));
|
|
1681
|
+
}
|
|
1654
1682
|
onRequest(request, _response, letPass) {
|
|
1655
1683
|
if ((0, es_extensions_1.isUndefined)(request.url)) {
|
|
1656
1684
|
letPass();
|
|
@@ -2099,41 +2127,6 @@ const browserLiveReloadingSettingsNormalizerLocalization__english = {
|
|
|
2099
2127
|
exports["default"] = browserLiveReloadingSettingsNormalizerLocalization__english;
|
|
2100
2128
|
|
|
2101
2129
|
|
|
2102
|
-
/***/ }),
|
|
2103
|
-
|
|
2104
|
-
/***/ "./ProjectBuilding/Common/CommonSharedState.ts":
|
|
2105
|
-
/*!*****************************************************!*\
|
|
2106
|
-
!*** ./ProjectBuilding/Common/CommonSharedState.ts ***!
|
|
2107
|
-
\*****************************************************/
|
|
2108
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2112
|
-
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
2113
|
-
class CommonSharedState {
|
|
2114
|
-
/* ━━━ Events ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
2115
|
-
/* ─── On initial build done ────────────────────────────────────────────────────────────────────────────────────── */
|
|
2116
|
-
static onInitialBuildDoneEventHandlers = new Map();
|
|
2117
|
-
static triggerInitialBuildDoneEvent() {
|
|
2118
|
-
for (const [handlerID, handler] of CommonSharedState.onInitialBuildDoneEventHandlers.entries()) {
|
|
2119
|
-
try {
|
|
2120
|
-
handler();
|
|
2121
|
-
}
|
|
2122
|
-
catch (error) {
|
|
2123
|
-
es_extensions_1.Logger.logError({
|
|
2124
|
-
errorType: "EventHandlerExecutionFailedError",
|
|
2125
|
-
title: "Event handler execution failed",
|
|
2126
|
-
description: `The error has occurred during the execution of on initial build done event handler with ID: "${handlerID}".`,
|
|
2127
|
-
occurrenceLocation: "CommonSharedState.triggerInitialBuildDoneEvent()",
|
|
2128
|
-
caughtError: error
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
exports["default"] = CommonSharedState;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
2130
|
/***/ }),
|
|
2138
2131
|
|
|
2139
2132
|
/***/ "./ProjectBuilding/Common/Defaults/AssetsProcessingGenericSettings__Default.ts":
|
|
@@ -2167,8 +2160,420 @@ exports["default"] = {
|
|
|
2167
2160
|
|
|
2168
2161
|
|
|
2169
2162
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2170
|
-
const CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION = "yda.config.yaml";
|
|
2171
|
-
exports["default"] = CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION;
|
|
2163
|
+
const CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION = "yda.config.yaml";
|
|
2164
|
+
exports["default"] = CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION;
|
|
2165
|
+
|
|
2166
|
+
|
|
2167
|
+
/***/ }),
|
|
2168
|
+
|
|
2169
|
+
/***/ "./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts":
|
|
2170
|
+
/*!**************************************************************************!*\
|
|
2171
|
+
!*** ./ProjectBuilding/Common/FilesWatchers/AssetsSourceFilesWatcher.ts ***!
|
|
2172
|
+
\**************************************************************************/
|
|
2173
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2174
|
+
|
|
2175
|
+
|
|
2176
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2177
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2178
|
+
};
|
|
2179
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2180
|
+
/* ─── Superclass ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2181
|
+
const FilesPassiveWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher.ts"));
|
|
2182
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2183
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
2184
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2185
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
2186
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
2187
|
+
class AssetsSourceFilesWatcher extends FilesPassiveWatcher_1.default {
|
|
2188
|
+
onAnyEventRelatedWithActualFiles = {};
|
|
2189
|
+
onFileAddedEventHandlers = {};
|
|
2190
|
+
onFileUpdatedEventHandlers = {};
|
|
2191
|
+
onFileDeletedEventHandlers = {};
|
|
2192
|
+
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;
|
|
2193
|
+
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;
|
|
2194
|
+
LOGGER_BADGE_TEXT;
|
|
2195
|
+
constructor({ ID, mustLogEvents, projectBuildingMasterConfigRepresentative, targetFilesNamesExtensionsWithoutLeadingDots, outputFilesGlobSelectors, targetSourceFilesType__singularForm }) {
|
|
2196
|
+
super({
|
|
2197
|
+
ID,
|
|
2198
|
+
targetFilesGlobSelectors: [
|
|
2199
|
+
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
2200
|
+
basicDirectoryPath: projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,
|
|
2201
|
+
fileNamesExtensions: targetFilesNamesExtensionsWithoutLeadingDots
|
|
2202
|
+
}),
|
|
2203
|
+
...es_extensions_nodejs_1.ImprovedGlob.includingGlobSelectorsToExcludingOnes(outputFilesGlobSelectors)
|
|
2204
|
+
],
|
|
2205
|
+
mustLogEvents
|
|
2206
|
+
});
|
|
2207
|
+
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED = (0, es_extensions_1.toUpperCamelCase)(targetSourceFilesType__singularForm);
|
|
2208
|
+
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE = (0, es_extensions_1.toLowerCamelCase)(targetSourceFilesType__singularForm);
|
|
2209
|
+
this.LOGGER_BADGE_TEXT = `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Source Files Watcher Report`;
|
|
2210
|
+
}
|
|
2211
|
+
notifyAboutRelatedFileStateChange(targetFileAbsolutePath__forwardSlashesPathSeparators, eventName) {
|
|
2212
|
+
for (const handler of Object.values(this.onAnyEventRelatedWithActualFiles)) {
|
|
2213
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2214
|
+
}
|
|
2215
|
+
switch (eventName) {
|
|
2216
|
+
case FilesMasterWatcher_1.default.EventsNames.fileAdded: {
|
|
2217
|
+
es_extensions_1.Logger.logInfo({
|
|
2218
|
+
mustOutputIf: this.mustLogEvents,
|
|
2219
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2220
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} File Added`,
|
|
2221
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2222
|
+
});
|
|
2223
|
+
for (const handler of Object.values(this.onFileAddedEventHandlers)) {
|
|
2224
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2225
|
+
}
|
|
2226
|
+
break;
|
|
2227
|
+
}
|
|
2228
|
+
case FilesMasterWatcher_1.default.EventsNames.fileUpdated: {
|
|
2229
|
+
es_extensions_1.Logger.logInfo({
|
|
2230
|
+
mustOutputIf: this.mustLogEvents,
|
|
2231
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2232
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Updated`,
|
|
2233
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2234
|
+
});
|
|
2235
|
+
for (const handler of Object.values(this.onFileUpdatedEventHandlers)) {
|
|
2236
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2237
|
+
}
|
|
2238
|
+
break;
|
|
2239
|
+
}
|
|
2240
|
+
case FilesMasterWatcher_1.default.EventsNames.fileDeleted: {
|
|
2241
|
+
es_extensions_1.Logger.logInfo({
|
|
2242
|
+
mustOutputIf: this.mustLogEvents,
|
|
2243
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2244
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} File Deleted`,
|
|
2245
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2246
|
+
});
|
|
2247
|
+
for (const handler of Object.values(this.onFileDeletedEventHandlers)) {
|
|
2248
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2249
|
+
}
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
}
|
|
2253
|
+
addOnAnyEventRelatedWithActualFilesHandler({ handlerID, handler }) {
|
|
2254
|
+
this.onAnyEventRelatedWithActualFiles[handlerID] = handler;
|
|
2255
|
+
return this;
|
|
2256
|
+
}
|
|
2257
|
+
addOnFileAddedEventHandler({ handlerID, handler }) {
|
|
2258
|
+
this.onFileAddedEventHandlers[handlerID] = handler;
|
|
2259
|
+
return this;
|
|
2260
|
+
}
|
|
2261
|
+
addFileUpdatedEventHandler({ handlerID, handler }) {
|
|
2262
|
+
this.onFileUpdatedEventHandlers[handlerID] = handler;
|
|
2263
|
+
return this;
|
|
2264
|
+
}
|
|
2265
|
+
addOnFileDeletedEventHandler({ handlerID, handler }) {
|
|
2266
|
+
this.onFileDeletedEventHandlers[handlerID] = handler;
|
|
2267
|
+
return this;
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
exports["default"] = AssetsSourceFilesWatcher;
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/***/ }),
|
|
2274
|
+
|
|
2275
|
+
/***/ "./ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher.ts":
|
|
2276
|
+
/*!************************************************************************!*\
|
|
2277
|
+
!*** ./ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher.ts ***!
|
|
2278
|
+
\************************************************************************/
|
|
2279
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2280
|
+
|
|
2281
|
+
|
|
2282
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2283
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2284
|
+
};
|
|
2285
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2286
|
+
/* ─── Superclass ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2287
|
+
const FilesPassiveWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher.ts"));
|
|
2288
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2289
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
2290
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2291
|
+
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
2292
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
2293
|
+
class CodeSourceFilesWatcher extends FilesPassiveWatcher_1.default {
|
|
2294
|
+
onAnyEventRelatedWithActualFiles = {};
|
|
2295
|
+
onAnyRelatedFileAddedEventHandlers = {};
|
|
2296
|
+
onAnyRelatedFileUpdatedEventHandlers = {};
|
|
2297
|
+
onAnyRelatedFileDeletedEventHandlers = {};
|
|
2298
|
+
onEntryPointFileAddedEventHandlers = {};
|
|
2299
|
+
onEntryPointFileUpdatedEventHandlers = {};
|
|
2300
|
+
onEntryPointFileDeletedEventHandlers = {};
|
|
2301
|
+
onNonEntryPointFileAddedEventHandlers = {};
|
|
2302
|
+
onNonEntryPointFileUpdatedEventHandlers = {};
|
|
2303
|
+
onNonEntryPointFileDeletedEventHandlers = {};
|
|
2304
|
+
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;
|
|
2305
|
+
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;
|
|
2306
|
+
LOGGER_BADGE_TEXT;
|
|
2307
|
+
constructor({ ID, mustLogEvents, projectBuildingMasterConfigRepresentative, targetFilesNamesExtensionsWithoutLeadingDots, outputFilesGlobSelectors, targetSourceFilesType__singularForm }) {
|
|
2308
|
+
super({
|
|
2309
|
+
ID,
|
|
2310
|
+
targetFilesGlobSelectors: [
|
|
2311
|
+
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
2312
|
+
basicDirectoryPath: projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,
|
|
2313
|
+
fileNamesExtensions: targetFilesNamesExtensionsWithoutLeadingDots
|
|
2314
|
+
}),
|
|
2315
|
+
...es_extensions_nodejs_1.ImprovedGlob.includingGlobSelectorsToExcludingOnes(outputFilesGlobSelectors)
|
|
2316
|
+
],
|
|
2317
|
+
mustLogEvents
|
|
2318
|
+
});
|
|
2319
|
+
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED = (0, es_extensions_1.toUpperCamelCase)(targetSourceFilesType__singularForm);
|
|
2320
|
+
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE = (0, es_extensions_1.toLowerCamelCase)(targetSourceFilesType__singularForm);
|
|
2321
|
+
this.LOGGER_BADGE_TEXT = `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} source files watcher report`;
|
|
2322
|
+
}
|
|
2323
|
+
addOnAnyEventRelatedWithActualFilesHandler({ handlerID, handler }) {
|
|
2324
|
+
this.onAnyEventRelatedWithActualFiles[handlerID] = handler;
|
|
2325
|
+
return this;
|
|
2326
|
+
}
|
|
2327
|
+
addOnAnyRelatedFileAddedEventHandler({ handlerID, handler }) {
|
|
2328
|
+
this.onAnyRelatedFileAddedEventHandlers[handlerID] = handler;
|
|
2329
|
+
return this;
|
|
2330
|
+
}
|
|
2331
|
+
addOnAnyRelatedFileUpdatedEventHandler({ handlerID, handler }) {
|
|
2332
|
+
this.onAnyRelatedFileUpdatedEventHandlers[handlerID] = handler;
|
|
2333
|
+
return this;
|
|
2334
|
+
}
|
|
2335
|
+
addOnAnyRelatedFileDeletedEventHandler({ handlerID, handler }) {
|
|
2336
|
+
this.onAnyRelatedFileDeletedEventHandlers[handlerID] = handler;
|
|
2337
|
+
return this;
|
|
2338
|
+
}
|
|
2339
|
+
addOnEntryPointFileAddedEventHandler({ handlerID, handler }) {
|
|
2340
|
+
this.onEntryPointFileAddedEventHandlers[handlerID] = handler;
|
|
2341
|
+
return this;
|
|
2342
|
+
}
|
|
2343
|
+
addOnEntryPointFileUpdatedEventHandler({ handlerID, handler }) {
|
|
2344
|
+
this.onEntryPointFileUpdatedEventHandlers[handlerID] = handler;
|
|
2345
|
+
return this;
|
|
2346
|
+
}
|
|
2347
|
+
addOnEntryPointFileDeletedEventHandler({ handlerID, handler }) {
|
|
2348
|
+
this.onEntryPointFileDeletedEventHandlers[handlerID] = handler;
|
|
2349
|
+
return this;
|
|
2350
|
+
}
|
|
2351
|
+
addOnNonEntryPointFileAddedEventHandler({ handlerID, handler }) {
|
|
2352
|
+
this.onNonEntryPointFileAddedEventHandlers[handlerID] = handler;
|
|
2353
|
+
return this;
|
|
2354
|
+
}
|
|
2355
|
+
addOnNonEntryPointFileUpdatedEventHandler({ handlerID, handler }) {
|
|
2356
|
+
this.onNonEntryPointFileUpdatedEventHandlers[handlerID] = handler;
|
|
2357
|
+
return this;
|
|
2358
|
+
}
|
|
2359
|
+
addOnNonEntryPointFileDeletedEventHandler({ handlerID, handler }) {
|
|
2360
|
+
this.onNonEntryPointFileDeletedEventHandlers[handlerID] = handler;
|
|
2361
|
+
return this;
|
|
2362
|
+
}
|
|
2363
|
+
notifyAboutRelatedFileStateChange(targetFileAbsolutePath__forwardSlashesPathSeparators, eventName) {
|
|
2364
|
+
const isTargetFileTheEntryPoint = this.isFileAbsolutePathOfEntryPoint(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2365
|
+
for (const handler of Object.values(this.onAnyEventRelatedWithActualFiles)) {
|
|
2366
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2367
|
+
}
|
|
2368
|
+
switch (eventName) {
|
|
2369
|
+
case FilesMasterWatcher_1.default.EventsNames.fileAdded: {
|
|
2370
|
+
for (const handler of Object.values(this.onAnyRelatedFileAddedEventHandlers)) {
|
|
2371
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2372
|
+
}
|
|
2373
|
+
if (isTargetFileTheEntryPoint) {
|
|
2374
|
+
es_extensions_1.Logger.logInfo({
|
|
2375
|
+
mustOutputIf: this.mustLogEvents,
|
|
2376
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2377
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} Entry Point Source File Added`,
|
|
2378
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2379
|
+
});
|
|
2380
|
+
for (const handler of Object.values(this.onEntryPointFileAddedEventHandlers)) {
|
|
2381
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
else {
|
|
2385
|
+
es_extensions_1.Logger.logInfo({
|
|
2386
|
+
mustOutputIf: this.mustLogEvents,
|
|
2387
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2388
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} Partial Source File Added`,
|
|
2389
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2390
|
+
});
|
|
2391
|
+
for (const handler of Object.values(this.onNonEntryPointFileAddedEventHandlers)) {
|
|
2392
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2395
|
+
break;
|
|
2396
|
+
}
|
|
2397
|
+
case FilesMasterWatcher_1.default.EventsNames.fileUpdated: {
|
|
2398
|
+
for (const handler of Object.values(this.onAnyRelatedFileUpdatedEventHandlers)) {
|
|
2399
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2400
|
+
}
|
|
2401
|
+
if (isTargetFileTheEntryPoint) {
|
|
2402
|
+
es_extensions_1.Logger.logInfo({
|
|
2403
|
+
mustOutputIf: this.mustLogEvents,
|
|
2404
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2405
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Updated`,
|
|
2406
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2407
|
+
});
|
|
2408
|
+
for (const handler of Object.values(this.onEntryPointFileUpdatedEventHandlers)) {
|
|
2409
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
else {
|
|
2413
|
+
es_extensions_1.Logger.logInfo({
|
|
2414
|
+
mustOutputIf: this.mustLogEvents,
|
|
2415
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2416
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Updated`,
|
|
2417
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2418
|
+
});
|
|
2419
|
+
for (const handler of Object.values(this.onNonEntryPointFileUpdatedEventHandlers)) {
|
|
2420
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
break;
|
|
2424
|
+
}
|
|
2425
|
+
case FilesMasterWatcher_1.default.EventsNames.fileDeleted: {
|
|
2426
|
+
for (const handler of Object.values(this.onAnyRelatedFileDeletedEventHandlers)) {
|
|
2427
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2428
|
+
}
|
|
2429
|
+
if (isTargetFileTheEntryPoint) {
|
|
2430
|
+
es_extensions_1.Logger.logInfo({
|
|
2431
|
+
mustOutputIf: this.mustLogEvents,
|
|
2432
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2433
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Entry Point Source File Deleted`,
|
|
2434
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2435
|
+
});
|
|
2436
|
+
for (const handler of Object.values(this.onEntryPointFileDeletedEventHandlers)) {
|
|
2437
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2438
|
+
}
|
|
2439
|
+
}
|
|
2440
|
+
else {
|
|
2441
|
+
es_extensions_1.Logger.logInfo({
|
|
2442
|
+
mustOutputIf: this.mustLogEvents,
|
|
2443
|
+
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
2444
|
+
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} Partial Source File Deleted`,
|
|
2445
|
+
description: targetFileAbsolutePath__forwardSlashesPathSeparators
|
|
2446
|
+
});
|
|
2447
|
+
for (const handler of Object.values(this.onNonEntryPointFileDeletedEventHandlers)) {
|
|
2448
|
+
handler(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
isFileAbsolutePathOfEntryPoint(targetFileAbsolutePath__forwardSlashesPathSeparators) {
|
|
2455
|
+
return this.settingsRepresentative.isEntryPoint(targetFileAbsolutePath__forwardSlashesPathSeparators);
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
exports["default"] = CodeSourceFilesWatcher;
|
|
2459
|
+
|
|
2460
|
+
|
|
2461
|
+
/***/ }),
|
|
2462
|
+
|
|
2463
|
+
/***/ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts":
|
|
2464
|
+
/*!********************************************************************!*\
|
|
2465
|
+
!*** ./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts ***!
|
|
2466
|
+
\********************************************************************/
|
|
2467
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2468
|
+
|
|
2469
|
+
|
|
2470
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2471
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
2472
|
+
};
|
|
2473
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2474
|
+
/* ─── Third-party Solutions Specialises ──────────────────────────────────────────────────────────────────────────── */
|
|
2475
|
+
const ChokidarSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist */ "./ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist.ts"));
|
|
2476
|
+
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
2477
|
+
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
2478
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
2479
|
+
class FilesMasterWatcher {
|
|
2480
|
+
static passiveWatchers = new Set();
|
|
2481
|
+
static watchIfMust(projectBuildingMasterConfigRepresentative) {
|
|
2482
|
+
if (!projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
2483
|
+
return (callback) => { callback(); };
|
|
2484
|
+
}
|
|
2485
|
+
return (callback) => {
|
|
2486
|
+
gulp_1.default.
|
|
2487
|
+
watch([
|
|
2488
|
+
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
2489
|
+
basicDirectoryPath: projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath
|
|
2490
|
+
}),
|
|
2491
|
+
...[
|
|
2492
|
+
".yda",
|
|
2493
|
+
"node_modules",
|
|
2494
|
+
".git",
|
|
2495
|
+
".idea",
|
|
2496
|
+
".vs",
|
|
2497
|
+
".vscode",
|
|
2498
|
+
".nuxt"
|
|
2499
|
+
].map((directory) => es_extensions_nodejs_1.ImprovedPath.joinPathSegments([
|
|
2500
|
+
es_extensions_nodejs_1.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(es_extensions_nodejs_1.ImprovedPath.joinPathSegments([projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath, directory], { alwaysForwardSlashSeparators: true }))
|
|
2501
|
+
], { alwaysForwardSlashSeparators: true }))
|
|
2502
|
+
]).
|
|
2503
|
+
on("all", FilesMasterWatcher.onAnyChokidarEvent.bind(this));
|
|
2504
|
+
callback();
|
|
2505
|
+
};
|
|
2506
|
+
}
|
|
2507
|
+
static addPassiveWatcher(passiveWatcher) {
|
|
2508
|
+
FilesMasterWatcher.passiveWatchers.add(passiveWatcher);
|
|
2509
|
+
}
|
|
2510
|
+
/* [ Chokidar theory ] While the globs are absolute path based, the second parameter will be the absolute path too. */
|
|
2511
|
+
static onAnyChokidarEvent(chokidarEventName, targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators) {
|
|
2512
|
+
let eventName;
|
|
2513
|
+
switch (chokidarEventName) {
|
|
2514
|
+
case ChokidarSpecialist_1.default.EventsNames.fileAdded: {
|
|
2515
|
+
eventName = FilesMasterWatcher.EventsNames.fileAdded;
|
|
2516
|
+
break;
|
|
2517
|
+
}
|
|
2518
|
+
case ChokidarSpecialist_1.default.EventsNames.fileChanged: {
|
|
2519
|
+
eventName = FilesMasterWatcher.EventsNames.fileUpdated;
|
|
2520
|
+
break;
|
|
2521
|
+
}
|
|
2522
|
+
case ChokidarSpecialist_1.default.EventsNames.fileDeleted: {
|
|
2523
|
+
eventName = FilesMasterWatcher.EventsNames.fileDeleted;
|
|
2524
|
+
break;
|
|
2525
|
+
}
|
|
2526
|
+
default: {
|
|
2527
|
+
return;
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
const targetFileAbsolutePath__forwardSlashesPathSeparators = es_extensions_nodejs_1.ImprovedPath.
|
|
2531
|
+
replacePathSeparatorsToForwardSlashes(targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators);
|
|
2532
|
+
for (const passiveWatcher of FilesMasterWatcher.passiveWatchers) {
|
|
2533
|
+
if (passiveWatcher.isRelatedFileAbsolutePath(targetFileAbsolutePath__forwardSlashesPathSeparators)) {
|
|
2534
|
+
passiveWatcher.notifyAboutRelatedFileStateChange(targetFileAbsolutePath__forwardSlashesPathSeparators, eventName);
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
(function (FilesMasterWatcher) {
|
|
2540
|
+
let EventsNames;
|
|
2541
|
+
(function (EventsNames) {
|
|
2542
|
+
EventsNames["fileAdded"] = "FILE_ADDED";
|
|
2543
|
+
EventsNames["fileUpdated"] = "FILE_UPDATED";
|
|
2544
|
+
EventsNames["fileDeleted"] = "FILE_DELETED";
|
|
2545
|
+
})(EventsNames = FilesMasterWatcher.EventsNames || (FilesMasterWatcher.EventsNames = {}));
|
|
2546
|
+
})(FilesMasterWatcher || (FilesMasterWatcher = {}));
|
|
2547
|
+
exports["default"] = FilesMasterWatcher;
|
|
2548
|
+
|
|
2549
|
+
|
|
2550
|
+
/***/ }),
|
|
2551
|
+
|
|
2552
|
+
/***/ "./ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher.ts":
|
|
2553
|
+
/*!*********************************************************************!*\
|
|
2554
|
+
!*** ./ProjectBuilding/Common/FilesWatchers/FilesPassiveWatcher.ts ***!
|
|
2555
|
+
\*********************************************************************/
|
|
2556
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2560
|
+
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
2561
|
+
class FilesPassiveWatcher {
|
|
2562
|
+
ID;
|
|
2563
|
+
mustLogEvents;
|
|
2564
|
+
targetFilesGlobSelectors;
|
|
2565
|
+
constructor({ ID, targetFilesGlobSelectors, mustLogEvents }) {
|
|
2566
|
+
this.ID = ID;
|
|
2567
|
+
this.targetFilesGlobSelectors = targetFilesGlobSelectors;
|
|
2568
|
+
this.mustLogEvents = mustLogEvents;
|
|
2569
|
+
}
|
|
2570
|
+
isRelatedFileAbsolutePath(targetFilePath) {
|
|
2571
|
+
return es_extensions_nodejs_1.ImprovedGlob.isFilePathMatchingWithAllGlobSelectors({
|
|
2572
|
+
filePath: targetFilePath, globSelectors: this.targetFilesGlobSelectors
|
|
2573
|
+
});
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
exports["default"] = FilesPassiveWatcher;
|
|
2172
2577
|
|
|
2173
2578
|
|
|
2174
2579
|
/***/ }),
|
|
@@ -2364,6 +2769,7 @@ var ProjectBuildingTasksIDsForConfigFile;
|
|
|
2364
2769
|
ProjectBuildingTasksIDsForConfigFile["videosProcessing"] = "videosProcessing";
|
|
2365
2770
|
ProjectBuildingTasksIDsForConfigFile["browserLiveReloading"] = "browserLiveReloading";
|
|
2366
2771
|
ProjectBuildingTasksIDsForConfigFile["plainCopying"] = "plainCopying";
|
|
2772
|
+
ProjectBuildingTasksIDsForConfigFile["filesWatching"] = "filesWatching";
|
|
2367
2773
|
})(ProjectBuildingTasksIDsForConfigFile || (exports.ProjectBuildingTasksIDsForConfigFile = ProjectBuildingTasksIDsForConfigFile = {}));
|
|
2368
2774
|
|
|
2369
2775
|
|
|
@@ -3449,339 +3855,6 @@ class SourceCodeProcessingConfigRepresentative {
|
|
|
3449
3855
|
exports["default"] = SourceCodeProcessingConfigRepresentative;
|
|
3450
3856
|
|
|
3451
3857
|
|
|
3452
|
-
/***/ }),
|
|
3453
|
-
|
|
3454
|
-
/***/ "./ProjectBuilding/Common/SourceFilesWatchers/AssetsSourceFilesWatcher.ts":
|
|
3455
|
-
/*!********************************************************************************!*\
|
|
3456
|
-
!*** ./ProjectBuilding/Common/SourceFilesWatchers/AssetsSourceFilesWatcher.ts ***!
|
|
3457
|
-
\********************************************************************************/
|
|
3458
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3462
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3463
|
-
};
|
|
3464
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3465
|
-
/* ─── Third-party Solutions Specialises ──────────────────────────────────────────────────────────────────────────── */
|
|
3466
|
-
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
3467
|
-
const ChokidarSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist */ "./ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist.ts"));
|
|
3468
|
-
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
3469
|
-
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
3470
|
-
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
3471
|
-
class AssetsSourceFilesWatcher {
|
|
3472
|
-
targetFilesNamesExtensionsWithoutLeadingDots;
|
|
3473
|
-
projectBuildingMasterConfigRepresentative;
|
|
3474
|
-
onAnyEventRelatedWithActualFiles = {};
|
|
3475
|
-
onFileAddedEventHandlers = {};
|
|
3476
|
-
onFileUpdatedEventHandlers = {};
|
|
3477
|
-
onFileDeletedEventHandlers = {};
|
|
3478
|
-
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;
|
|
3479
|
-
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;
|
|
3480
|
-
LOGGER_BADGE_TEXT;
|
|
3481
|
-
constructor({ projectBuildingMasterConfigRepresentative, targetFilesNamesExtensionsWithoutLeadingDots, targetSourceFilesType__singularForm }) {
|
|
3482
|
-
this.projectBuildingMasterConfigRepresentative = projectBuildingMasterConfigRepresentative;
|
|
3483
|
-
this.targetFilesNamesExtensionsWithoutLeadingDots = targetFilesNamesExtensionsWithoutLeadingDots;
|
|
3484
|
-
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED = (0, es_extensions_1.toUpperCamelCase)(targetSourceFilesType__singularForm);
|
|
3485
|
-
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE = (0, es_extensions_1.toLowerCamelCase)(targetSourceFilesType__singularForm);
|
|
3486
|
-
this.LOGGER_BADGE_TEXT = `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} source files watcher report`;
|
|
3487
|
-
}
|
|
3488
|
-
addOnAnyEventRelatedWithActualFilesHandler({ handlerID, handler }) {
|
|
3489
|
-
this.onAnyEventRelatedWithActualFiles[handlerID] = handler;
|
|
3490
|
-
return this;
|
|
3491
|
-
}
|
|
3492
|
-
addOnFileAddedEventHandler({ handlerID, handler }) {
|
|
3493
|
-
this.onFileAddedEventHandlers[handlerID] = handler;
|
|
3494
|
-
return this;
|
|
3495
|
-
}
|
|
3496
|
-
addFileUpdatedEventHandler({ handlerID, handler }) {
|
|
3497
|
-
this.onFileUpdatedEventHandlers[handlerID] = handler;
|
|
3498
|
-
return this;
|
|
3499
|
-
}
|
|
3500
|
-
addOnFileDeletedEventHandler({ handlerID, handler }) {
|
|
3501
|
-
this.onFileDeletedEventHandlers[handlerID] = handler;
|
|
3502
|
-
return this;
|
|
3503
|
-
}
|
|
3504
|
-
startWatching() {
|
|
3505
|
-
gulp_1.default.
|
|
3506
|
-
watch([
|
|
3507
|
-
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
3508
|
-
basicDirectoryPath: this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,
|
|
3509
|
-
fileNamesExtensions: this.targetFilesNamesExtensionsWithoutLeadingDots
|
|
3510
|
-
}),
|
|
3511
|
-
es_extensions_nodejs_1.ImprovedPath.joinPathSegments([
|
|
3512
|
-
es_extensions_nodejs_1.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(es_extensions_nodejs_1.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath, "node_modules"], { alwaysForwardSlashSeparators: true }))
|
|
3513
|
-
], { alwaysForwardSlashSeparators: true })
|
|
3514
|
-
]).
|
|
3515
|
-
on("all", this.onAnyChokidarEvent.bind(this));
|
|
3516
|
-
}
|
|
3517
|
-
/* [ Chokidar theory ] While the globs are absolute path based, the second parameter will be the absolute path too. */
|
|
3518
|
-
onAnyChokidarEvent(chokidarEventName, targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators) {
|
|
3519
|
-
if (chokidarEventName === ChokidarSpecialist_1.default.EventsNames.directoryAdded ||
|
|
3520
|
-
chokidarEventName === ChokidarSpecialist_1.default.EventsNames.directoryDeleted) {
|
|
3521
|
-
return;
|
|
3522
|
-
}
|
|
3523
|
-
const targetFileAbsolutePath = es_extensions_nodejs_1.ImprovedPath.replacePathSeparatorsToForwardSlashes(targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators);
|
|
3524
|
-
for (const handler of Object.values(this.onAnyEventRelatedWithActualFiles)) {
|
|
3525
|
-
handler(targetFileAbsolutePath);
|
|
3526
|
-
}
|
|
3527
|
-
switch (chokidarEventName) {
|
|
3528
|
-
case ChokidarSpecialist_1.default.EventsNames.fileAdded: {
|
|
3529
|
-
es_extensions_1.Logger.logInfo({
|
|
3530
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3531
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3532
|
-
title: `New ${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} file`,
|
|
3533
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} file has been added.\n` +
|
|
3534
|
-
targetFileAbsolutePath
|
|
3535
|
-
});
|
|
3536
|
-
for (const handler of Object.values(this.onFileAddedEventHandlers)) {
|
|
3537
|
-
handler(targetFileAbsolutePath);
|
|
3538
|
-
}
|
|
3539
|
-
break;
|
|
3540
|
-
}
|
|
3541
|
-
case ChokidarSpecialist_1.default.EventsNames.fileChanged: {
|
|
3542
|
-
es_extensions_1.Logger.logInfo({
|
|
3543
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3544
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3545
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} file update`,
|
|
3546
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} file has been updated.\n` +
|
|
3547
|
-
targetFileAbsolutePath
|
|
3548
|
-
});
|
|
3549
|
-
for (const handler of Object.values(this.onFileUpdatedEventHandlers)) {
|
|
3550
|
-
handler(targetFileAbsolutePath);
|
|
3551
|
-
}
|
|
3552
|
-
break;
|
|
3553
|
-
}
|
|
3554
|
-
case ChokidarSpecialist_1.default.EventsNames.fileDeleted: {
|
|
3555
|
-
es_extensions_1.Logger.logInfo({
|
|
3556
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3557
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3558
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file deleting`,
|
|
3559
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file has ` +
|
|
3560
|
-
`been deleted.\n${targetFileAbsolutePath}`
|
|
3561
|
-
});
|
|
3562
|
-
for (const handler of Object.values(this.onFileDeletedEventHandlers)) {
|
|
3563
|
-
handler(targetFileAbsolutePath);
|
|
3564
|
-
}
|
|
3565
|
-
break;
|
|
3566
|
-
}
|
|
3567
|
-
default: {
|
|
3568
|
-
/* [ Approach ] Nothing required for other events */
|
|
3569
|
-
}
|
|
3570
|
-
}
|
|
3571
|
-
}
|
|
3572
|
-
}
|
|
3573
|
-
exports["default"] = AssetsSourceFilesWatcher;
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
/***/ }),
|
|
3577
|
-
|
|
3578
|
-
/***/ "./ProjectBuilding/Common/SourceFilesWatchers/CodeSourceFilesWatcher.ts":
|
|
3579
|
-
/*!******************************************************************************!*\
|
|
3580
|
-
!*** ./ProjectBuilding/Common/SourceFilesWatchers/CodeSourceFilesWatcher.ts ***!
|
|
3581
|
-
\******************************************************************************/
|
|
3582
|
-
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3586
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3587
|
-
};
|
|
3588
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3589
|
-
/* ─── Third-party Solutions Specialises ──────────────────────────────────────────────────────────────────────────── */
|
|
3590
|
-
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
3591
|
-
const ChokidarSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist */ "./ThirdPartySolutionsSpecialists/Chokidar/ChokidarSpecialist.ts"));
|
|
3592
|
-
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
3593
|
-
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
3594
|
-
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
3595
|
-
class CodeSourceFilesWatcher {
|
|
3596
|
-
targetFilesNamesExtensionsWithoutLeadingDots;
|
|
3597
|
-
outputFilesGlobSelectors;
|
|
3598
|
-
projectBuildingMasterConfigRepresentative;
|
|
3599
|
-
onAnyEventRelatedWithActualFiles = {};
|
|
3600
|
-
onAnyRelatedFileAddedEventHandlers = {};
|
|
3601
|
-
onAnyRelatedFileUpdatedEventHandlers = {};
|
|
3602
|
-
onAnyRelatedFileDeletedEventHandlers = {};
|
|
3603
|
-
onEntryPointFileAddedEventHandlers = {};
|
|
3604
|
-
onEntryPointFileUpdatedEventHandlers = {};
|
|
3605
|
-
onEntryPointFileDeletedEventHandlers = {};
|
|
3606
|
-
onNonEntryPointFileAddedEventHandlers = {};
|
|
3607
|
-
onNonEntryPointFileUpdatedEventHandlers = {};
|
|
3608
|
-
onNonEntryPointFileDeletedEventHandlers = {};
|
|
3609
|
-
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED;
|
|
3610
|
-
TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE;
|
|
3611
|
-
LOGGER_BADGE_TEXT;
|
|
3612
|
-
constructor({ projectBuildingMasterConfigRepresentative, targetFilesNamesExtensionsWithoutLeadingDots, targetSourceFilesType__singularForm, outputFilesGlobSelectors }) {
|
|
3613
|
-
this.projectBuildingMasterConfigRepresentative = projectBuildingMasterConfigRepresentative;
|
|
3614
|
-
this.targetFilesNamesExtensionsWithoutLeadingDots = targetFilesNamesExtensionsWithoutLeadingDots;
|
|
3615
|
-
this.outputFilesGlobSelectors = outputFilesGlobSelectors;
|
|
3616
|
-
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED = (0, es_extensions_1.toUpperCamelCase)(targetSourceFilesType__singularForm);
|
|
3617
|
-
this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE = (0, es_extensions_1.toLowerCamelCase)(targetSourceFilesType__singularForm);
|
|
3618
|
-
this.LOGGER_BADGE_TEXT = `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} source files watcher report`;
|
|
3619
|
-
}
|
|
3620
|
-
addOnAnyEventRelatedWithActualFilesHandler({ handlerID, handler }) {
|
|
3621
|
-
this.onAnyEventRelatedWithActualFiles[handlerID] = handler;
|
|
3622
|
-
return this;
|
|
3623
|
-
}
|
|
3624
|
-
addOnAnyRelatedFileAddedEventHandler({ handlerID, handler }) {
|
|
3625
|
-
this.onAnyRelatedFileAddedEventHandlers[handlerID] = handler;
|
|
3626
|
-
return this;
|
|
3627
|
-
}
|
|
3628
|
-
addOnAnyRelatedFileUpdatedEventHandler({ handlerID, handler }) {
|
|
3629
|
-
this.onAnyRelatedFileUpdatedEventHandlers[handlerID] = handler;
|
|
3630
|
-
return this;
|
|
3631
|
-
}
|
|
3632
|
-
addOnAnyRelatedFileDeletedEventHandler({ handlerID, handler }) {
|
|
3633
|
-
this.onAnyRelatedFileDeletedEventHandlers[handlerID] = handler;
|
|
3634
|
-
return this;
|
|
3635
|
-
}
|
|
3636
|
-
addOnEntryPointFileAddedEventHandler({ handlerID, handler }) {
|
|
3637
|
-
this.onEntryPointFileAddedEventHandlers[handlerID] = handler;
|
|
3638
|
-
return this;
|
|
3639
|
-
}
|
|
3640
|
-
addOnEntryPointFileUpdatedEventHandler({ handlerID, handler }) {
|
|
3641
|
-
this.onEntryPointFileUpdatedEventHandlers[handlerID] = handler;
|
|
3642
|
-
return this;
|
|
3643
|
-
}
|
|
3644
|
-
addOnEntryPointFileDeletedEventHandler({ handlerID, handler }) {
|
|
3645
|
-
this.onEntryPointFileDeletedEventHandlers[handlerID] = handler;
|
|
3646
|
-
return this;
|
|
3647
|
-
}
|
|
3648
|
-
addOnNonEntryPointFileAddedEventHandler({ handlerID, handler }) {
|
|
3649
|
-
this.onNonEntryPointFileAddedEventHandlers[handlerID] = handler;
|
|
3650
|
-
return this;
|
|
3651
|
-
}
|
|
3652
|
-
addOnNonEntryPointFileUpdatedEventHandler({ handlerID, handler }) {
|
|
3653
|
-
this.onNonEntryPointFileUpdatedEventHandlers[handlerID] = handler;
|
|
3654
|
-
return this;
|
|
3655
|
-
}
|
|
3656
|
-
addOnNonEntryPointFileDeletedEventHandler({ handlerID, handler }) {
|
|
3657
|
-
this.onNonEntryPointFileDeletedEventHandlers[handlerID] = handler;
|
|
3658
|
-
return this;
|
|
3659
|
-
}
|
|
3660
|
-
startWatching() {
|
|
3661
|
-
gulp_1.default.
|
|
3662
|
-
watch([
|
|
3663
|
-
es_extensions_nodejs_1.ImprovedGlob.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
3664
|
-
basicDirectoryPath: this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath,
|
|
3665
|
-
fileNamesExtensions: this.targetFilesNamesExtensionsWithoutLeadingDots
|
|
3666
|
-
}),
|
|
3667
|
-
es_extensions_nodejs_1.ImprovedPath.joinPathSegments([
|
|
3668
|
-
es_extensions_nodejs_1.ImprovedGlob.buildExcludingOfDirectoryWithSubdirectoriesGlobSelector(es_extensions_nodejs_1.ImprovedPath.joinPathSegments([this.projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath, "node_modules"], { alwaysForwardSlashSeparators: true }))
|
|
3669
|
-
], { alwaysForwardSlashSeparators: true }),
|
|
3670
|
-
...es_extensions_nodejs_1.ImprovedGlob.includingGlobSelectorsToExcludingOnes(this.outputFilesGlobSelectors)
|
|
3671
|
-
]).
|
|
3672
|
-
on("all", this.onAnyChokidarEvent.bind(this));
|
|
3673
|
-
}
|
|
3674
|
-
/* [ Chokidar theory ] While the globs are absolute path based, the second parameter will be the absolute path too. */
|
|
3675
|
-
onAnyChokidarEvent(chokidarEventName, targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators) {
|
|
3676
|
-
if (chokidarEventName === ChokidarSpecialist_1.default.EventsNames.directoryAdded ||
|
|
3677
|
-
chokidarEventName === ChokidarSpecialist_1.default.EventsNames.directoryDeleted) {
|
|
3678
|
-
return;
|
|
3679
|
-
}
|
|
3680
|
-
const targetFileAbsolutePath = es_extensions_nodejs_1.ImprovedPath.replacePathSeparatorsToForwardSlashes(targetFileOrDirectoryAbsolutePath__operationingSystemDependentPathSeparators);
|
|
3681
|
-
const isTargetFileTheEntryPoint = this.isFileAbsolutePathRefersToEntryPoint(targetFileAbsolutePath);
|
|
3682
|
-
for (const handler of Object.values(this.onAnyEventRelatedWithActualFiles)) {
|
|
3683
|
-
handler(targetFileAbsolutePath);
|
|
3684
|
-
}
|
|
3685
|
-
switch (chokidarEventName) {
|
|
3686
|
-
case ChokidarSpecialist_1.default.EventsNames.fileAdded: {
|
|
3687
|
-
for (const handler of Object.values(this.onAnyRelatedFileAddedEventHandlers)) {
|
|
3688
|
-
handler(targetFileAbsolutePath);
|
|
3689
|
-
}
|
|
3690
|
-
if (isTargetFileTheEntryPoint) {
|
|
3691
|
-
es_extensions_1.Logger.logInfo({
|
|
3692
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3693
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3694
|
-
title: `New ${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} entry point source file`,
|
|
3695
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file has ` +
|
|
3696
|
-
`been added.\n${targetFileAbsolutePath}`
|
|
3697
|
-
});
|
|
3698
|
-
for (const handler of Object.values(this.onEntryPointFileAddedEventHandlers)) {
|
|
3699
|
-
handler(targetFileAbsolutePath);
|
|
3700
|
-
}
|
|
3701
|
-
}
|
|
3702
|
-
else {
|
|
3703
|
-
es_extensions_1.Logger.logInfo({
|
|
3704
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3705
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3706
|
-
title: `New ${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__LOWERCASE} non-entry point source file`,
|
|
3707
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} non-entry point source file ` +
|
|
3708
|
-
`has been added.\n${targetFileAbsolutePath}`
|
|
3709
|
-
});
|
|
3710
|
-
for (const handler of Object.values(this.onNonEntryPointFileAddedEventHandlers)) {
|
|
3711
|
-
handler(targetFileAbsolutePath);
|
|
3712
|
-
}
|
|
3713
|
-
}
|
|
3714
|
-
break;
|
|
3715
|
-
}
|
|
3716
|
-
case ChokidarSpecialist_1.default.EventsNames.fileChanged: {
|
|
3717
|
-
for (const handler of Object.values(this.onAnyRelatedFileUpdatedEventHandlers)) {
|
|
3718
|
-
handler(targetFileAbsolutePath);
|
|
3719
|
-
}
|
|
3720
|
-
if (isTargetFileTheEntryPoint) {
|
|
3721
|
-
es_extensions_1.Logger.logInfo({
|
|
3722
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3723
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3724
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file update`,
|
|
3725
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file has ` +
|
|
3726
|
-
`been updated.\n${targetFileAbsolutePath}`
|
|
3727
|
-
});
|
|
3728
|
-
for (const handler of Object.values(this.onEntryPointFileUpdatedEventHandlers)) {
|
|
3729
|
-
handler(targetFileAbsolutePath);
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
else {
|
|
3733
|
-
es_extensions_1.Logger.logInfo({
|
|
3734
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3735
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3736
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} non-entry point source file update`,
|
|
3737
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} non-entry point source file has ` +
|
|
3738
|
-
` been updated.\n${targetFileAbsolutePath}`
|
|
3739
|
-
});
|
|
3740
|
-
for (const handler of Object.values(this.onNonEntryPointFileUpdatedEventHandlers)) {
|
|
3741
|
-
handler(targetFileAbsolutePath);
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
break;
|
|
3745
|
-
}
|
|
3746
|
-
case ChokidarSpecialist_1.default.EventsNames.fileDeleted: {
|
|
3747
|
-
for (const handler of Object.values(this.onAnyRelatedFileDeletedEventHandlers)) {
|
|
3748
|
-
handler(targetFileAbsolutePath);
|
|
3749
|
-
}
|
|
3750
|
-
if (isTargetFileTheEntryPoint) {
|
|
3751
|
-
es_extensions_1.Logger.logInfo({
|
|
3752
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3753
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3754
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file deleting`,
|
|
3755
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} entry point source file has ` +
|
|
3756
|
-
`been deleted.\n${targetFileAbsolutePath}`
|
|
3757
|
-
});
|
|
3758
|
-
for (const handler of Object.values(this.onEntryPointFileDeletedEventHandlers)) {
|
|
3759
|
-
handler(targetFileAbsolutePath);
|
|
3760
|
-
}
|
|
3761
|
-
}
|
|
3762
|
-
else {
|
|
3763
|
-
es_extensions_1.Logger.logInfo({
|
|
3764
|
-
mustOutputIf: this.mustLogSourceFilesWatcherEvents,
|
|
3765
|
-
badge: { customText: this.LOGGER_BADGE_TEXT },
|
|
3766
|
-
title: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} non-entry point source file deleting`,
|
|
3767
|
-
description: `${this.TARGET_SOURCE_FILES_TYPE__SINGULAR_FORM__CAPITALIZED} non-entry point source file ` +
|
|
3768
|
-
`has been deleted.\n${targetFileAbsolutePath}`
|
|
3769
|
-
});
|
|
3770
|
-
for (const handler of Object.values(this.onNonEntryPointFileDeletedEventHandlers)) {
|
|
3771
|
-
handler(targetFileAbsolutePath);
|
|
3772
|
-
}
|
|
3773
|
-
}
|
|
3774
|
-
break;
|
|
3775
|
-
}
|
|
3776
|
-
default: {
|
|
3777
|
-
/* [ Approach ] Nothing required for other events */
|
|
3778
|
-
}
|
|
3779
|
-
}
|
|
3780
|
-
}
|
|
3781
|
-
}
|
|
3782
|
-
exports["default"] = CodeSourceFilesWatcher;
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
3858
|
/***/ }),
|
|
3786
3859
|
|
|
3787
3860
|
/***/ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBasedAssetsProcessor.ts":
|
|
@@ -5013,7 +5086,8 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
5013
5086
|
audiosProcessing: "audiosProcessing",
|
|
5014
5087
|
videosProcessing: "videosProcessing",
|
|
5015
5088
|
plainCopying: "plainCopying",
|
|
5016
|
-
browserLiveReloading: "browserLiveReloading"
|
|
5089
|
+
browserLiveReloading: "browserLiveReloading",
|
|
5090
|
+
filesWatching: "filesWatching"
|
|
5017
5091
|
},
|
|
5018
5092
|
consumingProjectPreDefinedBuildingModes: {
|
|
5019
5093
|
staticPreview: "STATIC_PREVIEW",
|
|
@@ -5447,7 +5521,7 @@ const VideosProcessingSettings__FromFile__RawValid_1 = __importDefault(__webpack
|
|
|
5447
5521
|
const AudiosProcessingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @AudiosProcessing/AudiosProcessingSettings__FromFile__RawValid */ "./ProjectBuilding/AssetsProcessing/Audios/AudiosProcessingSettings__FromFile__RawValid.ts"));
|
|
5448
5522
|
const PlainCopyingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/PlainCopying/PlainCopyingSettings__FromFile__RawValid */ "./ProjectBuilding/PlainCopying/PlainCopyingSettings__FromFile__RawValid.ts"));
|
|
5449
5523
|
const BrowserLiveReloadingSettings__FromFile__RawValid_1 = __importDefault(__webpack_require__(/*! @BrowserLiveReloading/BrowserLiveReloadingSettings__FromFile__RawValid */ "./ProjectBuilding/BrowserLiveReloading/BrowserLiveReloadingSettings__FromFile__RawValid.ts"));
|
|
5450
|
-
/* ───
|
|
5524
|
+
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
5451
5525
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
5452
5526
|
var ProjectBuildingConfig__FromFile__RawValid;
|
|
5453
5527
|
(function (ProjectBuildingConfig__FromFile__RawValid) {
|
|
@@ -6345,8 +6419,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6345
6419
|
};
|
|
6346
6420
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6347
6421
|
const ECMA_ScriptLogicProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/ECMA_ScriptLogicProcessingSharedState */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/ECMA_ScriptLogicProcessingSharedState.ts"));
|
|
6348
|
-
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
6349
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
6350
6422
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
6351
6423
|
const webpack_1 = __importDefault(__webpack_require__(/*! webpack */ "webpack"));
|
|
6352
6424
|
const WebpackConfigGenerator_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/Utils/WebpackConfigGenerator */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/Utils/WebpackConfigGenerator.ts"));
|
|
@@ -6395,16 +6467,10 @@ class ECMA_ScriptLogicProcessor {
|
|
|
6395
6467
|
});
|
|
6396
6468
|
}
|
|
6397
6469
|
if (dataHoldingSelfInstance.masterConfigRepresentative.mustProvideIncrementalBuilding) {
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
initializeIfRequiredAndGetInstance({
|
|
6403
|
-
ecmaScriptLogicProcessingSettingsRepresentative: dataHoldingSelfInstance.
|
|
6404
|
-
ECMA_ScriptLogicProcessingConfigRepresentative,
|
|
6405
|
-
projectBuildingMasterConfigRepresentative: dataHoldingSelfInstance.masterConfigRepresentative
|
|
6406
|
-
}).
|
|
6407
|
-
startWatching();
|
|
6470
|
+
ECMA_ScriptSourceFilesWatcher_1.default.initializeIfRequiredAndGetInstance({
|
|
6471
|
+
ecmaScriptLogicProcessingSettingsRepresentative: dataHoldingSelfInstance.
|
|
6472
|
+
ECMA_ScriptLogicProcessingConfigRepresentative,
|
|
6473
|
+
projectBuildingMasterConfigRepresentative: dataHoldingSelfInstance.masterConfigRepresentative
|
|
6408
6474
|
});
|
|
6409
6475
|
}
|
|
6410
6476
|
/** 〔 納品版のみ理由 〕 開発版で同じ事をすれば、gulpが落ちる */
|
|
@@ -6458,32 +6524,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6458
6524
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6459
6525
|
};
|
|
6460
6526
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6461
|
-
|
|
6527
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
6528
|
+
const CodeSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher.ts"));
|
|
6529
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
6462
6530
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
6463
6531
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
6464
6532
|
class ECMA_ScriptSourceFilesWatcher extends CodeSourceFilesWatcher_1.default {
|
|
6465
6533
|
static selfSoleInstance = null;
|
|
6466
|
-
|
|
6467
|
-
ecmaScriptLogicProcessingSettingsRepresentative;
|
|
6534
|
+
settingsRepresentative;
|
|
6468
6535
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
6469
6536
|
if ((0, es_extensions_1.isNull)(ECMA_ScriptSourceFilesWatcher.selfSoleInstance)) {
|
|
6470
6537
|
ECMA_ScriptSourceFilesWatcher.selfSoleInstance = new ECMA_ScriptSourceFilesWatcher(initializationRequirements);
|
|
6538
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(ECMA_ScriptSourceFilesWatcher.selfSoleInstance);
|
|
6471
6539
|
}
|
|
6472
6540
|
return ECMA_ScriptSourceFilesWatcher.selfSoleInstance;
|
|
6473
6541
|
}
|
|
6474
6542
|
constructor({ ecmaScriptLogicProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
6475
6543
|
super({
|
|
6544
|
+
ID: "ECMA_SCRIPT_LOGIC_SOURCE_FILES_WATCHER",
|
|
6545
|
+
mustLogEvents: ecmaScriptLogicProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents,
|
|
6476
6546
|
projectBuildingMasterConfigRepresentative,
|
|
6477
6547
|
targetFilesNamesExtensionsWithoutLeadingDots: ecmaScriptLogicProcessingSettingsRepresentative.
|
|
6478
6548
|
actualFileNameExtensionsWithoutLeadingDots,
|
|
6479
6549
|
outputFilesGlobSelectors: ecmaScriptLogicProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
6480
|
-
targetSourceFilesType__singularForm: "ECMAScript
|
|
6550
|
+
targetSourceFilesType__singularForm: "ECMAScript Logic"
|
|
6481
6551
|
});
|
|
6482
|
-
this.
|
|
6483
|
-
this.mustLogSourceFilesWatcherEvents = this.ecmaScriptLogicProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents;
|
|
6484
|
-
}
|
|
6485
|
-
isFileAbsolutePathRefersToEntryPoint(targetFileAbsolutePath) {
|
|
6486
|
-
return this.ecmaScriptLogicProcessingSettingsRepresentative.isEntryPoint(targetFileAbsolutePath);
|
|
6552
|
+
this.settingsRepresentative = ecmaScriptLogicProcessingSettingsRepresentative;
|
|
6487
6553
|
}
|
|
6488
6554
|
}
|
|
6489
6555
|
exports["default"] = ECMA_ScriptSourceFilesWatcher;
|
|
@@ -8015,7 +8081,6 @@ const MarkupSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Mark
|
|
|
8015
8081
|
/* ─── Superclass ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8016
8082
|
const GulpStreamsBasedTaskExecutor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/GulpStreamsBasedTaskExecutor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/GulpStreamsBasedTaskExecutor.ts"));
|
|
8017
8083
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8018
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
8019
8084
|
const MarkupProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/MarkupProcessingSharedState */ "./ProjectBuilding/SourceCodeProcessing/Markup/MarkupProcessingSharedState.ts"));
|
|
8020
8085
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8021
8086
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
@@ -8104,7 +8169,7 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8104
8169
|
MarkupProcessor.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION
|
|
8105
8170
|
])
|
|
8106
8171
|
});
|
|
8107
|
-
|
|
8172
|
+
MarkupSourceFilesWatcher_1.default.
|
|
8108
8173
|
initializeIfRequiredAndGetInstance({
|
|
8109
8174
|
markupProcessingSettingsRepresentative,
|
|
8110
8175
|
projectBuildingMasterConfigRepresentative
|
|
@@ -8121,9 +8186,6 @@ class MarkupProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
8121
8186
|
handlerID: "ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_MARKUP_PROCESSOR",
|
|
8122
8187
|
handler: MarkupProcessor.onEntryPointFileDeleted
|
|
8123
8188
|
});
|
|
8124
|
-
CommonSharedState_1.default.
|
|
8125
|
-
onInitialBuildDoneEventHandlers.
|
|
8126
|
-
set("BY_MARKUP_PROCESSOR", () => { markupSourceFilesWatcher.startWatching(); });
|
|
8127
8189
|
}
|
|
8128
8190
|
return dataHoldingSelfInstance.processEntryPoints(markupProcessingSettingsRepresentative.relevantEntryPointsSourceFilesAbsolutePaths);
|
|
8129
8191
|
}
|
|
@@ -8461,32 +8523,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8461
8523
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8462
8524
|
};
|
|
8463
8525
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8464
|
-
|
|
8526
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8527
|
+
const CodeSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher.ts"));
|
|
8528
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
8465
8529
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8466
8530
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
8467
8531
|
class MarkupSourceFilesWatcher extends CodeSourceFilesWatcher_1.default {
|
|
8468
8532
|
static selfSoleInstance = null;
|
|
8469
|
-
|
|
8470
|
-
markupProcessingSettingsRepresentative;
|
|
8533
|
+
settingsRepresentative;
|
|
8471
8534
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
8472
8535
|
if ((0, es_extensions_1.isNull)(MarkupSourceFilesWatcher.selfSoleInstance)) {
|
|
8473
8536
|
MarkupSourceFilesWatcher.selfSoleInstance = new MarkupSourceFilesWatcher(initializationRequirements);
|
|
8537
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(MarkupSourceFilesWatcher.selfSoleInstance);
|
|
8474
8538
|
}
|
|
8475
8539
|
return MarkupSourceFilesWatcher.selfSoleInstance;
|
|
8476
8540
|
}
|
|
8477
8541
|
constructor({ markupProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
8478
8542
|
super({
|
|
8543
|
+
ID: "MARKUP_SOURCE_FILES_WATCHER",
|
|
8544
|
+
mustLogEvents: markupProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents,
|
|
8479
8545
|
projectBuildingMasterConfigRepresentative,
|
|
8480
8546
|
targetFilesNamesExtensionsWithoutLeadingDots: markupProcessingSettingsRepresentative.
|
|
8481
8547
|
actualFileNameExtensionsWithoutLeadingDots,
|
|
8482
8548
|
outputFilesGlobSelectors: markupProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
8483
|
-
targetSourceFilesType__singularForm: "
|
|
8549
|
+
targetSourceFilesType__singularForm: "Markup"
|
|
8484
8550
|
});
|
|
8485
|
-
this.
|
|
8486
|
-
this.mustLogSourceFilesWatcherEvents = this.markupProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents;
|
|
8487
|
-
}
|
|
8488
|
-
isFileAbsolutePathRefersToEntryPoint(targetFileAbsolutePath) {
|
|
8489
|
-
return this.markupProcessingSettingsRepresentative.isEntryPoint(targetFileAbsolutePath);
|
|
8551
|
+
this.settingsRepresentative = markupProcessingSettingsRepresentative;
|
|
8490
8552
|
}
|
|
8491
8553
|
}
|
|
8492
8554
|
exports["default"] = MarkupSourceFilesWatcher;
|
|
@@ -12048,7 +12110,6 @@ const StylesSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @Styl
|
|
|
12048
12110
|
/* ─── Superclass ─────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12049
12111
|
const GulpStreamsBasedTaskExecutor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/GulpStreamsBasedTaskExecutor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/GulpStreamsBasedTaskExecutor.ts"));
|
|
12050
12112
|
/* ─── Shared State ───────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12051
|
-
const CommonSharedState_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/CommonSharedState */ "./ProjectBuilding/Common/CommonSharedState.ts"));
|
|
12052
12113
|
const StylesProcessingSharedState_1 = __importDefault(__webpack_require__(/*! @StylesProcessing/StylesProcessingSharedState */ "./ProjectBuilding/SourceCodeProcessing/Styles/StylesProcessingSharedState.ts"));
|
|
12053
12114
|
/* ─── Gulp & Plugins ─────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12054
12115
|
const gulp_1 = __importDefault(__webpack_require__(/*! gulp */ "gulp"));
|
|
@@ -12106,7 +12167,7 @@ class StylesProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
12106
12167
|
StylesProcessor.ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION
|
|
12107
12168
|
])
|
|
12108
12169
|
});
|
|
12109
|
-
|
|
12170
|
+
StylesSourceFilesWatcher_1.default.
|
|
12110
12171
|
initializeIfRequiredAndGetInstance({
|
|
12111
12172
|
stylesProcessingSettingsRepresentative,
|
|
12112
12173
|
projectBuildingMasterConfigRepresentative
|
|
@@ -12123,9 +12184,6 @@ class StylesProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
12123
12184
|
handlerID: "ON_STYLES_ENTRY_POINT_FILE_DELETED--BY_STYLES_PROCESSOR",
|
|
12124
12185
|
handler: StylesProcessor.onEntryPointFileDeleted
|
|
12125
12186
|
});
|
|
12126
|
-
CommonSharedState_1.default.
|
|
12127
|
-
onInitialBuildDoneEventHandlers.
|
|
12128
|
-
set("BY_STYLES_PROCESSOR", () => { stylesSourceFilesWatcher.startWatching(); });
|
|
12129
12187
|
}
|
|
12130
12188
|
return dataHoldingSelfInstance.processEntryPoints(stylesProcessingSettingsRepresentative.relevantEntryPointsSourceFilesAbsolutePaths);
|
|
12131
12189
|
}
|
|
@@ -12258,32 +12316,32 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12258
12316
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
12259
12317
|
};
|
|
12260
12318
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
12261
|
-
|
|
12319
|
+
/* ─── Related Classes ────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12320
|
+
const CodeSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher */ "./ProjectBuilding/Common/FilesWatchers/CodeSourceFilesWatcher.ts"));
|
|
12321
|
+
const FilesMasterWatcher_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher */ "./ProjectBuilding/Common/FilesWatchers/FilesMasterWatcher.ts"));
|
|
12262
12322
|
/* ─── Utils ──────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
12263
12323
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
12264
12324
|
class StylesSourceFilesWatcher extends CodeSourceFilesWatcher_1.default {
|
|
12265
12325
|
static selfSoleInstance = null;
|
|
12266
|
-
|
|
12267
|
-
stylesProcessingSettingsRepresentative;
|
|
12326
|
+
settingsRepresentative;
|
|
12268
12327
|
static initializeIfRequiredAndGetInstance(initializationRequirements) {
|
|
12269
12328
|
if ((0, es_extensions_1.isNull)(StylesSourceFilesWatcher.selfSoleInstance)) {
|
|
12270
12329
|
StylesSourceFilesWatcher.selfSoleInstance = new StylesSourceFilesWatcher(initializationRequirements);
|
|
12330
|
+
FilesMasterWatcher_1.default.addPassiveWatcher(StylesSourceFilesWatcher.selfSoleInstance);
|
|
12271
12331
|
}
|
|
12272
12332
|
return StylesSourceFilesWatcher.selfSoleInstance;
|
|
12273
12333
|
}
|
|
12274
12334
|
constructor({ stylesProcessingSettingsRepresentative, projectBuildingMasterConfigRepresentative }) {
|
|
12275
12335
|
super({
|
|
12336
|
+
ID: "STYLES_SOURCE_FILES_WATCHER",
|
|
12337
|
+
mustLogEvents: stylesProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents,
|
|
12276
12338
|
projectBuildingMasterConfigRepresentative,
|
|
12277
12339
|
targetFilesNamesExtensionsWithoutLeadingDots: stylesProcessingSettingsRepresentative.
|
|
12278
12340
|
actualFileNameExtensionsWithoutLeadingDots,
|
|
12279
12341
|
outputFilesGlobSelectors: stylesProcessingSettingsRepresentative.actualOutputFilesGlobSelectors,
|
|
12280
|
-
targetSourceFilesType__singularForm: "
|
|
12342
|
+
targetSourceFilesType__singularForm: "Stylesheet"
|
|
12281
12343
|
});
|
|
12282
|
-
this.
|
|
12283
|
-
this.mustLogSourceFilesWatcherEvents = this.stylesProcessingSettingsRepresentative.mustLogSourceFilesWatcherEvents;
|
|
12284
|
-
}
|
|
12285
|
-
isFileAbsolutePathRefersToEntryPoint(targetFileAbsolutePath) {
|
|
12286
|
-
return this.stylesProcessingSettingsRepresentative.isEntryPoint(targetFileAbsolutePath);
|
|
12344
|
+
this.settingsRepresentative = stylesProcessingSettingsRepresentative;
|
|
12287
12345
|
}
|
|
12288
12346
|
}
|
|
12289
12347
|
exports["default"] = StylesSourceFilesWatcher;
|
|
@@ -14054,7 +14112,7 @@ function revisionHash(data) {
|
|
|
14054
14112
|
\***********************/
|
|
14055
14113
|
/***/ ((module) => {
|
|
14056
14114
|
|
|
14057
|
-
module.exports = JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.3.
|
|
14115
|
+
module.exports = JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.3.2","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.0","@typescript-eslint/eslint-plugin":"7.4.0","@typescript-eslint/parser":"7.4.0","@vue/compiler-sfc":"3.4.21","@webdiscus/pug-loader":"2.11.0","@yamato-daiwa/es-extensions":"1.7.0-alpha.10","@yamato-daiwa/es-extensions-nodejs":"1.7.0-alpha.6","@yamato-daiwa/style_guides":"0.2.0","autoprefixer":"10.4.19","browser-sync":"3.0.2","css-loader":"6.11.0","cssnano":"6.1.2","eslint":"8.57.0","eslint-plugin-import":"2.29.1","eslint-plugin-node":"11.1.0","eslint-plugin-react":"7.34.1","eslint-plugin-vue":"9.24.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":"9.0.1","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":"6.2.3","probe-image-size":"7.2.3","pug-lint":"2.7.0","pug-plain-loader":"1.1.0","puppeteer":"21.0.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"3.3.4","stylus":"0.63.0","stylus-loader":"8.0.0","ts-loader":"9.4.4","vinyl":"2.2.1","vue-loader":"17.3.1","vue-style-loader":"4.1.3","w3c-html-validator":"0.8.1","webpack":"5.88.2","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.0"},"devDependencies":{"@types/browser-sync":"2.26.3","@types/cssnano":"5.0.0","@types/gulp":"4.0.10","@types/gulp-html-prettify":"0.0.2","@types/gulp-if":"0.0.34","@types/gulp-imagemin":"8.0.1","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.33","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.36","@types/gulp-stylus":"2.7.8","@types/node":"18.13.0","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.3","@types/pug":"2.0.9","@types/webpack-node-externals":"2.5.3","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.1.0","ts-node":"10.9.2","typescript":"5.4.3","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":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation"},"bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
|
|
14058
14116
|
|
|
14059
14117
|
/***/ })
|
|
14060
14118
|
|