@yamato-daiwa/automation 0.0.1 → 0.0.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.
Files changed (3) hide show
  1. package/EntryPoint.js +77 -33
  2. package/README.md +29 -25
  3. package/package.json +15 -8
package/EntryPoint.js CHANGED
@@ -289,6 +289,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
289
289
  Object.defineProperty(exports, "__esModule", ({ value: true }));
290
290
  const AssetsProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative */ "./ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative.ts"));
291
291
  class AudiosProcessingSettingsRepresentative extends AssetsProcessingSettingsRepresentative_1.default {
292
+ TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM = "Audios";
292
293
  assetsProcessingCommonSettings;
293
294
  actualAssetsGroupsSettings;
294
295
  constructor(audiosManagementSettings, masterConfigRepresentative) {
@@ -494,6 +495,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
494
495
  Object.defineProperty(exports, "__esModule", ({ value: true }));
495
496
  const AssetsProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative */ "./ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative.ts"));
496
497
  class FontsProcessingSettingsRepresentative extends AssetsProcessingSettingsRepresentative_1.default {
498
+ TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM = "Fonts";
497
499
  assetsProcessingCommonSettings;
498
500
  actualAssetsGroupsSettings;
499
501
  constructor(imagesManagementSettings, masterConfigRepresentative) {
@@ -698,6 +700,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
698
700
  Object.defineProperty(exports, "__esModule", ({ value: true }));
699
701
  const AssetsProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative */ "./ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative.ts"));
700
702
  class ImagesProcessingSettingsRepresentative extends AssetsProcessingSettingsRepresentative_1.default {
703
+ TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM = "Images";
701
704
  assetsProcessingCommonSettings;
702
705
  actualAssetsGroupsSettings;
703
706
  constructor(imagesManagementSettings, masterConfigRepresentative) {
@@ -911,6 +914,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
911
914
  Object.defineProperty(exports, "__esModule", ({ value: true }));
912
915
  const AssetsProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative */ "./ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative.ts"));
