@yamato-daiwa/automation 0.5.0-alpha.3 → 0.5.0-alpha.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 (3) hide show
  1. package/EntryPoint.js +91 -57
  2. package/Executable +2 -4
  3. package/package.json +13 -12
package/EntryPoint.js CHANGED
@@ -13,33 +13,40 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  return (mod && mod.__esModule) ? mod : { "default": mod };
14
14
  };
15
15
  Object.defineProperty(exports, "__esModule", ({ value: true }));
16
+ /* ─── Defaults ───────────────────────────────────────────────────────────────────────────────────────────────────── */
17
+ const CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION */ "./ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION.ts"));
18
+ /* ─── Restrictions ───────────────────────────────────────────────────────────────────────────────────────────────── */
16
19
  const ConsumingProjectBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes.ts"));
20
+ /* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
17
21
  const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
18
22
  var ApplicationConsoleLineInterface;
19
23
  (function (ApplicationConsoleLineInterface) {
20
24
  let CommandPhrases;
21
25
  (function (CommandPhrases) {
22
- CommandPhrases["buildProject"] = "build";
23
- CommandPhrases["deployProject"] = "deployProject";
26
+ CommandPhrases["projectBuilding"] = "build";
27
+ CommandPhrases["referenceGenerating"] = "help";
24
28
  })(CommandPhrases = ApplicationConsoleLineInterface.CommandPhrases || (ApplicationConsoleLineInterface.CommandPhrases = {}));
25
29
  ApplicationConsoleLineInterface.specification = {
26
30
  applicationName: "Yamato Daiwa Automation",
27
- applicationDescription: "The project building tool.",
31
+ applicationDescription: "The high-level project building tool.",
28
32
  commandPhrases: {
29
- [CommandPhrases.buildProject]: {
30
- description: "Builds the projects according to configuration file (\"yda.config.yaml\" as default).",
33
+ [CommandPhrases.projectBuilding]: {
34
+ description: "Builds the projects according to the configuration file " +
35
+ `("${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default}" as default).`,
36
+ isDefault: true,
31
37
  options: {
32
38
  mode: {
33
39
  newName: "projectBuildingMode",
34
40
  description: "The project building mode; affects to presence or absence of incremental building, " +
35
- "browser reloading, code minification etc.",
41
+ "browser live reloading, code minification etc.",
36
42
  type: es_extensions_nodejs_1.ConsoleCommandsParser.ParametersTypes.string,
37
43
  required: true,
38
44
  shortcut: "m",
39
45
  allowedAlternatives: Object.values(ConsumingProjectBuildingModes_1.default)
40
46
  },
41
47
  configurationFile: {
42
- description: "Custom name of the configuration file (\"yda.config.yaml\" is the default)",
48
+ description: "Custom name of the configuration file (the default one is " +
49
+ `${CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default})`,
43
50
  newName: "customConfigurationFileName__possiblyWithoutExtension",
44
51
  type: es_extensions_nodejs_1.ConsoleCommandsParser.ParametersTypes.string,
45
52
  required: false
@@ -52,7 +59,8 @@ var ApplicationConsoleLineInterface;
52
59
  required: false
53
60
  }
54
61
  }
55
- }
62
+ },
63
+ [CommandPhrases.referenceGenerating]: {}
56
64
  }
57
65
  };
58
66
  })(ApplicationConsoleLineInterface || (ApplicationConsoleLineInterface = {}));
@@ -72,32 +80,35 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
72
80
  return (mod && mod.__esModule) ? mod : { "default": mod };
73
81
  };
74
82
  Object.defineProperty(exports, "__esModule", ({ value: true }));
75
- /* --- Defaults ----------------------------------------------------------------------------------------------------- */
76
- const CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Defaults/CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION */ "./ProjectBuilding/Common/Defaults/CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION.ts"));
77
- /* --- Console line interface --------------------------------------------------------------------------------------- */
83
+ /* ─── Restrictions ───────────────────────────────────────────────────────────────────────────────────────────────── */
84
+ const BUG_TRACKER_URI_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/BUG_TRACKER_URI */ "./ProjectBuilding/Common/Restrictions/BUG_TRACKER_URI.ts"));
85
+ /* ─── Defaults ───────────────────────────────────────────────────────────────────────────────────────────────────── */
86
+ const CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION */ "./ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION.ts"));
87
+ /* ─── Console List Interface ─────────────────────────────────────────────────────────────────────────────────────── */
78
88
  const ApplicationConsoleLineInterface_1 = __importDefault(__webpack_require__(/*! ./ApplicationConsoleLineInterface */ "./ApplicationConsoleLineInterface.ts"));
