@yamato-daiwa/automation 0.6.1 → 0.6.4

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 (2) hide show
  1. package/EntryPoint.js +251 -4
  2. package/package.json +8 -8
package/EntryPoint.js CHANGED
@@ -183,7 +183,7 @@ const w3cHtmlValidator = {
183
183
  \***********************/
184
184
  /***/ ((module) => {
185
185
 
186
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.6.1","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":"3.1.0","@typescript-eslint/eslint-plugin":"8.25.0","@typescript-eslint/parser":"8.25.0","@vue/compiler-sfc":"3.5.13","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.8.0-alpha.9","@yamato-daiwa/es-extensions-nodejs":"1.8.0-alpha.9","@yamato-daiwa/style_guides":"0.6.4","autoprefixer":"10.4.20","browser-sync":"3.0.3","css-loader":"7.1.2","cssnano":"7.0.6","dotenv":"16.4.7","eslint":"9.21.0","eslint-plugin-import":"2.31.0","eslint-plugin-n":"17.15.1","eslint-plugin-react":"7.37.4","eslint-plugin-vue":"9.32.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-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","js-beautify":"1.15.4","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","pug-lint":"2.7.0","pug3-ast-loader":"0.0.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.1","ts-loader":"9.5.2","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"1.8.2","webpack":"5.98.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-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/js-beautify":"1.14.3","@types/node":"22.13.7","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/vnu-jar":"17.11.2","@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.7.3","vnu-jar":"24.10.17","webpack-cli":"6.0.1"},"scripts":{"Incremental Development Building":"webpack --mode development","Production Building":"webpack --mode production","Linting":"eslint Source"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"homepage":"https://automation.yamato-daiwa.com/","bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
186
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.6.4","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":"3.1.0","@typescript-eslint/eslint-plugin":"8.26.0","@typescript-eslint/parser":"8.26.0","@vue/compiler-sfc":"3.5.13","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.8.0-alpha.9","@yamato-daiwa/es-extensions-nodejs":"1.8.0-alpha.9","@yamato-daiwa/style_guides":"0.6.5","autoprefixer":"10.4.20","browser-sync":"3.0.3","css-loader":"7.1.2","cssnano":"7.0.6","dotenv":"16.4.7","eslint":"9.22.0","eslint-plugin-import":"2.31.0","eslint-plugin-n":"17.16.2","eslint-plugin-react":"7.37.4","eslint-plugin-vue":"9.33.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-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","js-beautify":"1.15.4","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","pug-lint":"2.7.0","pug3-ast-loader":"0.0.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.1","ts-loader":"9.5.2","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"1.8.2","webpack":"5.98.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-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/js-beautify":"1.14.3","@types/node":"22.13.7","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/vnu-jar":"17.11.2","@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.8.2","vnu-jar":"24.10.17","webpack-cli":"6.0.1"},"scripts":{"Incremental Development Building":"webpack --mode development","Production Building":"webpack --mode production","Linting":"eslint Source"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"homepage":"https://automation.yamato-daiwa.com/","bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
187
187
 
188
188
  /***/ }),
189
189
 
@@ -8728,16 +8728,33 @@ class MarkupEntryPointVinylFile extends VinylFileClass_1.default {
8728
8728
  manageVariationsForStaticPreviewIfAnyAndStaticPreviewBuildingMode() {
8729
8729
  /* [ Approach ] For all product building modes except static preview all following settings will be undefined. */
8730
8730
  const localeDependentPagesVariationsSettings = this.markupProcessingSettingsRepresentative.localeDependentPagesVariationsSettings;
8731
+ const pageVariations = [];
8731
8732
  if ((0, es_extensions_1.isUndefined)(localeDependentPagesVariationsSettings)) {
8733
+ if ((0, es_extensions_1.isUndefined)(this.pageStateDependentVariationsSpecification)) {
8734
+ return {
8735
+ newFiles: [],
8736
+ mustInitialFileBeDeleted: false
8737
+ };
8738
+ }
8739
+ for (const [derivedFileAbsolutePath, state] of this.pageStateDependentVariationsSpecification.derivedPagesAndStatesMap.entries()) {
8740
+ pageVariations.push(new MarkupEntryPointVinylFile({
8741
+ initialPlainVinylFile: new vinyl_1.default({
8742
+ base: this.base,
8743
+ path: derivedFileAbsolutePath,
8744
+ contents: this.contents
8745
+ }),
8746
+ markupProcessingSettingsRepresentative: this.markupProcessingSettingsRepresentative,
8747
+ pageStateDependentVariationData: { [this.pageStateDependentVariationsSpecification.stateVariableName]: state }
8748
+ }));
8749
+ }
8732
8750
  return {
8733
- newFiles: [],
8751
+ newFiles: pageVariations,
8734
8752
  mustInitialFileBeDeleted: false
8735
8753
  };
8736
8754
  }
8737
8755
  const { localizedStringResourcesConstantName, localeVariableName, locales } = localeDependentPagesVariationsSettings;
8738
8756
  const areLocaleDependentVariationsRequiredForCurrentFile = locales.size > 0 &&
8739
8757
  !localeDependentPagesVariationsSettings.excludedFilesAbsolutePaths.includes(this.sourceAbsolutePath);
8740
- const pageVariations = [];
8741
8758
  if (areLocaleDependentVariationsRequiredForCurrentFile) {
8742
8759
  for (const localeData of locales.values()) {
8743
8760
  pageVariations.push(new MarkupEntryPointVinylFile({
@@ -9052,10 +9069,77 @@ var MarkupProcessingSettings__FromFile__RawValid;
9052
9069
  /* ━━━ Common ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
9053
9070
  $common: {
9054
9071
  newName: "common",
9055
- preValidationModifications: es_extensions_1.nullToUndefined,
9056
9072
  type: Object,
9057
9073
  required: false,
9074
+ preValidationModifications: es_extensions_1.nullToUndefined,
9058
9075
  properties: {
9076
+ $localization: {
9077
+ newName: "localization",
9078
+ type: Object,
9079
+ required: false,
9080
+ preValidationModifications: es_extensions_1.nullToUndefined,
9081
+ properties: {
9082
+ $stringResourcesFileRelativePath: {
9083
+ newName: "stringResourcesFileRelativePath",
9084
+ type: String,
9085
+ required: false,
9086
+ minimalCharactersCount: 1
9087
+ },
9088
+ $localizedStringResourcesConstantName: {
9089
+ newName: "localizedStringResourcesConstantName",
9090
+ type: String,
9091
+ required: false,
9092
+ minimalCharactersCount: 1
9093
+ },
9094
+ $localeConstantName: {
9095
+ newName: "localeConstantName",
9096
+ type: String,
9097
+ required: false,
9098
+ minimalCharactersCount: 1
9099
+ },
9100
+ $nameOfConstantForInterpolationToLangHTML_Attribute: {
9101
+ newName: "nameOfConstantForInterpolationToLangHTML_Attribute",
9102
+ type: String,
9103
+ required: false,
9104
+ minimalCharactersCount: 1
9105
+ },
9106
+ $locales: {
9107
+ newName: "locales",
9108
+ type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
9109
+ required: true,
9110
+ minimalEntriesCount: 1,
9111
+ value: {
9112
+ type: Object,
9113
+ properties: {
9114
+ $outputFileInterimNameExtensionWithoutDot: {
9115
+ newName: "outputFileInterimNameExtensionWithoutDot",
9116
+ type: String,
9117
+ required: true,
9118
+ minimalCharactersCount: 1
9119
+ },
9120
+ $localeConstantValue: {
9121
+ newName: "localeConstantValue",
9122
+ type: String,
9123
+ required: false,
9124
+ minimalCharactersCount: 1
9125
+ },
9126
+ $keyInLocalizedStringResourcesObject: {
9127
+ newName: "keyInLocalizedStringResourcesObject",
9128
+ type: String,
9129
+ required: false,
9130
+ minimalCharactersCount: 1
9131
+ },
9132
+ $valueOfConstantForInterpolationToLangHTML_Attribute: {
9133
+ newName: "valueOfConstantForInterpolationToLangHTML_Attribute",
9134
+ type: String,
9135
+ required: false,
9136
+ minimalCharactersCount: 1
9137
+ }
9138
+ }
9139
+ }
9140
+ }
9141
+ }
9142
+ },
9059
9143
  $buildingModeDependent: {
9060
9144
  newName: "buildingModeDependent",
9061
9145
  type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
@@ -9290,6 +9374,82 @@ var MarkupProcessingSettings__FromFile__RawValid;
9290
9374
  allowedAlternatives: Object.values(MarkupProcessingRestrictions_1.default.OutputFormats),
9291
9375
  required: false
9292
9376
  },
9377
+ $localization: {
9378
+ newName: "localization",
9379
+ type: Object,
9380
+ required: false,
9381
+ preValidationModifications: es_extensions_1.nullToUndefined,
9382
+ properties: {
9383
+ $stringResourcesFileRelativePath: {
9384
+ newName: "stringResourcesFileRelativePath",
9385
+ type: String,
9386
+ required: false,
9387
+ minimalCharactersCount: 1
9388
+ },
9389
+ $localizedStringResourcesConstantName: {
9390
+ newName: "localizedStringResourcesConstantName",
9391
+ type: String,
9392
+ required: false,
9393
+ minimalCharactersCount: 1
9394
+ },
9395
+ $localeConstantName: {
9396
+ newName: "localeConstantName",
9397
+ type: String,
9398
+ required: false,
9399
+ minimalCharactersCount: 1
9400
+ },
9401
+ $nameOfConstantForInterpolationToLangHTML_Attribute: {
9402
+ newName: "nameOfConstantForInterpolationToLangHTML_Attribute",
9403
+ type: String,
9404
+ required: false,
9405
+ minimalCharactersCount: 1
9406
+ },
9407
+ $locales: {
9408
+ newName: "locales",
9409
+ type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
9410
+ required: true,
9411
+ minimalEntriesCount: 1,
9412
+ value: {
9413
+ type: Object,
9414
+ properties: {
9415
+ $outputFileInterimNameExtensionWithoutDot: {
9416
+ newName: "outputFileInterimNameExtensionWithoutDot",
9417
+ type: String,
9418
+ required: true,
9419
+ minimalCharactersCount: 1
9420
+ },
9421
+ $localeConstantValue: {
9422
+ newName: "localeConstantValue",
9423
+ type: String,
9424
+ required: false,
9425
+ minimalCharactersCount: 1
9426
+ },
9427
+ $keyInLocalizedStringResourcesObject: {
9428
+ newName: "keyInLocalizedStringResourcesObject",
9429
+ type: String,
9430
+ required: false,
9431
+ minimalCharactersCount: 1
9432
+ },
9433
+ $valueOfConstantForInterpolationToLangHTML_Attribute: {
9434
+ newName: "valueOfConstantForInterpolationToLangHTML_Attribute",
9435
+ type: String,
9436
+ required: false,
9437
+ minimalCharactersCount: 1
9438
+ }
9439
+ }
9440
+ }
9441
+ },
9442
+ $excludedFilesPathsRelativeRelativeToSourcesFileTopDirectory: {
9443
+ newName: "excludedFilesRelativePaths",
9444
+ type: Array,
9445
+ required: false,
9446
+ element: {
9447
+ type: String,
9448
+ minimalCharactersCount: 1
9449
+ }
9450
+ }
9451
+ }
9452
+ },
9293
9453
  [markupProcessingPropertiesLocalization.entryPointsGroups.HTML_Validation.KEY]: {
9294
9454
  newName: "HTML_Validation",
9295
9455
  preValidationModifications: es_extensions_1.nullToUndefined,
@@ -12523,6 +12683,7 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
12523
12683
  static localization = MarkupProcessingRawSettingsNormalizerLocalization_english_1.default;
12524
12684
  supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots = MarkupProcessingRestrictions_1.default.supportedSourceFilesNamesExtensionsWithoutLeadingDots;
12525
12685
  markupProcessingSettings__fromFile__rawValid;
12686
+ commonStringResources;
12526
12687
  static normalize({ markupProcessingSettings__fromFile__rawValid, commonSettings__normalized }) {
12527
12688
  const dataHoldingSelfInstance = new MarkupProcessingRawSettingsNormalizer({
12528
12689
  projectBuildingCommonSettings__normalized: commonSettings__normalized,
@@ -12822,6 +12983,7 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
12822
12983
  return {
12823
12984
  ...entryPointsGroupGenericSettings__normalized,
12824
12985
  outputFormat,
12986
+ localization: this.normalizeEntryPointsGroupLocalizationsSettings(entryPointsGroupGenericSettings__normalized.outputFilesTopDirectoryAbsolutePath, entryPointsGroupSettings__rawValid.localization),
12825
12987
  HTML_Validation: {
12826
12988
  mustExecute: entryPointsGroupSettings__rawValid.HTML_Validation?.disable === true ? false :
12827
12989
  MarkupProcessingSettings__Default_1.default.HTML_Validation.mustExecute,
@@ -12888,6 +13050,59 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
12888
13050
  }
12889
13051
  };
12890
13052
  }
13053
+ normalizeEntryPointsGroupLocalizationsSettings(outputFilesTopDirectoryAbsolutePath, entryPointGroupLocalizationSettings__rawValid) {
13054
+ const localizedStringResourcesConstantName = entryPointGroupLocalizationSettings__rawValid?.localizedStringResourcesConstantName ??
13055
+ this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localizedStringResourcesConstantName;
13056
+ const localeConstantName = entryPointGroupLocalizationSettings__rawValid?.localeConstantName ??
13057
+ this.markupProcessingSettings__fromFile__rawValid.common?.localization?.localeConstantName;
13058
+ const nameOfConstantForInterpolationToLangHTML_Attribute = entryPointGroupLocalizationSettings__rawValid?.nameOfConstantForInterpolationToLangHTML_Attribute ??
13059
+ this.markupProcessingSettings__fromFile__rawValid.common?.localization?.
13060
+ nameOfConstantForInterpolationToLangHTML_Attribute;
13061
+ if ((0, es_extensions_1.isUndefined)(this.commonStringResources) &&
13062
+ (0, es_extensions_1.isNotUndefined)(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.stringResourcesFileRelativePath)) {
13063
+ this.commonStringResources = this.getStringResourcesFromFile(this.markupProcessingSettings__fromFile__rawValid.common.localization.stringResourcesFileRelativePath);
13064
+ }
13065
+ const entryPointGroupStringResources = (0, es_extensions_1.isNotUndefined)(entryPointGroupLocalizationSettings__rawValid?.stringResourcesFileRelativePath) ?
13066
+ this.getStringResourcesFromFile(entryPointGroupLocalizationSettings__rawValid.stringResourcesFileRelativePath) :
13067
+ this.commonStringResources;
13068
+ const locales = new Map();
13069
+ for (const [localeKey, { outputFileInterimNameExtensionWithoutDot, localeConstantValue, keyInLocalizedStringResourcesObject, valueOfConstantForInterpolationToLangHTML_Attribute }] of Object.entries(this.markupProcessingSettings__fromFile__rawValid.common?.localization?.locales ?? {})) {
13070
+ locales.set(localeKey, {
13071
+ outputFileInterimNameExtensionWithoutDot,
13072
+ ...(0, es_extensions_1.isNotUndefined)(entryPointGroupStringResources) && (0, es_extensions_1.isNotUndefined)(keyInLocalizedStringResourcesObject) ? {
13073
+ stringResources: entryPointGroupStringResources[keyInLocalizedStringResourcesObject]
13074
+ } : null,
13075
+ ...(0, es_extensions_1.isNotUndefined)(localeConstantValue) ? { localeConstantValue } : null,
13076
+ ...(0, es_extensions_1.isNotUndefined)(valueOfConstantForInterpolationToLangHTML_Attribute) ?
13077
+ { valueOfConstantForInterpolationToLangHTML_Attribute } : null
13078
+ });
13079
+ }
13080
+ for (const [localeKey, { outputFileInterimNameExtensionWithoutDot, localeConstantValue, keyInLocalizedStringResourcesObject, valueOfConstantForInterpolationToLangHTML_Attribute }] of Object.entries(entryPointGroupLocalizationSettings__rawValid?.locales ?? {})) {
13081
+ const normalizedLocaleToOverride = locales.get(localeKey);
13082
+ locales.set(localeKey, {
13083
+ ...normalizedLocaleToOverride ?? null,
13084
+ outputFileInterimNameExtensionWithoutDot,
13085
+ ...(0, es_extensions_1.isNotUndefined)(entryPointGroupStringResources) && (0, es_extensions_1.isNotUndefined)(keyInLocalizedStringResourcesObject) ? {
13086
+ stringResources: entryPointGroupStringResources[keyInLocalizedStringResourcesObject]
13087
+ } : null,
13088
+ ...(0, es_extensions_1.isNotUndefined)(localeConstantValue) ? { localeConstantValue } : null,
13089
+ ...(0, es_extensions_1.isNotUndefined)(valueOfConstantForInterpolationToLangHTML_Attribute) ?
13090
+ { valueOfConstantForInterpolationToLangHTML_Attribute } : null
13091
+ });
13092
+ }
13093
+ return {
13094
+ ...(0, es_extensions_1.isNotUndefined)(localizedStringResourcesConstantName) ? { localizedStringResourcesConstantName } : null,
13095
+ ...(0, es_extensions_1.isNotUndefined)(localeConstantName) ? { localeConstantName } : null,
13096
+ ...(0, es_extensions_1.isNotUndefined)(nameOfConstantForInterpolationToLangHTML_Attribute) ?
13097
+ { nameOfConstantForInterpolationToLangHTML_Attribute } : null,
13098
+ locales,
13099
+ excludedFilesAbsolutePaths: entryPointGroupLocalizationSettings__rawValid?.
13100
+ excludedFilesPathsRelativeRelativeToSourcesFileTopDirectory?.
13101
+ map((excludedFilePathRelativeRelativeToSourcesFileTopDirectory) => es_extensions_nodejs_1.ImprovedPath.joinPathSegments([outputFilesTopDirectoryAbsolutePath, excludedFilePathRelativeRelativeToSourcesFileTopDirectory], { alwaysForwardSlashSeparators: true })) ??
13102
+ []
13103
+ };
13104
+ }
13105
+ /** @deprecated Will be deleted soon */
12891
13106
  getStringResourcesFromFileIfExist(stringResourcesFileRelativePath) {
12892
13107
  if ((0, es_extensions_1.isUndefined)(stringResourcesFileRelativePath)) {
12893
13108
  return null;
@@ -12923,6 +13138,38 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
12923
13138
  }
12924
13139
  return stringResources;
12925
13140
  }
13141
+ getStringResourcesFromFile(stringResourcesFileRelativePath) {
13142
+ const stringResourcesFileAbsolutePath = es_extensions_nodejs_1.ImprovedPath.joinPathSegments([this.consumingProjectRootDirectoryAbsolutePath, stringResourcesFileRelativePath], { alwaysForwardSlashSeparators: true });
13143
+ let stringResources;
13144
+ try {
13145
+ stringResources = es_extensions_nodejs_1.ObjectDataFilesProcessor.processFile({
13146
+ filePath: stringResourcesFileAbsolutePath,
13147
+ synchronously: true
13148
+ });
13149
+ }
13150
+ catch (error) {
13151
+ es_extensions_1.Logger.throwErrorAndLog({
13152
+ errorInstance: new es_extensions_1.FileReadingFailedError({
13153
+ customMessage: `Unable to read the file with string resources at "${stringResourcesFileAbsolutePath}".`
13154
+ }),
13155
+ title: es_extensions_1.FileReadingFailedError.localization.defaultTitle,
13156
+ occurrenceLocation: "markupProcessingRawSettingsNormalizer." +
13157
+ "getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)",
13158
+ innerError: error
13159
+ });
13160
+ }
13161
+ if (!(0, es_extensions_1.isArbitraryObject)(stringResources)) {
13162
+ es_extensions_1.Logger.throwErrorAndLog({
13163
+ errorInstance: new es_extensions_1.InvalidExternalDataError({
13164
+ customMessage: `The content of string resources files "${stringResourcesFileAbsolutePath}" is not an object.`
13165
+ }),
13166
+ title: es_extensions_1.InvalidExternalDataError.localization.defaultTitle,
13167
+ occurrenceLocation: "markupProcessingRawSettingsNormalizer." +
13168
+ "getStringResourcesFromFileIfExist(stringResourcesFileRelativePath)",
13169
+ });
13170
+ }
13171
+ return stringResources;
13172
+ }
12926
13173
  normalizeLoggingSettings() {
12927
13174
  return {
12928
13175
  filesPaths: this.markupProcessingSettings__fromFile__rawValid.logging?.filesPaths ??
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/automation",
3
- "version": "0.6.1",
3
+ "version": "0.6.4",
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",
@@ -21,23 +21,23 @@
21
21
  "dependencies": {
22
22
  "@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
23
23
  "@stylistic/eslint-plugin": "3.1.0",
24
- "@typescript-eslint/eslint-plugin": "8.25.0",
25
- "@typescript-eslint/parser": "8.25.0",
24
+ "@typescript-eslint/eslint-plugin": "8.26.0",
25
+ "@typescript-eslint/parser": "8.26.0",
26
26
  "@vue/compiler-sfc": "3.5.13",
27
27
  "@webdiscus/pug-loader": "2.11.1",
28
28
  "@yamato-daiwa/es-extensions": "1.8.0-alpha.9",
29
29
  "@yamato-daiwa/es-extensions-nodejs": "1.8.0-alpha.9",
30
- "@yamato-daiwa/style_guides": "0.6.4",
30
+ "@yamato-daiwa/style_guides": "0.6.5",
31
31
  "autoprefixer": "10.4.20",
32
32
  "browser-sync": "3.0.3",
33
33
  "css-loader": "7.1.2",
34
34
  "cssnano": "7.0.6",
35
35
  "dotenv": "16.4.7",
36
- "eslint": "9.21.0",
36
+ "eslint": "9.22.0",
37
37
  "eslint-plugin-import": "2.31.0",
38
- "eslint-plugin-n": "17.15.1",
38
+ "eslint-plugin-n": "17.16.2",
39
39
  "eslint-plugin-react": "7.37.4",
40
- "eslint-plugin-vue": "9.32.0",
40
+ "eslint-plugin-vue": "9.33.0",
41
41
  "eslint-plugin-vue-pug": "0.6.2",
42
42
  "fork-ts-checker-webpack-plugin": "7.3.0",
43
43
  "gulp": "4.0.2",
@@ -99,7 +99,7 @@
99
99
  "@types/webpack-stream": "3.2.15",
100
100
  "eslint-webpack-plugin": "4.2.0",
101
101
  "ts-node": "10.9.2",
102
- "typescript": "5.7.3",
102
+ "typescript": "5.8.2",
103
103
  "vnu-jar": "24.10.17",
104
104
  "webpack-cli": "6.0.1"
105
105
  },