913
916
  class VideosProcessingSettingsRepresentative extends AssetsProcessingSettingsRepresentative_1.default {
917
+ TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM = "Videos";
914
918
  assetsProcessingCommonSettings;
915
919
  actualAssetsGroupsSettings;
916
920
  constructor(videosManagementSettings, masterConfigRepresentative) {
@@ -1082,8 +1086,8 @@ class BrowserLiveReloader {
1082
1086
  clearTimeout(waitingForOtherFilesWillBeUpdatedCountdown);
1083
1087
  es_extensions_1.Logger.logInfo({
1084
1088
  title: "Output files watcher",
1085
- description: ` Event : ${ChokidarSpecialist_1.default.getEventNameInterpretation(eventName)}` +
1086
- `\n Path : ${fileOrDirectoryPath}\n` +
1089
+ description: ` Event : ${ChokidarSpecialist_1.default.getEventNameInterpretation(eventName)}` +
1090
+ `\n Path : ${fileOrDirectoryPath}\n` +
1087
1091
  "Waiting for status changing of other output files..."
1088
1092
  });
1089
1093
  waitingForOtherFilesWillBeUpdatedCountdown = setTimeout(() => {
@@ -3556,7 +3560,10 @@ class ECMA_ScriptLogicProcessingRawSettingsNormalizer extends SourceCodeProcessi
3556
3560
  revisioning: {
3557
3561
  mustExecute: entryPointsGroupSettings__rawValid.buildingModeDependent[this.consumingProjectBuildingMode].
3558
3562
  revisioning?.disable === true ?
3559
- false : ECMA_ScriptLogicProcessingSettings__Default_1.default.revisioning.mustExecute(this.consumingProjectBuildingMode),
3563
+ false : ECMA_ScriptLogicProcessingSettings__Default_1.default.revisioning.mustExecute({
3564
+ consumingProjectBuildingMode: this.consumingProjectBuildingMode,
3565
+ targetRuntimeType: entryPointsGroupSettings__rawValid.targetRuntime.type
3566
+ }),
3560
3567
  contentHashPostfixSeparator: entryPointsGroupSettings__rawValid.buildingModeDependent[this.consumingProjectBuildingMode].
3561
3568
  revisioning?.contentHashPostfixSeparator ??
3562
3569
  ECMA_ScriptLogicProcessingSettings__Default_1.default.revisioning.contentHashPostfixSeparator
@@ -3655,13 +3662,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3655
3662
  };
3656
3663
  Object.defineProperty(exports, "__esModule", ({ value: true }));
3657
3664
  const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding:Common/Defaults/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes.ts"));
3665
+ const ECMA_ScriptLogicProcessingRestrictions_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/ECMA_ScriptLogicProcessingRestrictions */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/ECMA_ScriptLogicProcessingRestrictions.ts"));
3666
+ var SupportedECMA_ScriptRuntimesTypes = ECMA_ScriptLogicProcessingRestrictions_1.default.SupportedECMA_ScriptRuntimesTypes;
3658
3667
  exports["default"] = {
3659
3668
  filePathAliasNotation: "@",
3660
3669
  entryPointsGroupDependent: {
3661
3670
  areExportsFromEntryPointsAccessible: false
3662
3671
  },
3663
3672
  revisioning: {
3664
- mustExecute: (projectBuildingMode__possiblyCustom) => projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.development,
3673
+ mustExecute(namedParameters) {
3674
+ if (namedParameters.targetRuntimeType === SupportedECMA_ScriptRuntimesTypes.browser ||
3675
+ namedParameters.targetRuntimeType === SupportedECMA_ScriptRuntimesTypes.webWorker) {
3676
+ return namedParameters.consumingProjectBuildingMode !== ConsumingProjectPreDefinedBuildingModes_1.default.development;
3677
+ }
3678
+ return false;
3679
+ },
3665
3680
  contentHashPostfixSeparator: "--"
3666
3681
  },
3667
3682
  linting: {
@@ -4748,7 +4763,7 @@ const gulp_pug_1 = __importDefault(__webpack_require__(/*! gulp-pug */ "gulp-pug
4748
4763
  const gulp_intercept_1 = __importDefault(__webpack_require__(/*! gulp-intercept */ "gulp-intercept"));
4749
4764
  const gulp_html_prettify_1 = __importDefault(__webpack_require__(/*! gulp-html-prettify */ "gulp-html-prettify"));
4750
4765
  /* --- Applied utils ------------------------------------------------------------------------------------------------ */
4751
- const AssetsPathsAliasesResolverForHTML_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/AssetsPathsAliasesResolverForHTML */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML.ts"));
4766
+ const AssetsPathsAliasesResolverForHTML_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML.ts"));
4752
4767
  const HTML_Validator_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/HTML_Validator/HTML_Validator */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/HTML_Validator/HTML_Validator.ts"));
4753
4768
  const AccessibilityInspector_1 = __importDefault(__webpack_require__(/*! ./Plugins/AccessibilityInspector/AccessibilityInspector */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AccessibilityInspector/AccessibilityInspector.ts"));
4754
4769
  const removeExtraSpacesFromJapaneseText_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/removeExtraSpacesFromJapaneseText */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/removeExtraSpacesFromJapaneseText.ts"));
@@ -4957,10 +4972,10 @@ exports["default"] = AccessibilityInspectorLocalization__English;
4957
4972
 
4958
4973
  /***/ }),
4959
4974
 
4960
- /***/ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML.ts":
4961
- /*!**************************************************************************************************!*\
4962
- !*** ./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML.ts ***!
4963
- \**************************************************************************************************/
4975
+ /***/ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML.ts":
4976
+ /*!************************************************************************************************************************************!*\
4977
+ !*** ./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML.ts ***!
4978
+ \************************************************************************************************************************************/
4964
4979
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
4965
4980
 
4966
4981
 
@@ -4968,6 +4983,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4968
4983
  return (mod && mod.__esModule) ? mod : { "default": mod };
4969
4984
  };
4970
4985
  Object.defineProperty(exports, "__esModule", ({ value: true }));
4986
+ /* --- Assets ------------------------------------------------------------------------------------------------------- */
4987
+ const AssetsPathsAliasesResolverForHTML_Localization_english_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML_Localization.english */ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML_Localization.english.ts"));
4971
4988
  /* --- Applied auxiliaries ------------------------------------------------------------------------------------------ */
4972
4989
  const cheerio_1 = __importDefault(__webpack_require__(/*! cheerio */ "cheerio"));
4973
4990
  const extractStringifiedContentFromVinylFile_1 = __importDefault(__webpack_require__(/*! @Utils/extractStringifiedContentFromVinylFile */ "./Utils/extractStringifiedContentFromVinylFile.ts"));
@@ -4975,6 +4992,7 @@ const extractStringifiedContentFromVinylFile_1 = __importDefault(__webpack_requi
4975
4992
  const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
4976
4993
  const ImprovedPath_1 = __importDefault(__webpack_require__(/*! @UtilsIncubator/ImprovedPath/ImprovedPath */ "./UtilsIncubator/ImprovedPath/ImprovedPath.ts"));
4977
4994
  class AssetsPathsAliasesResolverForHTML {
4995
+ static localization = AssetsPathsAliasesResolverForHTML_Localization_english_1.default;
4978
4996
  compiledHTML_File;
4979
4997
  $HTML_FileContentCheerioCapturing;
4980
4998
  masterConfigRepresentative;
@@ -5022,7 +5040,7 @@ class AssetsPathsAliasesResolverForHTML {
5022
5040
  if ((0, es_extensions_1.isNull)(stylesheetResolvedOutputAbsolutePath)) {
5023
5041
  continue;
5024
5042
  }
5025
- $LinkElement.attr("href", this.buildFinalAssetURL(stylesheetResolvedOutputAbsolutePath, "意匠計画記法"));
5043
+ $LinkElement.attr("href", this.buildFinalAssetURL(stylesheetResolvedOutputAbsolutePath, stylesProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5026
5044
  }
5027
5045
  return this;
5028
5046
  }
@@ -5054,7 +5072,7 @@ class AssetsPathsAliasesResolverForHTML {
5054
5072
  if ((0, es_extensions_1.isNull)(scriptResolvedOutputAbsolutePath)) {
5055
5073
  continue;
5056
5074
  }
5057
- $ScriptElement.attr("src", this.buildFinalAssetURL(scriptResolvedOutputAbsolutePath, "ECMAScript基本挙動制御"));
5075
+ $ScriptElement.attr("src", this.buildFinalAssetURL(scriptResolvedOutputAbsolutePath, ECMA_ScriptLogicProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5058
5076
  }
5059
5077
  return this;
5060
5078
  }
@@ -5076,12 +5094,12 @@ class AssetsPathsAliasesResolverForHTML {
5076
5094
  sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap: (0, es_extensions_1.createMapBasedOnOtherMap)(imagesProcessingConfigRepresentative.assetsGroupsNormalizedSettingsMappedByAssetAliases, (pathAlias, stylesEntryPointsGroupNormalizedSettings) => [pathAlias, stylesEntryPointsGroupNormalizedSettings.sourceFilesTopDirectoryAbsolutePath]),
5077
5095
  supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots: imagesProcessingConfigRepresentative.supportedSourceFilesNamesExtensionsWithoutLeadingDots,
5078
5096
  sourceAndOutputFilesAbsolutePathsCorrespondenceMap: imagesProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,
5079
- fileTypeForLogging: "画像"
5097
+ fileTypeForLogging: imagesProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM
5080
5098
  });
5081
5099
  if ((0, es_extensions_1.isNull)(imageResolvedOutputAbsolutePath)) {
5082
5100
  continue;
5083
5101
  }
5084
- $ImageElement.attr("src", this.buildFinalAssetURL(imageResolvedOutputAbsolutePath, "画像"));
5102
+ $ImageElement.attr("src", this.buildFinalAssetURL(imageResolvedOutputAbsolutePath, imagesProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5085
5103
  }
5086
5104
  for (const linkElement of Array.from(this.$HTML_FileContentCheerioCapturing("link[type='image/x-icon']"))) {
5087
5105
  const $LinkElement = this.$HTML_FileContentCheerioCapturing(linkElement);
@@ -5098,12 +5116,12 @@ class AssetsPathsAliasesResolverForHTML {
5098
5116
  ]),
5099
5117
  supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots: imagesProcessingConfigRepresentative.supportedSourceFilesNamesExtensionsWithoutLeadingDots,
5100
5118
  sourceAndOutputFilesAbsolutePathsCorrespondenceMap: imagesProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,
5101
- fileTypeForLogging: "画像"
5119
+ fileTypeForLogging: imagesProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM
5102
5120
  });
5103
5121
  if ((0, es_extensions_1.isNull)(imageResolvedOutputAbsolutePath)) {
5104
5122
  continue;
5105
5123
  }
5106
- $LinkElement.attr("href", this.buildFinalAssetURL(imageResolvedOutputAbsolutePath, "画像"));
5124
+ $LinkElement.attr("href", this.buildFinalAssetURL(imageResolvedOutputAbsolutePath, imagesProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5107
5125
  }
5108
5126
  return this;
5109
5127
  }
@@ -5125,12 +5143,12 @@ class AssetsPathsAliasesResolverForHTML {
5125
5143
  sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap: (0, es_extensions_1.createMapBasedOnOtherMap)(videosProcessingConfigRepresentative.assetsGroupsNormalizedSettingsMappedByAssetAliases, (pathAlias, stylesEntryPointsGroupNormalizedSettings) => [pathAlias, stylesEntryPointsGroupNormalizedSettings.sourceFilesTopDirectoryAbsolutePath]),
5126
5144
  supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots: videosProcessingConfigRepresentative.supportedSourceFilesNamesExtensionsWithoutLeadingDots,
5127
5145
  sourceAndOutputFilesAbsolutePathsCorrespondenceMap: videosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,
5128
- fileTypeForLogging: "動画"
5146
+ fileTypeForLogging: videosProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM
5129
5147
  });
5130
5148
  if ((0, es_extensions_1.isNull)(videoResolvedOutputAbsolutePath)) {
5131
5149
  continue;
5132
5150
  }
5133
- $SourceElement.attr("src", this.buildFinalAssetURL(videoResolvedOutputAbsolutePath, "動画"));
5151
+ $SourceElement.attr("src", this.buildFinalAssetURL(videoResolvedOutputAbsolutePath, videosProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5134
5152
  }
5135
5153
  return this;
5136
5154
  }
@@ -5153,12 +5171,12 @@ class AssetsPathsAliasesResolverForHTML {
5153
5171
  sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap: (0, es_extensions_1.createMapBasedOnOtherMap)(audiosProcessingConfigRepresentative.assetsGroupsNormalizedSettingsMappedByAssetAliases, (pathAlias, stylesEntryPointsGroupNormalizedSettings) => [pathAlias, stylesEntryPointsGroupNormalizedSettings.sourceFilesTopDirectoryAbsolutePath]),
5154
5172
  supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots: audiosProcessingConfigRepresentative.supportedSourceFilesNamesExtensionsWithoutLeadingDots,
5155
5173
  sourceAndOutputFilesAbsolutePathsCorrespondenceMap: audiosProcessingConfigRepresentative.sourceFilesAbsolutePathsAndOutputFilesActualPathsMap,
5156
- fileTypeForLogging: "動画"
5174
+ fileTypeForLogging: audiosProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM
5157
5175
  });
5158
5176
  if ((0, es_extensions_1.isNull)(audioResolvedOutputAbsolutePath)) {
5159
5177
  continue;
5160
5178
  }
5161
- $SourceElement.attr("src", this.buildFinalAssetURL(audioResolvedOutputAbsolutePath, "録音"));
5179
+ $SourceElement.attr("src", this.buildFinalAssetURL(audioResolvedOutputAbsolutePath, audiosProcessingConfigRepresentative.TARGET_FILES_KIND_FOR_LOGGING__PLURAL_FORM));
5162
5180
  }
5163
5181
  return this;
5164
5182
  }
@@ -5168,11 +5186,10 @@ class AssetsPathsAliasesResolverForHTML {
5168
5186
  (0, es_extensions_1.isUndefined)(this.masterConfigRepresentative.actualPublicDirectoryAbsolutePath)) {
5169
5187
  if (!this.masterConfigRepresentative.isDevelopmentBuildingMode &&
5170
5188
  (0, es_extensions_1.isUndefined)(this.masterConfigRepresentative.actualPublicDirectoryAbsolutePath)) {
5171
- es_extensions_1.Logger.logWarning({
5172
- title: `${assetTypeForLogging}ファイル、諸略絶対パス算出不可能`,
5173
- description: `プロジェクト構成モード:「${this.masterConfigRepresentative.consumingProjectBuildingMode}」` +
5174
- `に該当する公開パスが定義されていない為、${assetTypeForLogging}の絶対パスの算出は不可能。代わりに相対パスを代入。`
5175
- });
5189
+ es_extensions_1.Logger.logWarning(AssetsPathsAliasesResolverForHTML.localization.generateUnableToComputeShortenedAbsolutePathWarning({
5190
+ projectBuildingMode: this.masterConfigRepresentative.consumingProjectBuildingMode,
5191
+ filesTypeForLogging: assetTypeForLogging
5192
+ }));
5176
5193
  }
5177
5194
  return ImprovedPath_1.default.computeRelativePath({
5178
5195
  basePath: this.compiledHTML_File.outputDirectoryAbsolutePath,
@@ -5193,12 +5210,12 @@ class AssetsPathsAliasesResolverForHTML {
5193
5210
  }
5194
5211
  const sourceFilesTopDirectoryAbsolutePathForCurrentAlias = sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.get(firstURL_Segment__possiblyPathAlias);
5195
5212
  if ((0, es_extensions_1.isUndefined)(sourceFilesTopDirectoryAbsolutePathForCurrentAlias)) {
5196
- es_extensions_1.Logger.logWarning({
5197
- title: `${fileTypeForLogging}ファイル、不明パスアリアス`,
5198
- description: `${fileTypeForLogging}ファイルの指定されたパス:「${pickedURL}」に在るアリアス:「${firstURL_Segment__possiblyPathAlias}」` +
5199
- "該当しているディレクトリが見つけられなかった。下記のアリアスが明示的か、規定で定義してある:\n" +
5200
- `${(0, es_extensions_1.stringifyAndFormatArbitraryValue)(Array.from(sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.entries()))}`
5201
- });
5213
+ es_extensions_1.Logger.logWarning(AssetsPathsAliasesResolverForHTML.localization.generateUnknownSourceFileTopDirectoryAliasWarning({
5214
+ fileTypeForLogging,
5215
+ firstPathSegment: firstURL_Segment__possiblyPathAlias,
5216
+ pickedPath: pickedURL,
5217
+ formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap: (0, es_extensions_1.stringifyAndFormatArbitraryValue)(Array.from(sourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap.entries()))
5218
+ }));
5202
5219
  return null;
5203
5220
  }
5204
5221
  const sourceFileComputedAbsolutePath__possiblyWithoutFilenameExtension = ImprovedPath_1.default.joinPathSegments(sourceFilesTopDirectoryAbsolutePathForCurrentAlias, ...pickedURL_Segments.slice(1));
@@ -5226,8 +5243,8 @@ class AssetsPathsAliasesResolverForHTML {
5226
5243
  }
5227
5244
  return Array.from(searchResultsInSourceFilesAbsolutePathsAndOutputFilesActualPathsMap.values())[0];
5228
5245
  }
5229
- const resolvedStylesheetOutputAbsolutePath = sourceAndOutputFilesAbsolutePathsCorrespondenceMap.get(sourceFileComputedAbsolutePath__possiblyWithoutFilenameExtension);
5230
- if ((0, es_extensions_1.isUndefined)(resolvedStylesheetOutputAbsolutePath)) {
5246
+ const resolvedFileOutputAbsolutePath = sourceAndOutputFilesAbsolutePathsCorrespondenceMap.get(sourceFileComputedAbsolutePath__possiblyWithoutFilenameExtension);
5247
+ if ((0, es_extensions_1.isUndefined)(resolvedFileOutputAbsolutePath)) {
5231
5248
  es_extensions_1.Logger.logWarning({
5232
5249
  title: `${fileTypeForLogging}ファイル、不明パスアリアス`,
5233
5250
  description: `${fileTypeForLogging}ファイル:「${pickedURL}」に在るアリアス:${firstURL_Segment__possiblyPathAlias}に` +
@@ -5235,12 +5252,39 @@ class AssetsPathsAliasesResolverForHTML {
5235
5252
  });
5236
5253
  return null;
5237
5254
  }
5238
- return resolvedStylesheetOutputAbsolutePath;
5255
+ return resolvedFileOutputAbsolutePath;
5239
5256
  }
5240
5257
  }
5241
5258
  exports["default"] = AssetsPathsAliasesResolverForHTML;
5242
5259
 
5243
5260
 
5261
+ /***/ }),
5262
+
5263
+ /***/ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML_Localization.english.ts":
5264
+ /*!*********************************************************************************************************************************************************!*\
5265
+ !*** ./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/AssetsPathsAliasesResolverForHTML/AssetsPathsAliasesResolverForHTML_Localization.english.ts ***!
5266
+ \*********************************************************************************************************************************************************/
5267
+ /***/ ((__unused_webpack_module, exports) => {
5268
+
5269
+
5270
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
5271
+ const assetsPathsAliasesResolverForHTML_Localization__english = {
5272
+ generateUnableToComputeShortenedAbsolutePathWarning: (namedParameters) => ({
5273
+ title: `${namedParameters.filesTypeForLogging} files, unable to generate the absolute path`,
5274
+ description: `Unable to generate the shortened absolute path for the ${namedParameters.filesTypeForLogging} files ` +
5275
+ `because no public path has been specified for '${namedParameters.projectBuildingMode}' mode. Relative path ` +
5276
+ "will be generated instead."
5277
+ }),
5278
+ generateUnknownSourceFileTopDirectoryAliasWarning: (namedParameters) => ({
5279
+ title: `${namedParameters.fileTypeForLogging} files, unknown path alias`,
5280
+ description: `The alias '${namedParameters.firstPathSegment}' in path '${namedParameters.pickedPath}' has not been ` +
5281
+ "specified neither explicitly nor implicitly. Below aliases are available for usage: \n" +
5282
+ `${namedParameters.formattedSourceFilesTopDirectoriesAliasesAndRespectiveAbsolutePathsMap}`
5283
+ })
5284
+ };
5285
+ exports["default"] = assetsPathsAliasesResolverForHTML_Localization__english;
5286
+
5287
+
5244
5288
  /***/ }),
5245
5289
 
5246
5290
  /***/ "./ProjectBuilding/SourceCodeProcessing/Markup/Plugins/HTML_Validator/HTML_Validator.ts":
package/README.md CHANGED
@@ -8,6 +8,13 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
8
8
  [📖 Documentation](https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/blob/master/README.md)
9
9
 
10
10
 
11
+ ## Installation
12
+
13
+ ```
14
+ npm i @yamato-daiwa/automation -D -E
15
+ ```
16
+
17
+
11
18
  ## Dependencies list
12
19
 
13
20
  <dl>
@@ -19,13 +26,13 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
19
26
  <dd>Used to reduce the routine code</dd>
20
27
 
21
28
  <dt>@yamato-daiwa/style_guides</dt>
22
- <dd>The code style guides to which this project obeying and also suggested for consuming project.</dd>
29
+ <dd>The code style guides to which this project obeying and also suggested for the consuming project</dd>
23
30
 
24
31
  <dt>autoprefixer</dt>
25
32
  <dd>Used for adding of the vendor prefixes to CSS properties in processed stylesheets the better cross-browser adaptations</dd>
26
33
 
27
34
  <dt>browser-sync</dt>
28
- <dd>Used to provide the automation of browser reloading when project incrementally rebuilt</dd>
35
+ <dd>Used to provide the automation of browser opening and reloading when project incrementally rebuilt</dd>
29
36
 
30
37
  <dt>cheerio</dt>
31
38
  <dd>Used for manipulation with compiled HTML code like resolving of paths aliases</dd>
@@ -43,7 +50,7 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
43
50
  <dd>Used to improve the performance of TypeScript transpiling functionality</dd>
44
51
 
45
52
  <dt>gulp</dt>
46
- <dd>Used as main task manager, the tool to provide the arranging of the tasks to sequences and series and running them</dd>
53
+ <dd>Used as main task manager, the tool for providing of arranging of the tasks to sequences and series and running them</dd>
47
54
 
48
55
  <dt>gulp-debug</dt>
49
56
  <dd>Used to outputs the processed files names and quantity to the terminal</dd>
@@ -76,7 +83,7 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
76
83
  <dd>Used to provide the import of HTML code as string to JavaScript bundle</dd>
77
84
 
78
85
  <dt>html-validator</dt>
79
- <dd>Used to get the HTML validation data from W3C service. The formatted output to terminal has been implemented by YDA developer.</dd>
86
+ <dd>Used to get the HTML validation data from W3C service. The formatted output to terminal has been implemented by YDA development side.</dd>
80
87
 
81
88
  <dt>imagemin-pngquant</dt>
82
89
  <dd>Used to provides the optimization of PNG files</dd>
@@ -93,7 +100,7 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
93
100
  <dt>pug-html-loader</dt>
94
101
  <dd>
95
102
  Used in combination with <b>html-loader</b> to provide the importing of HTML code compiled from Pug language as string
96
- to JavaScript bundle.
103
+ to JavaScript bundle
97
104
  </dd>
98
105
 
99
106
  <dt>rev-hash</dt>
@@ -103,14 +110,14 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
103
110
  </dd>
104
111
 
105
112
  <dt>stlint</dt>
106
- <dd>Used for linting of styles written by Stylus. The formatted output to terminal has been implemented by YDA developer</dd>
113
+ <dd>Used for linting of styles written by Stylus. The formatted output to terminal has been implemented by YDA development side.</dd>
107
114
 
108
- <dd>style-loader</dd>
109
- <dt>Used to provide the dynamic injection of CSS functionality which has been imported to JavaScript bundle built by Webpack</dt>
115
+ <dt>style-loader</dt>
116
+ <dd>Used to provide the dynamic injection of CSS functionality which has been imported to JavaScript bundle built by Webpack</dd>
110
117
 
111
118
  <dt>stylus-loader</dt>
112
119
  <dd>
113
- Used to provide the dynamic injection of CSS witten by Stylus pre-processor which has been imported to JavaScript
120
+ Used to provide the dynamic loading of CSS witten by Stylus pre-processor which has been imported to JavaScript
114
121
  bundle built by Webpack
115
122
  </dd>
116
123
 
@@ -118,37 +125,40 @@ Specializing on Pug, Stylus and TypeScript as source code languages; also works
118
125
  <dd>Used to provide the integration of TypeScript and Webpack</dd>
119
126
 
120
127
  <dt>vue-style-loader</dt>
121
- <dd>Used to provide the dynamical injection of CSS written in Vue Single File Components to HTML document</dd>
128
+ <dd>Used to provide the dynamical loading of CSS written in Vue Single File Components to HTML document</dd>
122
129
 
123
130
  <dt>webpack</dt>
124
- <dd>Used as basic tool for the ECMAScript logic processing.</dd>
131
+ <dd>Used as basic tool for the ECMAScript logic processing</dd>
125
132
 
126
133
  <dt>webpack-node-externals</dt>
127
134
  <dd>
128
135
  Used to prevent the bundling of NodeJS modules by Webpack because this bundling brings a lot of warning and/or errors
129
- while not required for console and server applications.
136
+ while not required for console and server applications
130
137
  </dd>
131
-
138
+
139
+ <dt>yamljs</dt>
140
+ <dd>Used for reading and parsing of configuration YAML files</dd>
141
+
132
142
  <dt>yaml-loader</dt>
133
- <dd>Used to provide the import of content of YAML files converted to JavaScript native object.</dd>
143
+ <dd>Used to provide the import of content of YAML files converted to JavaScript native object</dd>
134
144
 
135
145
  </dl>
136
146
 
137
147
 
138
148
  ### For development needs only
139
149
 
140
- All **@types** are the TypeScript types definitions required for normal transpiling of the TypeScript.
150
+ All **@types** are the TypeScript types definitions that required for normal transpiling of the TypeScript to JavaScript (Node.js).
141
151
 
142
152
  <dl>
143
153
 
144
154
  <dt>ts-node</dt>
145
- <dd>Used to support the Webpack building written by TypeScript</dd>
155
+ <dd>Used to support the Webpack configuration written by TypeScript</dd>
146
156
 
147
157
  <dt>typescript</dt>
148
- <dd>Used to provide the TypeScript as source code language.</dd>
158
+ <dd>Used to provide the TypeScript as source code language</dd>
149
159
 
150
160
  <dt>webpack-cli</dt>
151
- <dd>Used for the project building.</dd>
161
+ <dd>Used for the project building</dd>
152
162
 
153
163
  </dl>
154
164
 
@@ -158,12 +168,6 @@ All **@types** are the TypeScript types definitions required for normal transpil
158
168
  <dl>
159
169
 
160
170
  <dt>glob</dt>
161
- <dd>Used by <b>ImprovedGlob</b> which will be moved to <b>@yamato-daiwa/es-extensions-nodejs</b> and used as dependency.</dd>
162
-
163
- <dt>json5</dt>
164
- <dd>Used by <b>ConsoleCommandsParser</b> which will be moved to <b>@yamato-daiwa/es-extensions-nodejs</b> and used as dependency.</dd>
165
-
166
- <dt>yamljs</dt>
167
- <dd>Used for reading and parsing of YAML files. Will be moved to <b>@yamato-daiwa/es-extensions-nodejs</b> and used as dependency.</dd>
171
+ <dd>Used by <b>ImprovedGlob</b> which will be moved to <b>@yamato-daiwa/es-extensions-nodejs</b> and used as dependency</dd>
168
172
 
169
173
  </dl>
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/automation",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
+ "description": "The project building tool with declarative YAML configuration specializing on Pug, Stylus and TypeScript as source code languages.",
5
+ "keywords": [
6
+ "build",
7
+ "pug",
8
+ "stylus",
9
+ "tool",
10
+ "typescript"
11
+ ],
4
12
  "engines": {
5
13
  "node": ">=14.16"
6
14
  },
@@ -13,7 +21,7 @@
13
21
  "dependencies": {
14
22
  "@typescript-eslint/eslint-plugin": "5.26.0",
15
23
  "@typescript-eslint/parser": "5.26.0",
16
- "@vue/compiler-sfc": "3.2.36",
24
+ "@vue/compiler-sfc": "3.2.37",
17
25
  "@yamato-daiwa/es-extensions": "1.5.0-alpha.7",
18
26
  "@yamato-daiwa/es-extensions-nodejs": "1.5.0-alpha.4",
19
27
  "@yamato-daiwa/style_guides": "0.0.7",
@@ -43,7 +51,6 @@
43
51
  "html-loader": "3.1.0",
44
52
  "html-validator": "6.0.1",
45
53
  "imagemin-pngquant": "9.0.2",
46
- "json5": "2.2.1",
47
54
  "json5-loader": "4.0.1",
48
55
  "node-notifier": "10.0.1",
49
56
  "pug-html-loader": "1.1.5",
@@ -53,10 +60,10 @@
53
60
  "style-loader": "3.3.1",
54
61
  "stylus-loader": "6.2.0",
55
62
  "ts-loader": "9.3.0",
56
- "vue": "3.2.36",
63
+ "vue": "3.2.37",
57
64
  "vue-loader": "17.0.0",
58
65
  "vue-style-loader": "4.1.3",
59
- "webpack": "5.72.1",
66
+ "webpack": "5.73.0",
60
67
  "webpack-node-externals": "3.0.0",
61
68
  "worker-loader": "3.0.8",
62
69
  "yaml-loader": "0.8.0",
@@ -82,9 +89,9 @@
82
89
  "@types/node-notifier": "8.0.2",
83
90
  "@types/webpack-node-externals": "2.5.3",
84
91
  "@types/yamljs": "0.2.31",
85
- "ts-node": "10.8.0",
86
- "typescript": "4.7.2",
87
- "webpack-cli": "4.9.2"
92
+ "ts-node": "10.8.1",
93
+ "typescript": "4.7.3",
94
+ "webpack-cli": "4.10.0"
88
95
  },
89
96
  "scripts": {
90
97
  "Incremental development build": "webpack --mode development",