79
- /* --- Scenarios ---------------------------------------------------------------------------------------------------- */
89
+ /* ─── Scenarios ──────────────────────────────────────────────────────────────────────────────────────────────────── */
80
90
  const ProjectBuilder_1 = __importDefault(__webpack_require__(/*! ./ProjectBuilder */ "./ProjectBuilder.ts"));
81
- /* --- Applied utils ------------------------------------------------------------------------------------------------ */
91
+ /* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
82
92
  const DotYDA_DirectoryManager_1 = __importDefault(__webpack_require__(/*! @Utils/DotYDA_DirectoryManager */ "./Utils/DotYDA_DirectoryManager.ts"));
83
- /* --- General utils ------------------------------------------------------------------------------------------------ */
93
+ /* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
84
94
  const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
85
95
  const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
86
96
  const path_1 = __importDefault(__webpack_require__(/*! path */ "path"));
87
97
  class EntryPoint {
88
98
  static {
89
99
  es_extensions_1.Logger.setImplementation(es_extensions_nodejs_1.ConsoleApplicationLogger);
90
- es_extensions_1.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI("https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues");
100
+ es_extensions_1.PoliteErrorsMessagesBuilder.setDefaultBugTrackerURI(BUG_TRACKER_URI_1.default);
101
+ EntryPoint.interpretAndExecuteConsoleCommand();
91
102
  }
92
- static interpretAndExecuteConsoleCommand(rawConsoleCommand) {
93
- /* [ Theory ] The global constant "__IS_DEVELOPMENT_BUILDING_MODE__" is not available in above static block. */
103
+ static interpretAndExecuteConsoleCommand() {
104
+ /* [ Theory ] The global constant `__IS_DEVELOPMENT_BUILDING_MODE__` is not available in above static block. */
94
105
  es_extensions_1.PoliteErrorsMessagesBuilder.setTechnicalDetailsOnlyModeIf(true);
95
- const parsedConsoleCommand = es_extensions_nodejs_1.ConsoleCommandsParser.parse(ApplicationConsoleLineInterface_1.default.specification, rawConsoleCommand);
106
+ const parsedConsoleCommand = es_extensions_nodejs_1.ConsoleCommandsParser.parse(ApplicationConsoleLineInterface_1.default.specification);
96
107
  const consumingProjectRootDirectoryAbsolutePath = process.cwd();
97
108
  DotYDA_DirectoryManager_1.default.unrollDotYDA_Directory(consumingProjectRootDirectoryAbsolutePath);
98
109
  switch (parsedConsoleCommand.phrase) {
99
- case ApplicationConsoleLineInterface_1.default.CommandPhrases.buildProject: {
100
- const rawConfigFileAbsolutePath = path_1.default.resolve(consumingProjectRootDirectoryAbsolutePath, CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default);
110
+ case ApplicationConsoleLineInterface_1.default.CommandPhrases.projectBuilding: {
111
+ const rawConfigFileAbsolutePath = path_1.default.resolve(consumingProjectRootDirectoryAbsolutePath, CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION_1.default);
101
112
  /* [ Approach ] The validation is scenario-dependent thus will be executed later. */
102
113
  let rawConfigFromFile;
103
114
  try {
@@ -107,9 +118,27 @@ class EntryPoint {
107
118
  });
108
119
  }
109
120
  catch (error) {
121
+ if (error instanceof es_extensions_nodejs_1.FileNotFoundError) {
122
+ es_extensions_1.Logger.throwErrorAndLog({
123
+ errorInstance: new es_extensions_nodejs_1.FileNotFoundError({
124
+ customMessage: "The configuration file for \"Yamato Daiwa Automation\" utility not found at path " +
125
+ `"${rawConfigFileAbsolutePath}". ` +
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 been invoked. ` +
128
+ "You can set custom configuration file name via CLI if you want."
129
+ }),
130
+ title: es_extensions_nodejs_1.FileNotFoundError.localization.defaultTitle,
131
+ occurrenceLocation: "EntryPoint.interpretAndExecuteConsoleCommand()",
132
+ innerError: error
133
+ });
134
+ }
110
135
  es_extensions_1.Logger.throwErrorAndLog({
111
136
  errorInstance: new es_extensions_1.FileReadingFailedError({
112
- customMessage: `Config file not found at: ${rawConfigFileAbsolutePath}`
137
+ customMessage: "The configuration file for \"Yamato Daiwa Automation\" utility not found at path " +
138
+ `"${rawConfigFileAbsolutePath}". ` +
139
+ "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 been invoked. ` +
141
+ "You can set custom configuration file name via CLI if you want."
113
142
  }),
114
143
  title: es_extensions_1.FileReadingFailedError.localization.defaultTitle,
115
144
  occurrenceLocation: "EntryPoint.interpretAndExecuteConsoleCommand()",
@@ -126,10 +155,10 @@ class EntryPoint {
126
155
  });
127
156
  break;
128
157
  }
129
- case ApplicationConsoleLineInterface_1.default.CommandPhrases.deployProject: {
130
- es_extensions_1.Logger.logWarning({
131
- title: "Not implemented yet",
132
- description: "This functionality has not been implemented yet."
158
+ case ApplicationConsoleLineInterface_1.default.CommandPhrases.referenceGenerating: {
159
+ es_extensions_1.Logger.logInfo({
160
+ title: "Yamato Daiwa Automation",
161
+ description: es_extensions_nodejs_1.ConsoleCommandsParser.generateFullHelpReference(ApplicationConsoleLineInterface_1.default.specification)
133
162
  });
134
163
  }
135
164
  }
@@ -222,9 +251,6 @@ class ProjectBuilder {
222
251
  ])
223
252
  ])
224
253
  ]));
225
- /* eslint-disable-next-line @typescript-eslint/no-floating-promises --
226
- * This issue is not false positive because gulp chain could collapse on some errors, but working solution has
227
- * not been found yet. https://stackoverflow.com/q/66169978/4818123 */
228
254
  gulp_1.default.task(GULP_TASK_NAME)?.((error) => {
229
255
  if ((0, es_extensions_1.isNeitherUndefinedNorNull)(error)) {
230
256
  es_extensions_1.Logger.logError({
@@ -2183,16 +2209,16 @@ exports["default"] = {
2183
2209
 
2184
2210
  /***/ }),
2185
2211
 
2186
- /***/ "./ProjectBuilding/Common/Defaults/CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION.ts":
2187
- /*!************************************************************************************!*\
2188
- !*** ./ProjectBuilding/Common/Defaults/CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION.ts ***!
2189
- \************************************************************************************/
2212
+ /***/ "./ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION.ts":
2213
+ /*!*******************************************************************************************!*\
2214
+ !*** ./ProjectBuilding/Common/Defaults/CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION.ts ***!
2215
+ \*******************************************************************************************/
2190
2216
  /***/ ((__unused_webpack_module, exports) => {
2191
2217
 
2192
2218
 
2193
2219
  Object.defineProperty(exports, "__esModule", ({ value: true }));
2194
- const CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION = "yda.config.yaml";
2195
- exports["default"] = CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION;
2220
+ const CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION = "yda.config.yaml";
2221
+ exports["default"] = CONFIGURATION_FILE_DEFAULT_NAME_WITH_EXTENSION;
2196
2222
 
2197
2223
 
2198
2224
  /***/ }),
@@ -3115,6 +3141,20 @@ class SourceCodeProcessingRawSettingsNormalizer {
3115
3141
  exports["default"] = SourceCodeProcessingRawSettingsNormalizer;
3116
3142
 
3117
3143
 
3144
+ /***/ }),
3145
+
3146
+ /***/ "./ProjectBuilding/Common/Restrictions/BUG_TRACKER_URI.ts":
3147
+ /*!****************************************************************!*\
3148
+ !*** ./ProjectBuilding/Common/Restrictions/BUG_TRACKER_URI.ts ***!
3149
+ \****************************************************************/
3150
+ /***/ ((__unused_webpack_module, exports) => {
3151
+
3152
+
3153
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
3154
+ const BUG_TRACKER_URI = "https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues";
3155
+ exports["default"] = BUG_TRACKER_URI;
3156
+
3157
+
3118
3158
  /***/ }),
3119
3159
 
3120
3160
  /***/ "./ProjectBuilding/Common/Restrictions/ConsumingProjectBuildingModes.ts":
@@ -3237,7 +3277,7 @@ class AssetsProcessingSettingsRepresentative {
3237
3277
  if ((0, es_extensions_1.isNonEmptyArray)(relevantAssetsGroupNormalizedSettings.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)) {
3238
3278
  const outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile = (0, es_extensions_1.explodeURI_PathToSegments)(outputDirectoryAbsolutePathForTargetSourceFile);
3239
3279
  for (const pathSegmentWhichLastDuplicateMustBeRemoved of relevantAssetsGroupNormalizedSettings.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved) {
3240
- const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfArrayElementsWhichSatisfiesThePredicate)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3280
+ const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfSatisfiesThePredicateArrayElements)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3241
3281
  (0, es_extensions_1.removeArrayElementsByIndexes)({
3242
3282
  targetArray: outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile,
3243
3283
  indexes: indexesOfDuplicatesOfTargetPathSegment[indexesOfDuplicatesOfTargetPathSegment.length - 1],
@@ -3338,7 +3378,7 @@ class GulpStreamBasedSourceCodeProcessingConfigRepresentative extends SourceCode
3338
3378
  if ((0, es_extensions_1.isNonEmptyArray)(relevantEntryPointsGroupSettings.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved)) {
3339
3379
  const outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile = (0, es_extensions_1.explodeURI_PathToSegments)(outputDirectoryAbsolutePathForTargetSourceFile);
3340
3380
  for (const pathSegmentWhichLastDuplicateMustBeRemoved of relevantEntryPointsGroupSettings.outputPathTransformations.segmentsWhichLastDuplicatesMustBeRemoved) {
3341
- const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfArrayElementsWhichSatisfiesThePredicate)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3381
+ const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfSatisfiesThePredicateArrayElements)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3342
3382
  (0, es_extensions_1.removeArrayElementsByIndexes)({
3343
3383
  targetArray: outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile,
3344
3384
  indexes: indexesOfDuplicatesOfTargetPathSegment[indexesOfDuplicatesOfTargetPathSegment.length - 1],
@@ -3415,7 +3455,7 @@ class OutputDirectoryPathTransformationsSettingsRepresentative {
3415
3455
  const outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile = (0, es_extensions_1.explodeURI_PathToSegments)(outputPath);
3416
3456
  for (const pathSegmentWhichLastDuplicateMustBeRemoved of outputDirectoryPathTransformationsSettings.
3417
3457
  segmentsWhichLastDuplicatesMustBeRemoved) {
3418
- const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfArrayElementsWhichSatisfiesThePredicate)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3458
+ const indexesOfDuplicatesOfTargetPathSegment = (0, es_extensions_1.getIndexesOfSatisfiesThePredicateArrayElements)(outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile, (outputDirectoryAbsolutePathSegment) => outputDirectoryAbsolutePathSegment === pathSegmentWhichLastDuplicateMustBeRemoved);
3419
3459
  (0, es_extensions_1.removeArrayElementsByIndexes)({
3420
3460
  targetArray: outputDirectoryAbsolutePathExplodedToSegmentsForTargetSourceFile,
3421
3461
  indexes: indexesOfDuplicatesOfTargetPathSegment[indexesOfDuplicatesOfTargetPathSegment.length - 1],
@@ -7299,7 +7339,7 @@ const ECMA_ScriptSourceFilesWatcher_1 = __importDefault(__webpack_require__(/*!
7299
7339
  /* ─── Superclass ─────────────────────────────────────────────────────────────────────────────────────────────────── */
7300
7340
  const LinterLikeTaskExecutor_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/LinterLikeTaskExecutor */ "./ProjectBuilding/Common/TasksExecutors/GulpStreamsBased/LinterLikeTaskExecutor.ts"));
7301
7341
  /* ─── Third-party Solutions Specialists ──────────────────────────────────────────────────────────────────────────── */
7302
- const ESLintLinterSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/ESLintLinterSpecialist */ "./ThirdPartySolutionsSpecialists/ESLintLinterSpecialist.ts"));
7342
+ const ESLintSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/ESLintSpecialist */ "./ThirdPartySolutionsSpecialists/ESLintSpecialist.ts"));
7303
7343
  /* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
7304
7344
  const eslint_1 = __webpack_require__(/*! eslint */ "eslint");
7305
7345
  const GulpStreamModifier_1 = __importDefault(__webpack_require__(/*! @Utils/GulpStreamModifier */ "./Utils/GulpStreamModifier.ts"));
@@ -7444,7 +7484,7 @@ class ECMA_ScriptSourceCodeLinter extends LinterLikeTaskExecutor_1.default {
7444
7484
  /* [ ESLint theory ]
7445
7485
  * In there are files and/or directories ignored in ESLint configuration they also must be excluded from
7446
7486
  * the Gulp pipelines otherwise ESLint will emit the warning for ignored files. */
7447
- ...ESLintLinterSpecialist_1.default.generateExcludingGlobSelectorsOfIgnoredFiles(projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath)
7487
+ ...ESLintSpecialist_1.default.generateExcludingGlobSelectorsOfIgnoredFiles(projectBuildingMasterConfigRepresentative.consumingProjectRootDirectoryAbsolutePath)
7448
7488
  ],
7449
7489
  logging: {
7450
7490
  pathsOfFilesWillBeProcessed: ecmaScriptLogicProcessingSettingsRepresentative.loggingSettings.filesPaths,
@@ -7850,7 +7890,7 @@ class WebpackConfigGenerator {
7850
7890
  const willPugLibraryBeBuilt = entryPointsGroupSettings.distributing?.exposingOfExportsFromEntryPoints.mustExpose === true &&
7851
7891
  entryPointsGroupSettings.targetRuntime.type === SupportedECMA_ScriptRuntimesTypes.pug;
7852
7892
  const distributingSettings = entryPointsGroupSettings.distributing;
7853
- // entryPointsGroupSettings.directoriesAliasesAndCorrespondingAbsolutePathsMap
7893
+ // TODO Is entryPointsGroupSettings.directoriesAliasesAndCorrespondingAbsolutePathsMap related
7854
7894
  return {
7855
7895
  name: entryPointsGroupSettings.ID,
7856
7896
  /* [ Webpack theory ] In this case, path separators must be operating system dependent, otherwise following error
@@ -11528,7 +11568,7 @@ class SpacesNormalizerForCJK_Text {
11528
11568
  /* [ Regular expression fiddle ] https://regex101.com/r/tPn28I/1 */
11529
11569
  static ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES = "[\\u3000-\\u303f\\u3040-\\u309f\\u30a0-\\u30ff\\uff00-\\uffef\\u4e00-\\u9fff\\uac00-\\ud7af]";
11530
11570
  static extraSpaceSurroundedByCharactersDetectingPatterns = [
11531
- new RegExp(`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES}) ` +
11571
+ new RegExp(`(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})\\r?\\n\\x20+` +
11532
11572
  `(${SpacesNormalizerForCJK_Text.ANY_CJK_CHARACTER_INCLUDING_PUNCTUATION_ONES})`, "gmu")
11533
11573
  ];
11534
11574
  static ATTRIBUTE_NAME_OF_TARGET_HTML_ELEMENTS = "data-yda-normalize_spaces_in_cjk";
@@ -13701,10 +13741,10 @@ exports["default"] = ECMA_ScriptSpecialist;
13701
13741
 
13702
13742
  /***/ }),
13703
13743
 
13704
- /***/ "./ThirdPartySolutionsSpecialists/ESLintLinterSpecialist.ts":
13705
- /*!******************************************************************!*\
13706
- !*** ./ThirdPartySolutionsSpecialists/ESLintLinterSpecialist.ts ***!
13707
- \******************************************************************/
13744
+ /***/ "./ThirdPartySolutionsSpecialists/ESLintSpecialist.ts":
13745
+ /*!************************************************************!*\
13746
+ !*** ./ThirdPartySolutionsSpecialists/ESLintSpecialist.ts ***!
13747
+ \************************************************************/
13708
13748
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
13709
13749
 
13710
13750
 
@@ -13716,7 +13756,7 @@ const path_1 = __importDefault(__webpack_require__(/*! path */ "path"));
13716
13756
  const fs_1 = __importDefault(__webpack_require__(/*! fs */ "fs"));
13717
13757
  const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
13718
13758
  const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
13719
- class ESLintLinterSpecialist {
13759
+ class ESLintSpecialist {
13720
13760
  static SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS = [
13721
13761
  "eslint.config.js",
13722
13762
  "eslint.config.mjs",
@@ -13727,7 +13767,7 @@ class ESLintLinterSpecialist {
13727
13767
  ];
13728
13768
  static generateExcludingGlobSelectorsOfIgnoredFiles(consumingProjectRootDirectoryAbsolutePath) {
13729
13769
  let configurationFileContent;
13730
- for (const potentialConfigurationFileNameWithExtension of ESLintLinterSpecialist.SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS) {
13770
+ for (const potentialConfigurationFileNameWithExtension of ESLintSpecialist.SUPPORTED_CONFIGURATION_FILES_NAMES_WITH_EXTENSIONS) {
13731
13771
  try {
13732
13772
  configurationFileContent = fs_1.default.readFileSync(es_extensions_nodejs_1.ImprovedPath.joinPathSegments([
13733
13773
  consumingProjectRootDirectoryAbsolutePath,
@@ -13757,10 +13797,7 @@ class ESLintLinterSpecialist {
13757
13797
  });
13758
13798
  return [];
13759
13799
  }
13760
- const filesIgnoringPatternsRawExpression = (0, es_extensions_1.getMatchingWithFirstRegularExpressionCapturingGroup)({
13761
- targetString: configurationFileContent,
13762
- regularExpression: /ignores:\s*(?<array>\[(?:.|\s)+?\])/gu
13763
- });
13800
+ const filesIgnoringPatternsRawExpression = (0, es_extensions_1.getMatchingWithFirstRegularExpressionCapturingGroup)(configurationFileContent, /ignores:\s*(?<array>\[(?:.|\s)+?\])/gu);
13764
13801
  if ((0, es_extensions_1.isNull)(filesIgnoringPatternsRawExpression)) {
13765
13802
  return [];
13766
13803
  }
@@ -13816,7 +13853,7 @@ class ESLintLinterSpecialist {
13816
13853
  });
13817
13854
  }
13818
13855
  }
13819
- exports["default"] = ESLintLinterSpecialist;
13856
+ exports["default"] = ESLintSpecialist;
13820
13857
 
13821
13858
 
13822
13859
  /***/ }),
@@ -13845,10 +13882,7 @@ class PugPreProcessorSpecialist {
13845
13882
  static defineIndentString(sourceCode) {
13846
13883
  for (const sourceCodeLine of (0, es_extensions_1.explodeStringToLines)({ targetString: sourceCode, mustIgnoreCarriageReturn: true })) {
13847
13884
  /* [ Fiddle ] https://regex101.com/r/yV0TNG/1 */
13848
- const indentString = (0, es_extensions_1.getMatchingWithFirstRegularExpressionCapturingGroup)({
13849
- targetString: sourceCodeLine,
13850
- regularExpression: /^(?<indent> +|\t)\S/gmu
13851
- });
13885
+ const indentString = (0, es_extensions_1.getMatchingWithFirstRegularExpressionCapturingGroup)(sourceCodeLine, /^(?<indent> +|\t)\S/gmu);
13852
13886
  if ((0, es_extensions_1.isNotNull)(indentString)) {
13853
13887
  return indentString;
13854
13888
  }
@@ -15574,7 +15608,7 @@ function revisionHash(data) {
15574
15608
  \***********************/
15575
15609
  /***/ ((module) => {
15576
15610
 
15577
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.5.0-alpha.3","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":"2.8.0","@typescript-eslint/eslint-plugin":"8.8.0","@typescript-eslint/parser":"8.8.0","@vue/compiler-sfc":"3.4.27","@webdiscus/pug-loader":"2.11.0","@yamato-daiwa/es-extensions":"1.8.0-alpha.2","@yamato-daiwa/es-extensions-nodejs":"1.8.0-alpha.1","@yamato-daiwa/style_guides":"0.3.0-alpha.8","autoprefixer":"10.4.19","browser-sync":"3.0.2","css-loader":"7.1.2","cssnano":"7.0.2","eslint":"9.12.0","eslint-plugin-import":"2.31.0","eslint-plugin-n":"17.10.3","eslint-plugin-react":"7.37.1","eslint-plugin-vue":"9.28.0","eslint-plugin-vue-pug":"0.6.2","fork-ts-checker-webpack-plugin":"7.3.0","gulp":"4.0.2","gulp-data":"1.3.1","gulp-html-prettify":"0.0.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","imagemin-pngquant":"9.0.2","json5-loader":"4.0.1","node-html-parser":"6.1.13","node-notifier":"10.0.1","pa11y":"8.0.0","probe-image-size":"7.2.3","pug3-ast-loader":"0.0.0","pug-lint":"2.7.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.0","ts-loader":"9.5.1","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"0.8.1","webpack":"5.91.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-html-prettify":"0.0.5","@types/gulp-if":"3.0.4","@types/gulp-imagemin":"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.4","@types/pug":"2.0.10","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"5.5.4","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"}}');
15611
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.5.0-alpha.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.0","@stylistic/eslint-plugin":"2.9.0","@typescript-eslint/eslint-plugin":"8.10.0","@typescript-eslint/parser":"8.10.0","@vue/compiler-sfc":"3.4.27","@webdiscus/pug-loader":"2.11.0","@yamato-daiwa/es-extensions":"../../YamatoDaiwaES_Extensions/CoreLibrary/Package","@yamato-daiwa/es-extensions-nodejs":"../../YamatoDaiwaES_Extensions/NodeJS/Package","@yamato-daiwa/style_guides":"0.3.0-alpha.9","autoprefixer":"10.4.19","browser-sync":"3.0.2","css-loader":"7.1.2","cssnano":"7.0.2","eslint":"9.13.0","eslint-plugin-import":"2.31.0","eslint-plugin-n":"17.11.1","eslint-plugin-react":"7.37.1","eslint-plugin-vue":"9.29.0","eslint-plugin-vue-pug":"0.6.2","fork-ts-checker-webpack-plugin":"7.3.0","gulp":"4.0.2","gulp-data":"1.3.1","gulp-html-prettify":"0.0.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","imagemin-pngquant":"9.0.2","json5-loader":"4.0.1","node-html-parser":"6.1.13","node-notifier":"10.0.1","pa11y":"8.0.0","probe-image-size":"7.2.3","pug3-ast-loader":"0.0.0","pug-lint":"2.7.0","puppeteer":"22.10.0","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.0","ts-loader":"9.5.1","vinyl":"2.2.1","vue-loader":"17.4.2","vue-style-loader":"4.1.3","w3c-html-validator":"0.8.1","webpack":"5.91.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-html-prettify":"0.0.5","@types/gulp-if":"3.0.4","@types/gulp-imagemin":"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.4","@types/pug":"2.0.10","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"5.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"}}');
15578
15612
 
15579
15613
  /***/ })
15580
15614
 
package/Executable CHANGED
@@ -1,5 +1,3 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
- require("./EntryPoint").
4
- default.
5
- interpretAndExecuteConsoleCommand(process.argv);
3
+ require("./EntryPoint");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yamato-daiwa/automation",
3
- "version": "0.5.0-alpha.3",
3
+ "version": "0.5.0-alpha.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",
@@ -10,7 +10,7 @@
10
10
  "typescript"
11
11
  ],
12
12
  "engines": {
13
- "node": ">=18.18.0"
13
+ "node": ">=18.0.0"
14
14
  },
15
15
  "bin": {
16
16
  "yda": "Executable"
@@ -19,23 +19,24 @@
19
19
  "EntryPoint.js"
20
20
  ],
21
21
  "dependencies": {
22
- "@stylistic/eslint-plugin": "2.8.0",
23
- "@typescript-eslint/eslint-plugin": "8.8.0",
24
- "@typescript-eslint/parser": "8.8.0",
22
+ "@eslint-community/eslint-plugin-eslint-comments": "4.4.0",
23
+ "@stylistic/eslint-plugin": "2.9.0",
24
+ "@typescript-eslint/eslint-plugin": "8.10.0",
25
+ "@typescript-eslint/parser": "8.10.0",
25
26
  "@vue/compiler-sfc": "3.4.27",
26
27
  "@webdiscus/pug-loader": "2.11.0",
27
- "@yamato-daiwa/es-extensions": "1.8.0-alpha.2",
28
- "@yamato-daiwa/es-extensions-nodejs": "1.8.0-alpha.1",
29
- "@yamato-daiwa/style_guides": "0.3.0-alpha.8",
28
+ "@yamato-daiwa/es-extensions": "../../YamatoDaiwaES_Extensions/CoreLibrary/Package",
29
+ "@yamato-daiwa/es-extensions-nodejs": "../../YamatoDaiwaES_Extensions/NodeJS/Package",
30
+ "@yamato-daiwa/style_guides": "0.3.0-alpha.10",
30
31
  "autoprefixer": "10.4.19",
31
32
  "browser-sync": "3.0.2",
32
33
  "css-loader": "7.1.2",
33
34
  "cssnano": "7.0.2",
34
- "eslint": "9.12.0",
35
+ "eslint": "9.13.0",
35
36
  "eslint-plugin-import": "2.31.0",
36
- "eslint-plugin-n": "17.10.3",
37
+ "eslint-plugin-n": "17.11.1",
37
38
  "eslint-plugin-react": "7.37.1",
38
- "eslint-plugin-vue": "9.28.0",
39
+ "eslint-plugin-vue": "9.29.0",
39
40
  "eslint-plugin-vue-pug": "0.6.2",
40
41
  "fork-ts-checker-webpack-plugin": "7.3.0",
41
42
  "gulp": "4.0.2",
@@ -96,7 +97,7 @@
96
97
  "@types/webpack-stream": "3.2.15",
97
98
  "eslint-webpack-plugin": "4.2.0",
98
99
  "ts-node": "10.9.2",
99
- "typescript": "5.5.4",
100
+ "typescript": "5.6.3",
100
101
  "webpack-cli": "5.1.4"
101
102
  },
102
103
  "scripts": {