@yamato-daiwa/automation 0.5.0-alpha.4 → 0.5.0-alpha.6
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 +72 -64
- package/Executable +1 -1
- package/package.json +19 -19
package/EntryPoint.js
CHANGED
|
@@ -46,15 +46,15 @@ var ApplicationConsoleLineInterface;
|
|
|
46
46
|
},
|
|
47
47
|
configurationFile: {
|
|
48
48
|
description: "Custom name of the configuration file (the default one is " +
|
|
49
|
-
|
|
49
|
+
`"${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}")`,
|
|
50
50
|
newName: "customConfigurationFileName__possiblyWithoutExtension",
|
|
51
51
|
type: es_extensions_nodejs_1.ConsoleCommandsParser.ParametersTypes.string,
|
|
52
52
|
required: false
|
|
53
53
|
},
|
|
54
54
|
selectiveExecution: {
|
|
55
55
|
newName: "selectiveExecutionID",
|
|
56
|
-
description: "Allows to specify the selection of tasks, entry points groups, etc
|
|
57
|
-
"
|
|
56
|
+
description: "Allows to specify the selection of tasks, entry points groups, etc. by selective execution ID, " +
|
|
57
|
+
"herewith the desired selective execution must be preliminarily defined in the configuration file.",
|
|
58
58
|
type: es_extensions_nodejs_1.ConsoleCommandsParser.ParametersTypes.string,
|
|
59
59
|
required: false
|
|
60
60
|
}
|
|
@@ -124,7 +124,8 @@ class EntryPoint {
|
|
|
124
124
|
customMessage: "The configuration file for \"Yamato Daiwa Automation\" utility not found at path " +
|
|
125
125
|
`"${rawConfigFileAbsolutePath}". ` +
|
|
126
126
|
"The \"Yamato Daiwa Automation\" utility is required the configuration file and will expect the " +
|
|
127
|
-
`file "${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}" at the same directory as CLI has
|
|
127
|
+
`file "${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}" at the same directory as CLI has ` +
|
|
128
|
+
"been invoked. " +
|
|
128
129
|
"You can set custom configuration file name via CLI if you want."
|
|
129
130
|
}),
|
|
130
131
|
title: es_extensions_nodejs_1.FileNotFoundError.localization.defaultTitle,
|
|
@@ -137,7 +138,8 @@ class EntryPoint {
|
|
|
137
138
|
customMessage: "The configuration file for \"Yamato Daiwa Automation\" utility not found at path " +
|
|
138
139
|
`"${rawConfigFileAbsolutePath}". ` +
|
|
139
140
|
"The \"Yamato Daiwa Automation\" utility is required the configuration file and will expect the " +
|
|
140
|
-
`file "${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}" at the same directory as CLI has
|
|
141
|
+
`file "${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}" at the same directory as CLI has ` +
|
|
142
|
+
"been invoked. " +
|
|
141
143
|
"You can set custom configuration file name via CLI if you want."
|
|
142
144
|
}),
|
|
143
145
|
title: es_extensions_1.FileReadingFailedError.localization.defaultTitle,
|
|
@@ -1867,10 +1869,6 @@ exports["default"] = BrowserLiveReloadingSettings__Default;
|
|
|
1867
1869
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1868
1870
|
/* --- General utils ------------------------------------------------------------------------------------------------ */
|
|
1869
1871
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1870
|
-
/* eslint-disable-next-line @typescript-eslint/no-redeclare --
|
|
1871
|
-
* The merging of type/interface and namespace is completely valid TypeScript,
|
|
1872
|
-
* but @typescript-eslint community does not wish to support it.
|
|
1873
|
-
* https://github.com/eslint/eslint/issues/15504 */
|
|
1874
1872
|
var BrowserLiveReloadingSettings__FromFile__RawValid;
|
|
1875
1873
|
(function (BrowserLiveReloadingSettings__FromFile__RawValid) {
|
|
1876
1874
|
function getLocalizedPropertiesSpecification(browserLiveReloadingSettingsLocalization) {
|
|
@@ -2870,7 +2868,7 @@ class AssetsProcessingRawSettingsNormalizer {
|
|
|
2870
2868
|
ambiguitiesResolution: {
|
|
2871
2869
|
mustConsiderLastSegmentStartingWithDotAsDirectory: true,
|
|
2872
2870
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: true,
|
|
2873
|
-
|
|
2871
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: false
|
|
2874
2872
|
},
|
|
2875
2873
|
alwaysForwardSlashSeparators: true
|
|
2876
2874
|
});
|
|
@@ -3015,7 +3013,7 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
3015
3013
|
ambiguitiesResolution: {
|
|
3016
3014
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
3017
3015
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
3018
|
-
|
|
3016
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
3019
3017
|
}
|
|
3020
3018
|
});
|
|
3021
3019
|
sourceFilesTopDirectoryPathOrSingleFileAliasName = entryPointsGroupSettings__rawValid.
|
|
@@ -3032,7 +3030,7 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
3032
3030
|
ambiguitiesResolution: {
|
|
3033
3031
|
mustConsiderLastSegmentStartingWithDotAsDirectory: true,
|
|
3034
3032
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: true,
|
|
3035
|
-
|
|
3033
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: false
|
|
3036
3034
|
}
|
|
3037
3035
|
});
|
|
3038
3036
|
currentEntryPointsGroupSourceFilesGlobSelectors.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({
|
|
@@ -3261,7 +3259,7 @@ class AssetsProcessingSettingsRepresentative {
|
|
|
3261
3259
|
ambiguitiesResolution: {
|
|
3262
3260
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
3263
3261
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
3264
|
-
|
|
3262
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
3265
3263
|
},
|
|
3266
3264
|
alwaysForwardSlashSeparators: true
|
|
3267
3265
|
})
|
|
@@ -3362,7 +3360,7 @@ class GulpStreamBasedSourceCodeProcessingConfigRepresentative extends SourceCode
|
|
|
3362
3360
|
ambiguitiesResolution: {
|
|
3363
3361
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
3364
3362
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
3365
|
-
|
|
3363
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
3366
3364
|
},
|
|
3367
3365
|
alwaysForwardSlashSeparators: true
|
|
3368
3366
|
})
|
|
@@ -5019,7 +5017,7 @@ class PlainCopyingRawSettingsNormalizer {
|
|
|
5019
5017
|
ambiguitiesResolution: {
|
|
5020
5018
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
5021
5019
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
5022
|
-
|
|
5020
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: false
|
|
5023
5021
|
}
|
|
5024
5022
|
})
|
|
5025
5023
|
})
|
|
@@ -6465,7 +6463,6 @@ class ECMA_ScriptLogicProcessingRawSettingsNormalizer extends SourceCodeProcessi
|
|
|
6465
6463
|
} : null
|
|
6466
6464
|
});
|
|
6467
6465
|
const relevantEntryPointsGroups = dataHoldingSelfInstance.createNormalizedEntryPointsGroupsSettings(ECMA_ScriptLogicProcessingSettings__fromFile__rawValid.entryPointsGroups, dataHoldingSelfInstance.
|
|
6468
|
-
/* eslint-disable-next-line max-len -- Unable to split this line to multiple. */
|
|
6469
6466
|
completeEntryPointsGroupNormalizedSettingsCommonPropertiesUntilECMA_ScriptLogicEntryPointsGroupNormalizedSettings.
|
|
6470
6467
|
bind(dataHoldingSelfInstance));
|
|
6471
6468
|
const lintingSettings__fromFile__rawValid = ECMA_ScriptLogicProcessingSettings__fromFile__rawValid.linting ?? {};
|
|
@@ -6620,7 +6617,7 @@ class ECMA_ScriptLogicProcessingRawSettingsNormalizer extends SourceCodeProcessi
|
|
|
6620
6617
|
targetPath: typeScriptConfigurationFileAbsolutePath,
|
|
6621
6618
|
alwaysForwardSlashSeparators: true,
|
|
6622
6619
|
ambiguitiesResolution: {
|
|
6623
|
-
|
|
6620
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true,
|
|
6624
6621
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
6625
6622
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false
|
|
6626
6623
|
}
|
|
@@ -7070,8 +7067,8 @@ const DotYDA_DirectoryManager_1 = __importDefault(__webpack_require__(/*! @Utils
|
|
|
7070
7067
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
7071
7068
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
7072
7069
|
class ECMA_ScriptLogicProcessor {
|
|
7070
|
+
/* ━━━ Private Static Fields ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
7073
7071
|
static ENTRY_POINTS_AND_PARTIAL_FILES_MAPPING_CACHE_FILE_NAME_WITH_EXTENSION = "ECMA_ScriptEntryPointsAndAffiliatedFilesMappingCache.json";
|
|
7074
|
-
TASK_NAME_FOR_LOGGING = "ECMAScript logic processing";
|
|
7075
7072
|
projectBuildingMasterConfigRepresentative;
|
|
7076
7073
|
ECMA_ScriptLogicProcessingConfigRepresentative;
|
|
7077
7074
|
webpackConfigurationsForExistingEntryPoints;
|
|
@@ -7080,6 +7077,7 @@ class ECMA_ScriptLogicProcessor {
|
|
|
7080
7077
|
absolutePathOfFilesWaitingForReProcessing = new Set();
|
|
7081
7078
|
sourceCodeSelectiveReprocessingHelper;
|
|
7082
7079
|
subsequentFilesStateChangeTimeout = null;
|
|
7080
|
+
/* ━━━ Public Static Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
7083
7081
|
static provideLogicProcessingIfMust(projectBuildingMasterConfigRepresentative) {
|
|
7084
7082
|
const ecmaScriptLogicProcessingSettingsRepresentative = projectBuildingMasterConfigRepresentative.ECMA_ScriptLogicProcessingSettingsRepresentative;
|
|
7085
7083
|
if ((0, es_extensions_1.isUndefined)(ecmaScriptLogicProcessingSettingsRepresentative)) {
|
|
@@ -7092,18 +7090,18 @@ class ECMA_ScriptLogicProcessor {
|
|
|
7092
7090
|
}
|
|
7093
7091
|
catch (error) {
|
|
7094
7092
|
/* [ Theory ] Once reached here, the Gulp tasks chain will collapse whatever will callback called to no. */
|
|
7095
|
-
es_extensions_1.Logger.
|
|
7096
|
-
errorType: es_extensions_1.UnexpectedEventError.NAME,
|
|
7093
|
+
gulpCallback(new es_extensions_1.UnexpectedEventError(es_extensions_1.Logger.formatErrorLog({
|
|
7097
7094
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
7095
|
+
errorType: es_extensions_1.UnexpectedEventError.NAME,
|
|
7098
7096
|
description: "The error emitted by Webpack has been caught while no error catching required according the official" +
|
|
7099
7097
|
"documentation: https://webpack.js.org/api/node/",
|
|
7100
7098
|
occurrenceLocation: "ECMA_ScriptLogicProcessor.provideLogicProcessing(projectBuildingMasterConfigRepresentative)",
|
|
7101
7099
|
caughtError: error
|
|
7102
|
-
});
|
|
7100
|
+
})));
|
|
7103
7101
|
}
|
|
7104
|
-
gulpCallback();
|
|
7105
7102
|
};
|
|
7106
7103
|
}
|
|
7104
|
+
/* ━━━ Constructor ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
7107
7105
|
constructor(ecmaScriptLogicProcessingConfigRepresentative, masterConfigRepresentative) {
|
|
7108
7106
|
this.ECMA_ScriptLogicProcessingConfigRepresentative = ecmaScriptLogicProcessingConfigRepresentative;
|
|
7109
7107
|
this.projectBuildingMasterConfigRepresentative = masterConfigRepresentative;
|
|
@@ -7169,38 +7167,15 @@ class ECMA_ScriptLogicProcessor {
|
|
|
7169
7167
|
addOnAnyEventRelatedWithActualFilesHandler({
|
|
7170
7168
|
handlerID: "ON_ANY_EVENT_WITH_ECMA_SCRIPT_LOGIC_SOURCE_CODE_FILE--BY_ECMA_SCRIPT_LOGIC_PROCESSOR",
|
|
7171
7169
|
handler: this.onSourceFilesWatcherEmittedAnyEvent.bind(this)
|
|
7170
|
+
}).
|
|
7171
|
+
addOnEntryPointFileAddedEventHandler({
|
|
7172
|
+
handlerID: "ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",
|
|
7173
|
+
handler: ECMA_ScriptLogicProcessor.onEntryPointFileAdded
|
|
7172
7174
|
});
|
|
7173
|
-
// TODO
|
|
7174
|
-
// addOnEntryPointFileAddedEventHandler({
|
|
7175
|
-
// handlerID: "ON_MARKUP_ENTRY_POINT_FILE_ADDED--BY_MARKUP_PROCESSOR",
|
|
7176
|
-
// handler: dataHoldingSelfInstance.onEntryPointFileAdded.bind(dataHoldingSelfInstance)
|
|
7177
|
-
// }).
|
|
7178
|
-
// addOnEntryPointFileDeletedEventHandler({
|
|
7179
|
-
// handlerID: "ON_MARKUP_ENTRY_POINT_FILE_DELETED--BY_MARKUP_PROCESSOR",
|
|
7180
|
-
// handler: MarkupProcessor.onEntryPointFileDeleted
|
|
7181
|
-
// });
|
|
7182
|
-
}
|
|
7183
|
-
}
|
|
7184
|
-
/* ━━━ Rebuilding ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
7185
|
-
onSourceFilesWatcherEmittedAnyEvent(targetFileAbsolutePath) {
|
|
7186
|
-
this.absolutePathOfFilesWaitingForReProcessing.add(targetFileAbsolutePath);
|
|
7187
|
-
if ((0, es_extensions_1.isNotNull)(this.subsequentFilesStateChangeTimeout)) {
|
|
7188
|
-
clearTimeout(this.subsequentFilesStateChangeTimeout);
|
|
7189
7175
|
}
|
|
7190
|
-
this.subsequentFilesStateChangeTimeout = setTimeout(() => {
|
|
7191
|
-
const absolutePathOfEntryPointsWhichMustBeReprocessed__forwardSlashSeparators = this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing) ??
|
|
7192
|
-
[];
|
|
7193
|
-
const actualConfigurationsNames = Array.from((0, es_extensions_1.filterMap)(this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap, (targetEntryPointAbsolutePath__forwardSlashSeparators) => absolutePathOfEntryPointsWhichMustBeReprocessed__forwardSlashSeparators.
|
|
7194
|
-
includes(targetEntryPointAbsolutePath__forwardSlashSeparators)).values());
|
|
7195
|
-
if (actualConfigurationsNames.length === 1) {
|
|
7196
|
-
(0, es_extensions_1.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.webpackMultiCompiler.compilers, (webpackCompiler) => webpackCompiler.name === actualConfigurationsNames[0], { mustThrowErrorIfElementNotFoundOrMatchesAreMultiple: true }).run(this.generateWebpackCallback());
|
|
7197
|
-
}
|
|
7198
|
-
else if (actualConfigurationsNames.length > 1) {
|
|
7199
|
-
this.webpackMultiCompiler.run(this.generateWebpackCallback());
|
|
7200
|
-
}
|
|
7201
|
-
this.absolutePathOfFilesWaitingForReProcessing.clear();
|
|
7202
|
-
}, (0, es_extensions_1.secondsToMilliseconds)(1));
|
|
7203
7176
|
}
|
|
7177
|
+
/* ━━━ Private Methods ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
|
|
7178
|
+
/* ─── Webpack Callback ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
7204
7179
|
generateWebpackCallback(gulpCallback) {
|
|
7205
7180
|
return (hardError, statistics) => {
|
|
7206
7181
|
if ((0, es_extensions_1.isNotUndefined)(statistics)) {
|
|
@@ -7255,9 +7230,41 @@ class ECMA_ScriptLogicProcessor {
|
|
|
7255
7230
|
}
|
|
7256
7231
|
};
|
|
7257
7232
|
}
|
|
7233
|
+
/* ─── Events Handling ──────────────────────────────────────────────────────────────────────────────────────────── */
|
|
7234
|
+
onSourceFilesWatcherEmittedAnyEvent(targetFileAbsolutePath) {
|
|
7235
|
+
this.absolutePathOfFilesWaitingForReProcessing.add(targetFileAbsolutePath);
|
|
7236
|
+
if ((0, es_extensions_1.isNotNull)(this.subsequentFilesStateChangeTimeout)) {
|
|
7237
|
+
clearTimeout(this.subsequentFilesStateChangeTimeout);
|
|
7238
|
+
}
|
|
7239
|
+
this.subsequentFilesStateChangeTimeout = setTimeout(() => {
|
|
7240
|
+
const absolutePathOfEntryPointsWhichMustBeReprocessed__forwardSlashSeparators = this.sourceCodeSelectiveReprocessingHelper?.getAbsolutePathsOfEntryPointsWhichMustBeProcessed(this.absolutePathOfFilesWaitingForReProcessing) ??
|
|
7241
|
+
[];
|
|
7242
|
+
const actualConfigurationsNames = Array.from((0, es_extensions_1.filterMap)(this.entryPointsSourceFilesAbsolutePathsAndWebpackConfigurationNamesMap, (targetEntryPointAbsolutePath__forwardSlashSeparators) => absolutePathOfEntryPointsWhichMustBeReprocessed__forwardSlashSeparators.
|
|
7243
|
+
includes(targetEntryPointAbsolutePath__forwardSlashSeparators)).values());
|
|
7244
|
+
if (actualConfigurationsNames.length === 1) {
|
|
7245
|
+
(0, es_extensions_1.getArrayElementSatisfiesThePredicateIfSuchElementIsExactlyOne)(this.webpackMultiCompiler.compilers, (webpackCompiler) => webpackCompiler.name === actualConfigurationsNames[0], { mustThrowErrorIfElementNotFoundOrMatchesAreMultiple: true }).run(this.generateWebpackCallback());
|
|
7246
|
+
}
|
|
7247
|
+
else if (actualConfigurationsNames.length > 1) {
|
|
7248
|
+
this.webpackMultiCompiler.run(this.generateWebpackCallback());
|
|
7249
|
+
}
|
|
7250
|
+
this.absolutePathOfFilesWaitingForReProcessing.clear();
|
|
7251
|
+
}, (0, es_extensions_1.secondsToMilliseconds)(1));
|
|
7252
|
+
}
|
|
7253
|
+
static onEntryPointFileAdded(targetEntryPointSourceFileAbsolutePath) {
|
|
7254
|
+
es_extensions_1.Logger.logWarning({
|
|
7255
|
+
title: "Restarting is Required",
|
|
7256
|
+
description: [
|
|
7257
|
+
"New ECMAScript logic entry point has been added:",
|
|
7258
|
+
targetEntryPointSourceFileAbsolutePath,
|
|
7259
|
+
"We are sorry, but current YDA version does not support the building of ECMAScript logic entry points added " +
|
|
7260
|
+
"after the starting of YDA. Please restart the YDA."
|
|
7261
|
+
].join("\n")
|
|
7262
|
+
});
|
|
7263
|
+
}
|
|
7264
|
+
/* ─── Other ────────────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
7258
7265
|
/* [ Theory ] Although it is a rare case, same directory alias (e.g. "@components") could refer to different
|
|
7259
7266
|
* directory depending on entry points group. Because the `SourceCodeSelectiveReprocessingHelper` does not
|
|
7260
|
-
* respect the specific entry points group, all aliases definition must be merged herewith
|
|
7267
|
+
* respect the specific entry points group, all aliases definition must be merged herewith without overwriting. */
|
|
7261
7268
|
static generateUnifiedDirectoriesAliasesAndTheirAbsolutePatsMapForSourceCodeSelectiveReprocessingHelper(ecmaScriptLogicProcessingConfigRepresentative) {
|
|
7262
7269
|
const unifiedDirectoriesAliasesAndTheirAbsolutePatsMap = new Map();
|
|
7263
7270
|
for (const entryPointsGroup of ecmaScriptLogicProcessingConfigRepresentative.relevantEntryPointsGroupsSettings.values()) {
|
|
@@ -7775,7 +7782,7 @@ class ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPat
|
|
|
7775
7782
|
ambiguitiesResolution: {
|
|
7776
7783
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
7777
7784
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
7778
|
-
|
|
7785
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
7779
7786
|
},
|
|
7780
7787
|
alwaysForwardSlashSeparators: true
|
|
7781
7788
|
})
|
|
@@ -7815,7 +7822,7 @@ class ECMA_ScriptLogicEntryPointsSourceFilesAbsolutePathsAndOutputFilesActualPat
|
|
|
7815
7822
|
ambiguitiesResolution: {
|
|
7816
7823
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
7817
7824
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
7818
|
-
|
|
7825
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
7819
7826
|
},
|
|
7820
7827
|
alwaysForwardSlashSeparators: true
|
|
7821
7828
|
}),
|
|
@@ -7894,7 +7901,7 @@ class WebpackConfigGenerator {
|
|
|
7894
7901
|
return {
|
|
7895
7902
|
name: entryPointsGroupSettings.ID,
|
|
7896
7903
|
/* [ Webpack theory ] In this case, path separators must be operating system dependent, otherwise following error
|
|
7897
|
-
* will be thrown:
|
|
7904
|
+
* will be thrown: `configuration[0].context: The provided value "D:/OSPanel/../01_Open" is not an absolute path!` */
|
|
7898
7905
|
context: path_1.default.normalize(sourceFilesTopDirectoryAbsolutePath),
|
|
7899
7906
|
/* [ Reference ] https://webpack.js.org/configuration/target/ */
|
|
7900
7907
|
target: (() => {
|
|
@@ -8080,7 +8087,7 @@ class WebpackConfigGenerator {
|
|
|
8080
8087
|
ambiguitiesResolution: {
|
|
8081
8088
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
8082
8089
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
8083
|
-
|
|
8090
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
8084
8091
|
},
|
|
8085
8092
|
alwaysForwardSlashSeparators: true
|
|
8086
8093
|
})
|
|
@@ -11568,6 +11575,9 @@ class SpacesNormalizerForCJK_Text {
|
|
|
11568
11575
|
/* [ Regular expression fiddle ] https://regex101.com/r/tPn28I/1 */
|
|
11569
11576
|
static ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES = "[\\u3000-\\u303f\\u3040-\\u309f\\u30a0-\\u30ff\\uff00-\\uffef\\u4e00-\\u9fff\\uac00-\\ud7af]";
|
|
11570
11577
|
static extraSpaceSurroundedByCharactersDetectingPatterns = [
|
|
11578
|
+
/* [ Regular Expressions Tester ] https://regex101.com/r/oTsJps/2 */
|
|
11579
|
+
new RegExp(`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\x20+` +
|
|
11580
|
+
`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`, "gmu"),
|
|
11571
11581
|
new RegExp(`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+` +
|
|
11572
11582
|
`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`, "gmu")
|
|
11573
11583
|
];
|
|
@@ -12581,7 +12591,7 @@ class CompiledInlineTypeScriptImporterForPug extends GulpStreamsBasedTaskExecuto
|
|
|
12581
12591
|
ambiguitiesResolution: {
|
|
12582
12592
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
12583
12593
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
12584
|
-
|
|
12594
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: false
|
|
12585
12595
|
}
|
|
12586
12596
|
})
|
|
12587
12597
|
});
|
|
@@ -14026,7 +14036,7 @@ class TypeScriptSpecialist {
|
|
|
14026
14036
|
ambiguitiesResolution: {
|
|
14027
14037
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
14028
14038
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
14029
|
-
|
|
14039
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
14030
14040
|
}
|
|
14031
14041
|
}));
|
|
14032
14042
|
}
|
|
@@ -14238,8 +14248,6 @@ class DotYDA_DirectoryManager {
|
|
|
14238
14248
|
static OPTIMIZATION_FILES_SUBDIRECTORY_NAME = "Optimizations";
|
|
14239
14249
|
static GIT_IGNORE_FILE_NAME = ".gitignore";
|
|
14240
14250
|
static DOT_VERSION_FILE_NAME = ".version";
|
|
14241
|
-
/* eslint-disable-next-line @typescript-eslint/no-unsafe-member-access --
|
|
14242
|
-
* TypeScript detects the content of "package.json" and provides the type safety. */
|
|
14243
14251
|
static CURRENT_YDA_VERSION = package_json_1.default.version;
|
|
14244
14252
|
static selfSoleInstance = null;
|
|
14245
14253
|
DOT_YDA_DIRECTORY_ABSOLUTE_PATH;
|
|
@@ -14668,7 +14676,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
14668
14676
|
ambiguitiesResolution: {
|
|
14669
14677
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
14670
14678
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
14671
|
-
|
|
14679
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
14672
14680
|
},
|
|
14673
14681
|
alwaysForwardSlashSeparators: true
|
|
14674
14682
|
});
|
|
@@ -14800,7 +14808,7 @@ class SourceCodeSelectiveReprocessingHelper {
|
|
|
14800
14808
|
ambiguitiesResolution: {
|
|
14801
14809
|
mustConsiderLastSegmentStartingWithDotAsDirectory: false,
|
|
14802
14810
|
mustConsiderLastSegmentWithNonLeadingDotAsDirectory: false,
|
|
14803
|
-
|
|
14811
|
+
mustConsiderLastSegmentWithoutDotsAsFileNameWithoutExtension: true
|
|
14804
14812
|
},
|
|
14805
14813
|
alwaysForwardSlashSeparators: true
|
|
14806
14814
|
});
|
|
@@ -15126,7 +15134,7 @@ class VinylFileClass extends vinyl_1.default {
|
|
|
15126
15134
|
* `this.contents` is either `null` or `never` and even `isArbitraryObject` type guard does not assure TypeScript. */
|
|
15127
15135
|
/* @ts-ignore: TS2358 (See above) */
|
|
15128
15136
|
return (0, es_extensions_1.isNull)(this.contents) || ((0, es_extensions_1.isArbitraryObject)(this.contents) && !(this.contents instanceof Buffer)) ?
|
|
15129
|
-
/* eslint-disable @typescript-eslint/no-unsafe-call
|
|
15137
|
+
/* eslint-disable @typescript-eslint/no-unsafe-call -- (See ※ explanation) */
|
|
15130
15138
|
/* @ts-ignore: TS2339 (See ※ explanation) */
|
|
15131
15139
|
"" : this.contents.toString();
|
|
15132
15140
|
/* eslint-enable @typescript-eslint/no-unsafe-call */
|
|
@@ -15608,7 +15616,7 @@ function revisionHash(data) {
|
|
|
15608
15616
|
\***********************/
|
|
15609
15617
|
/***/ ((module) => {
|
|
15610
15618
|
|
|
15611
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.5.0-alpha.
|
|
15619
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.5.0-alpha.6","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.0.0"},"bin":{"yda":"Executable"},"files":["EntryPoint.js"],"dependencies":{"@eslint-community/eslint-plugin-eslint-comments":"4.4.1","@stylistic/eslint-plugin":"2.10.1","@typescript-eslint/eslint-plugin":"8.13.0","@typescript-eslint/parser":"8.13.0","@vue/compiler-sfc":"3.5.12","@webdiscus/pug-loader":"2.11.0","@yamato-daiwa/es-extensions":"1.8.0-alpha.7","@yamato-daiwa/es-extensions-nodejs":"1.8.0-alpha.6","@yamato-daiwa/style_guides":"0.3.1","autoprefixer":"10.4.20","browser-sync":"3.0.3","css-loader":"7.1.2","cssnano":"7.0.6","eslint":"9.14.0","eslint-plugin-import":"2.31.0","eslint-plugin-n":"17.13.1","eslint-plugin-react":"7.37.2","eslint-plugin-vue":"9.30.0","eslint-plugin-vue-pug":"0.6.2","fork-ts-checker-webpack-plugin":"7.3.0","gulp":"4.0.2","gulp-data":"1.3.1","gulp-html-prettify":"0.0.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","imagemin-pngquant":"9.0.2","json5-loader":"4.0.1","node-html-parser":"6.1.13","node-notifier":"10.0.1","pa11y":"8.0.0","probe-image-size":"7.2.3","pug3-ast-loader":"0.0.0","pug-lint":"2.7.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.64.0","stylus-loader":"8.1.1","ts-loader":"9.5.1","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"0.8.1","webpack":"5.96.1","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-html-prettify":"0.0.5","@types/gulp-if":"3.0.4","@types/gulp-imagemin":"7.0.3","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.37","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.38","@types/gulp-stylus":"2.7.8","@types/node":"20.14.2","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"5.6.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":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
|
|
15612
15620
|
|
|
15613
15621
|
/***/ })
|
|
15614
15622
|
|
package/Executable
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.5.0-alpha.
|
|
3
|
+
"version": "0.5.0-alpha.6",
|
|
4
4
|
"description": "The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"build",
|
|
@@ -19,24 +19,24 @@
|
|
|
19
19
|
"EntryPoint.js"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@eslint-community/eslint-plugin-eslint-comments": "4.4.
|
|
23
|
-
"@stylistic/eslint-plugin": "2.
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
25
|
-
"@typescript-eslint/parser": "8.
|
|
26
|
-
"@vue/compiler-sfc": "3.
|
|
22
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
23
|
+
"@stylistic/eslint-plugin": "2.10.1",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "8.13.0",
|
|
25
|
+
"@typescript-eslint/parser": "8.13.0",
|
|
26
|
+
"@vue/compiler-sfc": "3.5.12",
|
|
27
27
|
"@webdiscus/pug-loader": "2.11.0",
|
|
28
|
-
"@yamato-daiwa/es-extensions": "
|
|
29
|
-
"@yamato-daiwa/es-extensions-nodejs": "
|
|
30
|
-
"@yamato-daiwa/style_guides": "0.3.
|
|
31
|
-
"autoprefixer": "10.4.
|
|
32
|
-
"browser-sync": "3.0.
|
|
28
|
+
"@yamato-daiwa/es-extensions": "1.8.0-alpha.7",
|
|
29
|
+
"@yamato-daiwa/es-extensions-nodejs": "1.8.0-alpha.6",
|
|
30
|
+
"@yamato-daiwa/style_guides": "0.3.1",
|
|
31
|
+
"autoprefixer": "10.4.20",
|
|
32
|
+
"browser-sync": "3.0.3",
|
|
33
33
|
"css-loader": "7.1.2",
|
|
34
|
-
"cssnano": "7.0.
|
|
35
|
-
"eslint": "9.
|
|
34
|
+
"cssnano": "7.0.6",
|
|
35
|
+
"eslint": "9.14.0",
|
|
36
36
|
"eslint-plugin-import": "2.31.0",
|
|
37
|
-
"eslint-plugin-n": "17.
|
|
38
|
-
"eslint-plugin-react": "7.37.
|
|
39
|
-
"eslint-plugin-vue": "9.
|
|
37
|
+
"eslint-plugin-n": "17.13.1",
|
|
38
|
+
"eslint-plugin-react": "7.37.2",
|
|
39
|
+
"eslint-plugin-vue": "9.30.0",
|
|
40
40
|
"eslint-plugin-vue-pug": "0.6.2",
|
|
41
41
|
"fork-ts-checker-webpack-plugin": "7.3.0",
|
|
42
42
|
"gulp": "4.0.2",
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"stream-combiner2": "1.1.1",
|
|
65
65
|
"style-loader": "4.0.0",
|
|
66
66
|
"stylus": "0.63.0",
|
|
67
|
-
"stylus-loader": "8.1.
|
|
67
|
+
"stylus-loader": "8.1.1",
|
|
68
68
|
"ts-loader": "9.5.1",
|
|
69
69
|
"vinyl": "2.2.1",
|
|
70
70
|
"vue-loader": "17.4.2",
|
|
71
71
|
"vue-style-loader": "4.1.3",
|
|
72
72
|
"w3c-html-validator": "0.8.1",
|
|
73
|
-
"webpack": "5.
|
|
73
|
+
"webpack": "5.96.1",
|
|
74
74
|
"webpack-node-externals": "3.0.0",
|
|
75
75
|
"webpack-stream": "7.0.0",
|
|
76
76
|
"worker-loader": "3.0.8",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"@types/node": "20.14.2",
|
|
92
92
|
"@types/node-notifier": "8.0.5",
|
|
93
93
|
"@types/pa11y": "5.3.7",
|
|
94
|
-
"@types/probe-image-size": "7.2.
|
|
94
|
+
"@types/probe-image-size": "7.2.5",
|
|
95
95
|
"@types/pug": "2.0.10",
|
|
96
96
|
"@types/webpack-node-externals": "3.0.4",
|
|
97
97
|
"@types/webpack-stream": "3.2.15",
|