@yamato-daiwa/automation 0.2.0-alpha.0 → 0.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EntryPoint.js +138 -120
- package/package.json +1 -1
package/EntryPoint.js
CHANGED
|
@@ -6,10 +6,14 @@
|
|
|
6
6
|
/*!********************************************!*\
|
|
7
7
|
!*** ./ApplicationConsoleLineInterface.ts ***!
|
|
8
8
|
\********************************************/
|
|
9
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
9
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
+
};
|
|
12
15
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
16
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
13
17
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
14
18
|
var ApplicationConsoleLineInterface;
|
|
15
19
|
(function (ApplicationConsoleLineInterface) {
|
|
@@ -26,7 +30,8 @@ var ApplicationConsoleLineInterface;
|
|
|
26
30
|
newName: "projectBuildingMode",
|
|
27
31
|
type: es_extensions_nodejs_1.ConsoleCommandsParser.ParametersTypes.string,
|
|
28
32
|
required: true,
|
|
29
|
-
shortcut: "m"
|
|
33
|
+
shortcut: "m",
|
|
34
|
+
allowedAlternatives: Object.values(ConsumingProjectPreDefinedBuildingModes_1.default)
|
|
30
35
|
},
|
|
31
36
|
configurationFile: {
|
|
32
37
|
newName: "customConfigurationFileName__possiblyWithoutExtension",
|
|
@@ -1356,11 +1361,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1356
1361
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1357
1362
|
};
|
|
1358
1363
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1359
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
1364
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
1360
1365
|
exports["default"] = {
|
|
1361
1366
|
revisioning: {
|
|
1362
1367
|
mustExecute: (projectBuildingMode__possiblyCustom) => projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview &&
|
|
1363
|
-
projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.
|
|
1368
|
+
projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
1364
1369
|
contentHashPostfixSeparator: "--"
|
|
1365
1370
|
}
|
|
1366
1371
|
};
|
|
@@ -1380,27 +1385,6 @@ const CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION = "yda.config.yaml";
|
|
|
1380
1385
|
exports["default"] = CONFIG_FILE_DEFAULT_NAME_WITH_EXTENSION;
|
|
1381
1386
|
|
|
1382
1387
|
|
|
1383
|
-
/***/ }),
|
|
1384
|
-
|
|
1385
|
-
/***/ "./ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes.ts":
|
|
1386
|
-
/*!************************************************************************************!*\
|
|
1387
|
-
!*** ./ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes.ts ***!
|
|
1388
|
-
\************************************************************************************/
|
|
1389
|
-
/***/ ((__unused_webpack_module, exports) => {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1393
|
-
var ConsumingProjectPreDefinedBuildingModes;
|
|
1394
|
-
(function (ConsumingProjectPreDefinedBuildingModes) {
|
|
1395
|
-
ConsumingProjectPreDefinedBuildingModes["staticPreview"] = "STATIC_PREVIEW";
|
|
1396
|
-
ConsumingProjectPreDefinedBuildingModes["development"] = "DEVELOPMENT";
|
|
1397
|
-
ConsumingProjectPreDefinedBuildingModes["testing"] = "TESTING";
|
|
1398
|
-
ConsumingProjectPreDefinedBuildingModes["staging"] = "STAGING";
|
|
1399
|
-
ConsumingProjectPreDefinedBuildingModes["production"] = "PRODUCTION";
|
|
1400
|
-
})(ConsumingProjectPreDefinedBuildingModes || (ConsumingProjectPreDefinedBuildingModes = {}));
|
|
1401
|
-
exports["default"] = ConsumingProjectPreDefinedBuildingModes;
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
1388
|
/***/ }),
|
|
1405
1389
|
|
|
1406
1390
|
/***/ "./ProjectBuilding/Common/NormalizedConfig/ProjectBuildingCommonSettingsNormalizer.ts":
|
|
@@ -1471,7 +1455,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1471
1455
|
};
|
|
1472
1456
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1473
1457
|
/* --- Enumerations ----------------------------------------------------------------------------------------------- */
|
|
1474
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
1458
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
1475
1459
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
1476
1460
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1477
1461
|
var AssetsProcessingSettingsGenericProperties__FromFile__RawValid;
|
|
@@ -1506,16 +1490,17 @@ var AssetsProcessingSettingsGenericProperties__FromFile__RawValid;
|
|
|
1506
1490
|
minimalEntriesCount: 1,
|
|
1507
1491
|
keysRenamings: {
|
|
1508
1492
|
[consumingProjectLocalizedPreDefinedBuildingModes.staticPreview]: ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview,
|
|
1509
|
-
[consumingProjectLocalizedPreDefinedBuildingModes.
|
|
1493
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
1510
1494
|
[consumingProjectLocalizedPreDefinedBuildingModes.testing]: ConsumingProjectPreDefinedBuildingModes_1.default.testing,
|
|
1495
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staging]: ConsumingProjectPreDefinedBuildingModes_1.default.staging,
|
|
1511
1496
|
[consumingProjectLocalizedPreDefinedBuildingModes.production]: ConsumingProjectPreDefinedBuildingModes_1.default.production
|
|
1512
1497
|
},
|
|
1513
1498
|
value: {
|
|
1514
1499
|
type: Object,
|
|
1515
1500
|
properties: {
|
|
1516
1501
|
[assetsProcessingSettingsGenericPropertiesLocalization.assetsGroups.
|
|
1517
|
-
buildingModeDependent.
|
|
1518
|
-
newName: "
|
|
1502
|
+
buildingModeDependent.outputTopDirectoryRelativePath.KEY]: {
|
|
1503
|
+
newName: "outputTopDirectoryRelativePath",
|
|
1519
1504
|
type: String,
|
|
1520
1505
|
required: true
|
|
1521
1506
|
},
|
|
@@ -1605,7 +1590,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1605
1590
|
};
|
|
1606
1591
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1607
1592
|
/* --- Defaults ----------------------------------------------------------------------------------------------------- */
|
|
1608
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
1593
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
1609
1594
|
const ProjectBuildingTasksIDsForConfigFile_1 = __webpack_require__(/*! @ProjectBuilding:Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile */ "./ProjectBuilding/Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile.ts");
|
|
1610
1595
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
1611
1596
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
@@ -1757,16 +1742,16 @@ exports["default"] = RevisioningSettings__FromFile__RawValid;
|
|
|
1757
1742
|
|
|
1758
1743
|
|
|
1759
1744
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1745
|
+
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
1760
1746
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
1761
1747
|
var SourceCodeProcessingSettingsGenericProperties__FromFile__RawValid;
|
|
1762
1748
|
(function (SourceCodeProcessingSettingsGenericProperties__FromFile__RawValid) {
|
|
1763
1749
|
function getLocalizedPropertiesSpecification(sourceCodeProcessingSettingsGenericPropertiesLocalization) {
|
|
1764
1750
|
return {
|
|
1765
|
-
[sourceCodeProcessingSettingsGenericPropertiesLocalization.
|
|
1766
|
-
|
|
1767
|
-
newName: "entryPointsSourceFilesTopDirectoryOrSingleFileRelativePath",
|
|
1751
|
+
[sourceCodeProcessingSettingsGenericPropertiesLocalization.topDirectoryRelativePath.KEY]: {
|
|
1752
|
+
newName: "topDirectoryRelativePath",
|
|
1768
1753
|
type: String,
|
|
1769
|
-
required:
|
|
1754
|
+
required: false,
|
|
1770
1755
|
minimalCharactersCount: 1
|
|
1771
1756
|
},
|
|
1772
1757
|
[sourceCodeProcessingSettingsGenericPropertiesLocalization.partialsRecognition.KEY]: {
|
|
@@ -1838,6 +1823,21 @@ var SourceCodeProcessingSettingsGenericProperties__FromFile__RawValid;
|
|
|
1838
1823
|
]
|
|
1839
1824
|
}
|
|
1840
1825
|
}
|
|
1826
|
+
},
|
|
1827
|
+
[sourceCodeProcessingSettingsGenericPropertiesLocalization.singleEntryPointRelativePath.KEY]: {
|
|
1828
|
+
newName: "singleEntryPointRelativePath",
|
|
1829
|
+
type: String,
|
|
1830
|
+
requiredIf: {
|
|
1831
|
+
predicate(rawObjectOfCurrentDepthLevel) {
|
|
1832
|
+
if (!(0, es_extensions_1.isArbitraryObject)(rawObjectOfCurrentDepthLevel)) {
|
|
1833
|
+
return false;
|
|
1834
|
+
}
|
|
1835
|
+
return !(0, es_extensions_1.isNonEmptyString)(rawObjectOfCurrentDepthLevel.topDirectoryRelativePath);
|
|
1836
|
+
},
|
|
1837
|
+
descriptionForLogging: sourceCodeProcessingSettingsGenericPropertiesLocalization.singleEntryPointRelativePath.
|
|
1838
|
+
REQUIREMENT_CONDITION_DESCRIPTION
|
|
1839
|
+
},
|
|
1840
|
+
minimalCharactersCount: 1
|
|
1841
1841
|
}
|
|
1842
1842
|
};
|
|
1843
1843
|
}
|
|
@@ -1891,7 +1891,7 @@ class AssetsProcessingRawSettingsNormalizer {
|
|
|
1891
1891
|
const aliasForPathsResolution = assetsGroupSettings__rawValid.sourceFilesTopDirectoryPathAliasForReferencingFromHTML ?? `@${groupID}`;
|
|
1892
1892
|
const outputFilesBaseDirectoryAbsolutePathActualForCurrentProjectBuildingMode = ImprovedPath_1.default.buildAbsolutePath([
|
|
1893
1893
|
this.consumingProjectRootDirectoryAbsolutePath,
|
|
1894
|
-
assetsGroupSettings__buildingModeDependent__rawValid.
|
|
1894
|
+
assetsGroupSettings__buildingModeDependent__rawValid.outputTopDirectoryRelativePath
|
|
1895
1895
|
], { forwardSlashOnlySeparators: true });
|
|
1896
1896
|
const assetsManagementGroupNormalizedSettingsGenericProperties = {
|
|
1897
1897
|
ID: groupID,
|
|
@@ -1972,28 +1972,30 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
let entryPointsGroupSourceFilesTopDirectoryAbsolutePath;
|
|
1974
1974
|
const currentEntryPointsGroupSourceFilesGlobSelectors = [];
|
|
1975
|
-
|
|
1976
|
-
if (
|
|
1975
|
+
let isSingeEntryPointGroup;
|
|
1976
|
+
if ("singleEntryPointRelativePath" in entryPointsGroupSettings__rawValid) {
|
|
1977
|
+
isSingeEntryPointGroup = true;
|
|
1977
1978
|
const absolutePathOfSingleEntryPointOfGroup = ImprovedPath_1.default.buildAbsolutePath([
|
|
1978
1979
|
this.consumingProjectRootDirectoryAbsolutePath,
|
|
1979
|
-
entryPointsGroupSettings__rawValid.
|
|
1980
|
+
entryPointsGroupSettings__rawValid.singleEntryPointRelativePath
|
|
1980
1981
|
], { forwardSlashOnlySeparators: true });
|
|
1981
1982
|
currentEntryPointsGroupSourceFilesGlobSelectors.push(absolutePathOfSingleEntryPointOfGroup);
|
|
1982
1983
|
entryPointsGroupSourceFilesTopDirectoryAbsolutePath = ImprovedPath_1.default.extractDirectoryFromFilePath(absolutePathOfSingleEntryPointOfGroup);
|
|
1983
1984
|
}
|
|
1984
1985
|
else {
|
|
1986
|
+
isSingeEntryPointGroup = false;
|
|
1985
1987
|
entryPointsGroupSourceFilesTopDirectoryAbsolutePath = ImprovedPath_1.default.extractDirectoryFromFilePath(ImprovedPath_1.default.buildAbsolutePath([
|
|
1986
1988
|
this.consumingProjectRootDirectoryAbsolutePath,
|
|
1987
|
-
entryPointsGroupSettings__rawValid.
|
|
1989
|
+
entryPointsGroupSettings__rawValid.topDirectoryRelativePath
|
|
1988
1990
|
], { forwardSlashOnlySeparators: true }));
|
|
1989
1991
|
currentEntryPointsGroupSourceFilesGlobSelectors.push(...this.getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
+
entryPointsSourceFilesDirectoryAbsolutePath: entryPointsGroupSourceFilesTopDirectoryAbsolutePath,
|
|
1993
|
+
partialsRecognition: entryPointsGroupSettings__rawValid.partialsRecognition
|
|
1992
1994
|
}));
|
|
1993
1995
|
}
|
|
1994
1996
|
const entryPointsOutputFilesActualBaseDirectoryAbsolutePath = ImprovedPath_1.default.buildAbsolutePath([
|
|
1995
1997
|
this.consumingProjectRootDirectoryAbsolutePath,
|
|
1996
|
-
entryPointsGroupSettings__buildingModeDependent__rawValid.
|
|
1998
|
+
entryPointsGroupSettings__buildingModeDependent__rawValid.outputTopDirectoryRelativePath
|
|
1997
1999
|
], { forwardSlashOnlySeparators: true });
|
|
1998
2000
|
const entryPointsGroupNormalizedSettings__commonPropertiesOnly = {
|
|
1999
2001
|
ID: groupID,
|
|
@@ -2010,18 +2012,18 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
2010
2012
|
* Generating of single glob with arbitrary conditions set is very difficult and it's not a fact that it's even possible.
|
|
2011
2013
|
* More rational approach is generate the array of globs consisting on main exclusive glob and exclusions.
|
|
2012
2014
|
* */
|
|
2013
|
-
getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({
|
|
2015
|
+
getSourceFilesGlobSelectorsForMultipleEntryPointsGroup({ entryPointsSourceFilesDirectoryAbsolutePath, partialsRecognition }) {
|
|
2014
2016
|
const sourceFilesGlobSelectorsForMultipleEntryPointsGroup = [];
|
|
2015
2017
|
/* [ Specification ] If 'partialsRecognition' has not been specified, all files with filename extensions
|
|
2016
2018
|
* 'this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots' below 'entryPointsSourceFilesDirectoryAbsolutePath'
|
|
2017
2019
|
* are being considered as entry points. */
|
|
2018
|
-
if ((0, es_extensions_1.isUndefined)(
|
|
2020
|
+
if ((0, es_extensions_1.isUndefined)(partialsRecognition)) {
|
|
2019
2021
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(ImprovedGlob_1.default.buildAllFilesInCurrentDirectoryAndBelowGlobSelector({
|
|
2020
2022
|
basicDirectoryPath: entryPointsSourceFilesDirectoryAbsolutePath,
|
|
2021
2023
|
fileNamesExtensions: this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots
|
|
2022
2024
|
}));
|
|
2023
2025
|
}
|
|
2024
|
-
else if (
|
|
2026
|
+
else if (partialsRecognition.excludeAllSubdirectories === true) {
|
|
2025
2027
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(ImprovedGlob_1.default.buildAllFilesInCurrentDirectoryButNotBelowGlobSelector({
|
|
2026
2028
|
basicDirectoryPath: entryPointsSourceFilesDirectoryAbsolutePath,
|
|
2027
2029
|
fileNamesExtensions: this.supportedEntryPointsSourceFileNameExtensionsWithoutLeadingDots
|
|
@@ -2034,11 +2036,11 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
2034
2036
|
});
|
|
2035
2037
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(inclusiveMainGlobSelector);
|
|
2036
2038
|
let prefixesOfFilesWhichMustBeExcluded;
|
|
2037
|
-
if (Array.isArray(
|
|
2038
|
-
prefixesOfFilesWhichMustBeExcluded =
|
|
2039
|
+
if (Array.isArray(partialsRecognition.excludeFilesWithPrefixes)) {
|
|
2040
|
+
prefixesOfFilesWhichMustBeExcluded = partialsRecognition.excludeFilesWithPrefixes;
|
|
2039
2041
|
}
|
|
2040
|
-
else if ((0, es_extensions_1.isString)(
|
|
2041
|
-
prefixesOfFilesWhichMustBeExcluded = [
|
|
2042
|
+
else if ((0, es_extensions_1.isString)(partialsRecognition.excludeFilesWithPrefixes)) {
|
|
2043
|
+
prefixesOfFilesWhichMustBeExcluded = [partialsRecognition.excludeFilesWithPrefixes];
|
|
2042
2044
|
}
|
|
2043
2045
|
if ((0, es_extensions_1.isNotUndefined)(prefixesOfFilesWhichMustBeExcluded)) {
|
|
2044
2046
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(ImprovedGlob_1.default.buildExcludingOfFilesWithSpecificPrefixesGlobSelector({
|
|
@@ -2048,14 +2050,11 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
2048
2050
|
}));
|
|
2049
2051
|
}
|
|
2050
2052
|
let prefixesOfSubdirectoriesInWhichFilesMustBeExcluded;
|
|
2051
|
-
if (Array.isArray(
|
|
2052
|
-
prefixesOfSubdirectoriesInWhichFilesMustBeExcluded =
|
|
2053
|
-
partialsRecognition.excludeSubdirectoriesWithPrefixes;
|
|
2053
|
+
if (Array.isArray(partialsRecognition.excludeSubdirectoriesWithPrefixes)) {
|
|
2054
|
+
prefixesOfSubdirectoriesInWhichFilesMustBeExcluded = partialsRecognition.excludeSubdirectoriesWithPrefixes;
|
|
2054
2055
|
}
|
|
2055
|
-
else if ((0, es_extensions_1.isString)(
|
|
2056
|
-
prefixesOfSubdirectoriesInWhichFilesMustBeExcluded = [
|
|
2057
|
-
entryPointsGroupSettings__rawValid.partialsRecognition.excludeSubdirectoriesWithPrefixes
|
|
2058
|
-
];
|
|
2056
|
+
else if ((0, es_extensions_1.isString)(partialsRecognition.excludeSubdirectoriesWithPrefixes)) {
|
|
2057
|
+
prefixesOfSubdirectoriesInWhichFilesMustBeExcluded = [partialsRecognition.excludeSubdirectoriesWithPrefixes];
|
|
2059
2058
|
}
|
|
2060
2059
|
if ((0, es_extensions_1.isNotUndefined)(prefixesOfSubdirectoriesInWhichFilesMustBeExcluded)) {
|
|
2061
2060
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(ImprovedGlob_1.default.buildExcludingOfFilesInSubdirectoriesWithSpecificPrefixesGlobSelector({
|
|
@@ -2065,14 +2064,11 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
2065
2064
|
}));
|
|
2066
2065
|
}
|
|
2067
2066
|
let namesOfSubdirectoriesInWhichFilesMustBeExcluded;
|
|
2068
|
-
if (Array.isArray(
|
|
2069
|
-
namesOfSubdirectoriesInWhichFilesMustBeExcluded =
|
|
2070
|
-
partialsRecognition.excludeSubdirectoriesWithNames;
|
|
2067
|
+
if (Array.isArray(partialsRecognition.excludeSubdirectoriesWithNames)) {
|
|
2068
|
+
namesOfSubdirectoriesInWhichFilesMustBeExcluded = partialsRecognition.excludeSubdirectoriesWithNames;
|
|
2071
2069
|
}
|
|
2072
|
-
else if ((0, es_extensions_1.isString)(
|
|
2073
|
-
namesOfSubdirectoriesInWhichFilesMustBeExcluded = [
|
|
2074
|
-
entryPointsGroupSettings__rawValid.partialsRecognition.excludeSubdirectoriesWithNames
|
|
2075
|
-
];
|
|
2070
|
+
else if ((0, es_extensions_1.isString)(partialsRecognition.excludeSubdirectoriesWithNames)) {
|
|
2071
|
+
namesOfSubdirectoriesInWhichFilesMustBeExcluded = [partialsRecognition.excludeSubdirectoriesWithNames];
|
|
2076
2072
|
}
|
|
2077
2073
|
if ((0, es_extensions_1.isNotUndefined)(namesOfSubdirectoriesInWhichFilesMustBeExcluded)) {
|
|
2078
2074
|
sourceFilesGlobSelectorsForMultipleEntryPointsGroup.push(ImprovedGlob_1.default.buildExcludingOfFilesInSpecificSubdirectoriesGlobSelector({
|
|
@@ -2088,6 +2084,27 @@ class SourceCodeProcessingRawSettingsNormalizer {
|
|
|
2088
2084
|
exports["default"] = SourceCodeProcessingRawSettingsNormalizer;
|
|
2089
2085
|
|
|
2090
2086
|
|
|
2087
|
+
/***/ }),
|
|
2088
|
+
|
|
2089
|
+
/***/ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts":
|
|
2090
|
+
/*!****************************************************************************************!*\
|
|
2091
|
+
!*** ./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts ***!
|
|
2092
|
+
\****************************************************************************************/
|
|
2093
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2097
|
+
var ConsumingProjectPreDefinedBuildingModes;
|
|
2098
|
+
(function (ConsumingProjectPreDefinedBuildingModes) {
|
|
2099
|
+
ConsumingProjectPreDefinedBuildingModes["staticPreview"] = "STATIC_PREVIEW";
|
|
2100
|
+
ConsumingProjectPreDefinedBuildingModes["localDevelopment"] = "LOCAL_DEVELOPMENT";
|
|
2101
|
+
ConsumingProjectPreDefinedBuildingModes["testing"] = "TESTING";
|
|
2102
|
+
ConsumingProjectPreDefinedBuildingModes["staging"] = "STAGING";
|
|
2103
|
+
ConsumingProjectPreDefinedBuildingModes["production"] = "PRODUCTION";
|
|
2104
|
+
})(ConsumingProjectPreDefinedBuildingModes || (ConsumingProjectPreDefinedBuildingModes = {}));
|
|
2105
|
+
exports["default"] = ConsumingProjectPreDefinedBuildingModes;
|
|
2106
|
+
|
|
2107
|
+
|
|
2091
2108
|
/***/ }),
|
|
2092
2109
|
|
|
2093
2110
|
/***/ "./ProjectBuilding/Common/SettingsRepresentatives/AssetsProcessingSettingsRepresentative.ts":
|
|
@@ -2925,7 +2942,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
2925
2942
|
},
|
|
2926
2943
|
consumingProjectPreDefinedBuildingModes: {
|
|
2927
2944
|
staticPreview: "STATIC_PREVIEW",
|
|
2928
|
-
|
|
2945
|
+
localDevelopment: "LOCAL_DEVELOPMENT",
|
|
2929
2946
|
testing: "TESTING",
|
|
2930
2947
|
staging: "STAGING",
|
|
2931
2948
|
production: "PRODUCTION"
|
|
@@ -2933,15 +2950,17 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
2933
2950
|
},
|
|
2934
2951
|
reusables: {
|
|
2935
2952
|
sourceCodeProcessingGenericProperties: {
|
|
2936
|
-
|
|
2937
|
-
KEY: "entryPointsSourceFilesTopDirectoryOrSingleFileRelativePath"
|
|
2938
|
-
},
|
|
2953
|
+
topDirectoryRelativePath: { KEY: "topDirectoryRelativePath" },
|
|
2939
2954
|
partialsRecognition: {
|
|
2940
2955
|
KEY: "partialsRecognition",
|
|
2941
2956
|
excludeAllSubdirectories: { KEY: "excludeAllSubdirectories" },
|
|
2942
2957
|
excludeSubdirectoriesWithNames: { KEY: "excludeSubdirectoriesWithNames" },
|
|
2943
2958
|
excludeSubdirectoriesWithPrefixes: { KEY: "excludeSubdirectoriesWithPrefixes" },
|
|
2944
2959
|
excludeFilesWithPrefixes: { KEY: "excludeFilesWithPrefixes" }
|
|
2960
|
+
},
|
|
2961
|
+
singleEntryPointRelativePath: {
|
|
2962
|
+
KEY: "singleEntryPointRelativePath",
|
|
2963
|
+
REQUIREMENT_CONDITION_DESCRIPTION: "'topDirectoryRelativePath' is not defined"
|
|
2945
2964
|
}
|
|
2946
2965
|
},
|
|
2947
2966
|
revisioning: {
|
|
@@ -2988,10 +3007,10 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
2988
3007
|
standard: { KEY: "standard" },
|
|
2989
3008
|
disable: { KEY: "disable" }
|
|
2990
3009
|
},
|
|
2991
|
-
|
|
3010
|
+
convertToHandlebarsOnNonStaticPreviewModes: { KEY: "convertToHandlebarsOnNonStaticPreviewModes" },
|
|
2992
3011
|
buildingModeDependent: {
|
|
2993
3012
|
KEY: "buildingModeDependent",
|
|
2994
|
-
|
|
3013
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" }
|
|
2995
3014
|
}
|
|
2996
3015
|
}
|
|
2997
3016
|
},
|
|
@@ -3014,7 +3033,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3014
3033
|
},
|
|
3015
3034
|
buildingModeDependent: {
|
|
3016
3035
|
KEY: "buildingModeDependent",
|
|
3017
|
-
|
|
3036
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3018
3037
|
revisioning: { KEY: "revisioning" }
|
|
3019
3038
|
}
|
|
3020
3039
|
}
|
|
@@ -3065,7 +3084,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3065
3084
|
},
|
|
3066
3085
|
buildingModeDependent: {
|
|
3067
3086
|
KEY: "buildingModeDependent",
|
|
3068
|
-
|
|
3087
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3069
3088
|
revisioning: { KEY: "revisioning" },
|
|
3070
3089
|
dynamicallyLoadedFilesSubdirectory: { KEY: "dynamicallyLoadedFilesSubdirectory" },
|
|
3071
3090
|
dynamicallyLoadedFilesNamesTemplate: { KEY: "dynamicallyLoadedFilesNamesTemplate" }
|
|
@@ -3079,7 +3098,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3079
3098
|
sourceFilesTopDirectoryPathAliasForReferencingFromHTML: { KEY: "sourceFilesTopDirectoryPathAliasForReferencingFromHTML" },
|
|
3080
3099
|
buildingModeDependent: {
|
|
3081
3100
|
KEY: "buildingModeDependent",
|
|
3082
|
-
|
|
3101
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3083
3102
|
revisioning: { KEY: "revisioning" },
|
|
3084
3103
|
outputPathTransformations: {
|
|
3085
3104
|
KEY: "outputPathTransformations",
|
|
@@ -3096,7 +3115,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3096
3115
|
sourceFilesTopDirectoryPathAliasForReferencingFromHTML: { KEY: "sourceFilesTopDirectoryPathAliasForReferencingFromHTML" },
|
|
3097
3116
|
buildingModeDependent: {
|
|
3098
3117
|
KEY: "buildingModeDependent",
|
|
3099
|
-
|
|
3118
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3100
3119
|
revisioning: { KEY: "revisioning" },
|
|
3101
3120
|
outputPathTransformations: {
|
|
3102
3121
|
KEY: "outputPathTransformations",
|
|
@@ -3113,7 +3132,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3113
3132
|
sourceFilesTopDirectoryPathAliasForReferencingFromHTML: { KEY: "sourceFilesTopDirectoryPathAliasForReferencingFromHTML" },
|
|
3114
3133
|
buildingModeDependent: {
|
|
3115
3134
|
KEY: "buildingModeDependent",
|
|
3116
|
-
|
|
3135
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3117
3136
|
revisioning: { KEY: "revisioning" },
|
|
3118
3137
|
outputPathTransformations: {
|
|
3119
3138
|
KEY: "outputPathTransformations",
|
|
@@ -3130,7 +3149,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
3130
3149
|
sourceFilesTopDirectoryPathAliasForReferencingFromHTML: { KEY: "sourceFilesTopDirectoryPathAliasForReferencingFromHTML" },
|
|
3131
3150
|
buildingModeDependent: {
|
|
3132
3151
|
KEY: "buildingModeDependent",
|
|
3133
|
-
|
|
3152
|
+
outputTopDirectoryRelativePath: { KEY: "outputTopDirectoryRelativePath" },
|
|
3134
3153
|
revisioning: { KEY: "revisioning" },
|
|
3135
3154
|
outputPathTransformations: {
|
|
3136
3155
|
KEY: "outputPathTransformations",
|
|
@@ -3263,7 +3282,6 @@ var ProjectBuildingConfig__FromFile__RawValid;
|
|
|
3263
3282
|
required: false,
|
|
3264
3283
|
properties: ECMA_ScriptLogicProcessingSettings__FromFile__RawValid_1.default.getLocalizedPropertiesSpecification({
|
|
3265
3284
|
ECMA_ScriptProcessingLocalization: localization.tasks.ECMA_ScriptLogicProcessing,
|
|
3266
|
-
sourceCodeProcessingSettingsGenericPropertiesLocalization: localization.reusables.sourceCodeProcessingGenericProperties,
|
|
3267
3285
|
sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification,
|
|
3268
3286
|
consumingProjectLocalizedPreDefinedBuildingModes,
|
|
3269
3287
|
revisioningPropertiesLocalizedSpecification,
|
|
@@ -3357,7 +3375,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3357
3375
|
};
|
|
3358
3376
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3359
3377
|
/* --- Business rules ----------------------------------------------------------------------------------------------- */
|
|
3360
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
3378
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
3361
3379
|
/* --- Settings representatives --------------------------------------------------------------------------------------- */
|
|
3362
3380
|
const MarkupProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/MarkupProcessingSettingsRepresentative */ "./ProjectBuilding/SourceCodeProcessing/Markup/MarkupProcessingSettingsRepresentative.ts"));
|
|
3363
3381
|
const StylesProcessingSettingsRepresentative_1 = __importDefault(__webpack_require__(/*! @StylesProcessing/StylesProcessingSettingsRepresentative */ "./ProjectBuilding/SourceCodeProcessing/Styles/StylesProcessingSettingsRepresentative.ts"));
|
|
@@ -3434,8 +3452,8 @@ class ProjectBuildingMasterConfigRepresentative {
|
|
|
3434
3452
|
get isStaticPreviewBuildingMode() {
|
|
3435
3453
|
return this.commonSettings.projectBuildingMode === ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview;
|
|
3436
3454
|
}
|
|
3437
|
-
get
|
|
3438
|
-
return this.commonSettings.projectBuildingMode === ConsumingProjectPreDefinedBuildingModes_1.default.
|
|
3455
|
+
get isLocalDevelopmentBuildingMode() {
|
|
3456
|
+
return this.commonSettings.projectBuildingMode === ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment;
|
|
3439
3457
|
}
|
|
3440
3458
|
get isTestingBuildingMode() {
|
|
3441
3459
|
return this.commonSettings.projectBuildingMode === ConsumingProjectPreDefinedBuildingModes_1.default.testing;
|
|
@@ -3475,7 +3493,7 @@ class ProjectBuildingMasterConfigRepresentative {
|
|
|
3475
3493
|
}
|
|
3476
3494
|
get mustProvideBrowserLiveReloading() {
|
|
3477
3495
|
return (0, es_extensions_1.isNotUndefined)(this.browserLiveReloadingSettingsRepresentative) &&
|
|
3478
|
-
(this.isStaticPreviewBuildingMode || this.
|
|
3496
|
+
(this.isStaticPreviewBuildingMode || this.isLocalDevelopmentBuildingMode);
|
|
3479
3497
|
}
|
|
3480
3498
|
/* --- Debugging -------------------------------------------------------------------------------------------------- */
|
|
3481
3499
|
get mustDebugEntryPointsAndPartialFiles() {
|
|
@@ -3733,7 +3751,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3733
3751
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
3734
3752
|
};
|
|
3735
3753
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3736
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding
|
|
3754
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
3737
3755
|
const ECMA_ScriptLogicProcessingRestrictions_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/ECMA_ScriptLogicProcessingRestrictions */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/ECMA_ScriptLogicProcessingRestrictions.ts"));
|
|
3738
3756
|
var SupportedECMA_ScriptRuntimesTypes = ECMA_ScriptLogicProcessingRestrictions_1.default.SupportedECMA_ScriptRuntimesTypes;
|
|
3739
3757
|
exports["default"] = {
|
|
@@ -3746,7 +3764,7 @@ exports["default"] = {
|
|
|
3746
3764
|
if (namedParameters.targetRuntimeType === SupportedECMA_ScriptRuntimesTypes.browser ||
|
|
3747
3765
|
namedParameters.targetRuntimeType === SupportedECMA_ScriptRuntimesTypes.webWorker) {
|
|
3748
3766
|
return namedParameters.consumingProjectBuildingMode !== ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview &&
|
|
3749
|
-
namedParameters.consumingProjectBuildingMode !== ConsumingProjectPreDefinedBuildingModes_1.default.
|
|
3767
|
+
namedParameters.consumingProjectBuildingMode !== ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment;
|
|
3750
3768
|
}
|
|
3751
3769
|
return false;
|
|
3752
3770
|
},
|
|
@@ -3785,7 +3803,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3785
3803
|
const ECMA_ScriptLogicProcessingRestrictions_1 = __importDefault(__webpack_require__(/*! @ECMA_ScriptProcessing/ECMA_ScriptLogicProcessingRestrictions */ "./ProjectBuilding/SourceCodeProcessing/ECMA_Script/ECMA_ScriptLogicProcessingRestrictions.ts"));
|
|
3786
3804
|
var SupportedECMA_ScriptRuntimesTypes = ECMA_ScriptLogicProcessingRestrictions_1.default.SupportedECMA_ScriptRuntimesTypes;
|
|
3787
3805
|
/* --- Default settings --------------------------------------------------------------------------------------------- */
|
|
3788
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
3806
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
3789
3807
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
3790
3808
|
/* eslint-disable-next-line @typescript-eslint/no-redeclare --
|
|
3791
3809
|
* The merging of type/interface and namespace is completely valid TypeScript,
|
|
@@ -3793,7 +3811,7 @@ const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "
|
|
|
3793
3811
|
* https://github.com/eslint/eslint/issues/15504 */
|
|
3794
3812
|
var ECMA_ScriptLogicProcessingSettings__FromFile__RawValid;
|
|
3795
3813
|
(function (ECMA_ScriptLogicProcessingSettings__FromFile__RawValid) {
|
|
3796
|
-
function getLocalizedPropertiesSpecification({ ECMA_ScriptProcessingLocalization,
|
|
3814
|
+
function getLocalizedPropertiesSpecification({ ECMA_ScriptProcessingLocalization, sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification, consumingProjectLocalizedPreDefinedBuildingModes, revisioningPropertiesLocalizedSpecification, lintingCommonSettingsLocalizedPropertiesSpecification }) {
|
|
3797
3815
|
return {
|
|
3798
3816
|
[ECMA_ScriptProcessingLocalization.common.KEY]: {
|
|
3799
3817
|
newName: "common",
|
|
@@ -3826,9 +3844,7 @@ var ECMA_ScriptLogicProcessingSettings__FromFile__RawValid;
|
|
|
3826
3844
|
value: {
|
|
3827
3845
|
type: Object,
|
|
3828
3846
|
properties: {
|
|
3829
|
-
|
|
3830
|
-
entryPointsSourceFilesTopDirectoryOrSingleFileRelativePath.KEY]: sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification[sourceCodeProcessingSettingsGenericPropertiesLocalization.
|
|
3831
|
-
entryPointsSourceFilesTopDirectoryOrSingleFileRelativePath.KEY],
|
|
3847
|
+
...sourceCodeProcessingSettingsGenericPropertiesLocalizedSpecification,
|
|
3832
3848
|
[ECMA_ScriptProcessingLocalization.entryPointsGroups.targetRuntime.KEY]: {
|
|
3833
3849
|
newName: "targetRuntime",
|
|
3834
3850
|
type: Object,
|
|
@@ -3948,16 +3964,17 @@ var ECMA_ScriptLogicProcessingSettings__FromFile__RawValid;
|
|
|
3948
3964
|
minimalEntriesCount: 1,
|
|
3949
3965
|
keysRenamings: {
|
|
3950
3966
|
[consumingProjectLocalizedPreDefinedBuildingModes.staticPreview]: ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview,
|
|
3951
|
-
[consumingProjectLocalizedPreDefinedBuildingModes.
|
|
3967
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
3952
3968
|
[consumingProjectLocalizedPreDefinedBuildingModes.testing]: ConsumingProjectPreDefinedBuildingModes_1.default.testing,
|
|
3969
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staging]: ConsumingProjectPreDefinedBuildingModes_1.default.staging,
|
|
3953
3970
|
[consumingProjectLocalizedPreDefinedBuildingModes.production]: ConsumingProjectPreDefinedBuildingModes_1.default.production
|
|
3954
3971
|
},
|
|
3955
3972
|
value: {
|
|
3956
3973
|
type: Object,
|
|
3957
3974
|
properties: {
|
|
3958
3975
|
[ECMA_ScriptProcessingLocalization.entryPointsGroups.
|
|
3959
|
-
buildingModeDependent.
|
|
3960
|
-
newName: "
|
|
3976
|
+
buildingModeDependent.outputTopDirectoryRelativePath.KEY]: {
|
|
3977
|
+
newName: "outputTopDirectoryRelativePath",
|
|
3961
3978
|
type: String,
|
|
3962
3979
|
required: true
|
|
3963
3980
|
},
|
|
@@ -4302,12 +4319,12 @@ class WebpackConfigGenerator {
|
|
|
4302
4319
|
},
|
|
4303
4320
|
...willBrowserJS_LibraryBeBuilt ? { experiments: { outputModule: true } } : null,
|
|
4304
4321
|
mode: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
4305
|
-
this.masterConfigRepresentative.
|
|
4322
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode ?
|
|
4306
4323
|
"development" : "production",
|
|
4307
4324
|
watch: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
4308
|
-
this.masterConfigRepresentative.
|
|
4325
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,
|
|
4309
4326
|
devtool: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
4310
|
-
this.masterConfigRepresentative.
|
|
4327
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode ?
|
|
4311
4328
|
"eval" : false,
|
|
4312
4329
|
...entryPointsGroupSettings.targetRuntime.type === SupportedECMA_ScriptRuntimesTypes.nodeJS ? {
|
|
4313
4330
|
node: {
|
|
@@ -4474,7 +4491,7 @@ class WebpackConfigGenerator {
|
|
|
4474
4491
|
minimize: this.masterConfigRepresentative.isStagingBuildingMode ||
|
|
4475
4492
|
this.masterConfigRepresentative.isProductionBuildingMode,
|
|
4476
4493
|
emitOnErrors: this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
4477
|
-
this.masterConfigRepresentative.
|
|
4494
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode
|
|
4478
4495
|
}
|
|
4479
4496
|
};
|
|
4480
4497
|
}
|
|
@@ -4498,7 +4515,7 @@ class WebpackConfigGenerator {
|
|
|
4498
4515
|
* */
|
|
4499
4516
|
computePublicPathIfPossible(ECMA_ScriptLogicEntryPointsGroupSettings__normalized) {
|
|
4500
4517
|
if (!this.masterConfigRepresentative.isStaticPreviewBuildingMode &&
|
|
4501
|
-
!this.masterConfigRepresentative.
|
|
4518
|
+
!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode) {
|
|
4502
4519
|
return "/";
|
|
4503
4520
|
}
|
|
4504
4521
|
return ECMA_ScriptLogicEntryPointsGroupSettings__normalized.ID.replace(ECMA_ScriptLogicEntryPointsGroupSettings__normalized.ID, "/");
|
|
@@ -4651,8 +4668,8 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
|
|
|
4651
4668
|
standard: entryPointsGroupSettings__rawValid.accessibilityInspection?.standard ??
|
|
4652
4669
|
MarkupProcessingSettings__Default_1.default.accessibilityInspection.standard
|
|
4653
4670
|
},
|
|
4654
|
-
|
|
4655
|
-
|
|
4671
|
+
mustConvertToHandlebarsOnNonStaticPreviewModes: entryPointsGroupSettings__rawValid.
|
|
4672
|
+
convertToHandlebarsOnNonStaticPreviewModes ?? false
|
|
4656
4673
|
};
|
|
4657
4674
|
}
|
|
4658
4675
|
}
|
|
@@ -4771,10 +4788,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4771
4788
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4772
4789
|
};
|
|
4773
4790
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4774
|
-
/* --- Enumerations ------------------------------------------------------------------------------------------------- */
|
|
4775
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
4776
4791
|
/* --- Restrictions ------------------------------------------------------------------------------------------------- */
|
|
4777
4792
|
const MarkupProcessingRestrictions_1 = __importDefault(__webpack_require__(/*! @MarkupProcessing/MarkupProcessingRestrictions */ "./ProjectBuilding/SourceCodeProcessing/Markup/MarkupProcessingRestrictions.ts"));
|
|
4793
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
4778
4794
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
4779
4795
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
4780
4796
|
/* eslint-disable-next-line @typescript-eslint/no-redeclare --
|
|
@@ -4860,8 +4876,8 @@ var MarkupProcessingSettings__FromFile__RawValid;
|
|
|
4860
4876
|
}
|
|
4861
4877
|
}
|
|
4862
4878
|
},
|
|
4863
|
-
[markupProcessingLocalization.entryPointsGroups.
|
|
4864
|
-
newName: "
|
|
4879
|
+
[markupProcessingLocalization.entryPointsGroups.convertToHandlebarsOnNonStaticPreviewModes.KEY]: {
|
|
4880
|
+
newName: "convertToHandlebarsOnNonStaticPreviewModes",
|
|
4865
4881
|
type: Boolean,
|
|
4866
4882
|
required: false
|
|
4867
4883
|
},
|
|
@@ -4872,15 +4888,16 @@ var MarkupProcessingSettings__FromFile__RawValid;
|
|
|
4872
4888
|
minimalEntriesCount: 1,
|
|
4873
4889
|
keysRenamings: {
|
|
4874
4890
|
[consumingProjectLocalizedPreDefinedBuildingModes.staticPreview]: ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview,
|
|
4875
|
-
[consumingProjectLocalizedPreDefinedBuildingModes.
|
|
4891
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
4876
4892
|
[consumingProjectLocalizedPreDefinedBuildingModes.testing]: ConsumingProjectPreDefinedBuildingModes_1.default.testing,
|
|
4893
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staging]: ConsumingProjectPreDefinedBuildingModes_1.default.staging,
|
|
4877
4894
|
[consumingProjectLocalizedPreDefinedBuildingModes.production]: ConsumingProjectPreDefinedBuildingModes_1.default.production
|
|
4878
4895
|
},
|
|
4879
4896
|
value: {
|
|
4880
4897
|
type: Object,
|
|
4881
4898
|
properties: {
|
|
4882
|
-
[markupProcessingLocalization.entryPointsGroups.buildingModeDependent.
|
|
4883
|
-
newName: "
|
|
4899
|
+
[markupProcessingLocalization.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]: {
|
|
4900
|
+
newName: "outputTopDirectoryRelativePath",
|
|
4884
4901
|
type: String,
|
|
4885
4902
|
required: true
|
|
4886
4903
|
}
|
|
@@ -4938,7 +4955,7 @@ class MarkupProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
4938
4955
|
}
|
|
4939
4956
|
const dataHoldingSelfInstance = new MarkupProcessor(masterConfigRepresentative, markupProcessingSettingsRepresentative);
|
|
4940
4957
|
if (masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
4941
|
-
masterConfigRepresentative.
|
|
4958
|
+
masterConfigRepresentative.isLocalDevelopmentBuildingMode) {
|
|
4942
4959
|
dataHoldingSelfInstance.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors();
|
|
4943
4960
|
dataHoldingSelfInstance.initializeOrUpdateWatchedSourceFilesGlobSelectors();
|
|
4944
4961
|
dataHoldingSelfInstance.initializeOrUpdateSourceFilesWatcher();
|
|
@@ -4963,7 +4980,7 @@ class MarkupProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
4963
4980
|
pipe((0, gulp_pug_1.default)({
|
|
4964
4981
|
locals: {
|
|
4965
4982
|
__IS_STATIC_PREVIEW_BUILDING_MODE__: this.masterConfigRepresentative.isStaticPreviewBuildingMode,
|
|
4966
|
-
|
|
4983
|
+
__IS_LOCAL_DEVELOPMENT_BUILDING_MODE__: this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,
|
|
4967
4984
|
__IS_TESTING_BUILDING_MODE__: this.masterConfigRepresentative.isTestingBuildingMode,
|
|
4968
4985
|
__IS_STAGING_BUILDING_MODE__: this.masterConfigRepresentative.isStagingBuildingMode,
|
|
4969
4986
|
__IS_PRODUCTION_BUILDING_MODE__: this.masterConfigRepresentative.isProductionBuildingMode
|
|
@@ -4995,7 +5012,7 @@ class MarkupProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
4995
5012
|
this.markupProcessingConfigRepresentative.
|
|
4996
5013
|
sourceAndOutputFilesAbsolutePathsCorrespondenceMap.
|
|
4997
5014
|
set(ImprovedPath_1.default.replacePathSeparatorsToForwardSlashes(compiledHTML_File.sourceAbsolutePath), ImprovedPath_1.default.joinPathSegments(compiledHTML_File.outputDirectoryAbsolutePath, compiledHTML_File.basename));
|
|
4998
|
-
if (compiledHTML_File.processingSettings.
|
|
5015
|
+
if (compiledHTML_File.processingSettings.mustConvertToHandlebarsOnNonStaticPreviewModes &&
|
|
4999
5016
|
!this.masterConfigRepresentative.isStaticPreviewBuildingMode) {
|
|
5000
5017
|
compiledHTML_File.extname = ".hbs";
|
|
5001
5018
|
}
|
|
@@ -5975,13 +5992,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5975
5992
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5976
5993
|
};
|
|
5977
5994
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5978
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding
|
|
5995
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
5979
5996
|
exports["default"] = {
|
|
5980
5997
|
waitingForSubsequentFilesWillBeSavedPeriod__seconds: 1,
|
|
5981
5998
|
filePathAliasNotation: "@",
|
|
5982
5999
|
revisioning: {
|
|
5983
6000
|
mustExecute: (projectBuildingMode__possiblyCustom) => projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview &&
|
|
5984
|
-
projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.
|
|
6001
|
+
projectBuildingMode__possiblyCustom !== ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
5985
6002
|
contentHashPostfixSeparator: "--"
|
|
5986
6003
|
},
|
|
5987
6004
|
linting: {
|
|
@@ -6004,8 +6021,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6004
6021
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6005
6022
|
};
|
|
6006
6023
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6007
|
-
/* ---
|
|
6008
|
-
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/
|
|
6024
|
+
/* --- Restrictions ------------------------------------------------------------------------------------------------- */
|
|
6025
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Restrictions/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
6009
6026
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
6010
6027
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
6011
6028
|
/* eslint-disable-next-line @typescript-eslint/no-redeclare --
|
|
@@ -6072,16 +6089,17 @@ var StylesProcessingSettings__FromFile__RawValid;
|
|
|
6072
6089
|
required: true,
|
|
6073
6090
|
minimalEntriesCount: 1,
|
|
6074
6091
|
keysRenamings: {
|
|
6075
|
-
[consumingProjectLocalizedPreDefinedBuildingModes.
|
|
6076
|
-
[consumingProjectLocalizedPreDefinedBuildingModes.
|
|
6092
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectPreDefinedBuildingModes_1.default.staticPreview,
|
|
6093
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.localDevelopment]: ConsumingProjectPreDefinedBuildingModes_1.default.localDevelopment,
|
|
6077
6094
|
[consumingProjectLocalizedPreDefinedBuildingModes.testing]: ConsumingProjectPreDefinedBuildingModes_1.default.testing,
|
|
6095
|
+
[consumingProjectLocalizedPreDefinedBuildingModes.staging]: ConsumingProjectPreDefinedBuildingModes_1.default.staging,
|
|
6078
6096
|
[consumingProjectLocalizedPreDefinedBuildingModes.production]: ConsumingProjectPreDefinedBuildingModes_1.default.production
|
|
6079
6097
|
},
|
|
6080
6098
|
value: {
|
|
6081
6099
|
type: Object,
|
|
6082
6100
|
properties: {
|
|
6083
|
-
[stylesProcessingLocalization.entryPointsGroups.buildingModeDependent.
|
|
6084
|
-
newName: "
|
|
6101
|
+
[stylesProcessingLocalization.entryPointsGroups.buildingModeDependent.outputTopDirectoryRelativePath.KEY]: {
|
|
6102
|
+
newName: "outputTopDirectoryRelativePath",
|
|
6085
6103
|
type: String,
|
|
6086
6104
|
required: true
|
|
6087
6105
|
},
|
|
@@ -6145,7 +6163,7 @@ class StylesProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
6145
6163
|
return () => new stream_1.PassThrough().end();
|
|
6146
6164
|
}
|
|
6147
6165
|
const dataHoldingSelfInstance = new StylesProcessor(masterConfigRepresentative, stylesProcessingSettingsRepresentative);
|
|
6148
|
-
if (masterConfigRepresentative.isStaticPreviewBuildingMode || masterConfigRepresentative.
|
|
6166
|
+
if (masterConfigRepresentative.isStaticPreviewBuildingMode || masterConfigRepresentative.isLocalDevelopmentBuildingMode) {
|
|
6149
6167
|
dataHoldingSelfInstance.initializeSourceFilesDirectoriesWhichAlwaysWillBeBeingWatchedGlobSelectors();
|
|
6150
6168
|
dataHoldingSelfInstance.initializeOrUpdateWatchedSourceFilesGlobSelectors();
|
|
6151
6169
|
dataHoldingSelfInstance.initializeOrUpdateSourceFilesWatcher();
|
|
@@ -6168,7 +6186,7 @@ class StylesProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
6168
6186
|
pipe(super.handleErrorIfItWillOccur()).
|
|
6169
6187
|
pipe((0, gulp_intercept_1.default)(this.addActualSourceCodeProcessingSettingsToVinylFile.bind(this))).
|
|
6170
6188
|
pipe((0, gulp_if_1.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
6171
|
-
this.masterConfigRepresentative.
|
|
6189
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode, gulp_sourcemaps_1.default.init())).
|
|
6172
6190
|
pipe((0, gulp_if_1.default)((file) => file.mustBeProcessedByStylus, (0, gulp_stylus_1.default)({
|
|
6173
6191
|
/* [ Theory ] Allows to "@include XXX.css" which is critical for third-party libraries usage. */
|
|
6174
6192
|
"include css": true
|
|
@@ -6181,16 +6199,16 @@ class StylesProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
6181
6199
|
"default",
|
|
6182
6200
|
{
|
|
6183
6201
|
normalizeWhitespace: !this.masterConfigRepresentative.isStaticPreviewBuildingMode &&
|
|
6184
|
-
!this.masterConfigRepresentative.
|
|
6202
|
+
!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode,
|
|
6185
6203
|
discardComments: !this.masterConfigRepresentative.isStaticPreviewBuildingMode &&
|
|
6186
|
-
!this.masterConfigRepresentative.
|
|
6204
|
+
!this.masterConfigRepresentative.isLocalDevelopmentBuildingMode
|
|
6187
6205
|
}
|
|
6188
6206
|
]
|
|
6189
6207
|
})
|
|
6190
6208
|
]
|
|
6191
6209
|
}))).
|
|
6192
6210
|
pipe((0, gulp_if_1.default)(this.masterConfigRepresentative.isStaticPreviewBuildingMode ||
|
|
6193
|
-
this.masterConfigRepresentative.
|
|
6211
|
+
this.masterConfigRepresentative.isLocalDevelopmentBuildingMode, gulp_sourcemaps_1.default.write())).
|
|
6194
6212
|
pipe((0, gulp_intercept_1.default)(this.onPostProcessedCode.bind(this))).
|
|
6195
6213
|
pipe(gulp_1.default.dest((targetFileInFinalState) => targetFileInFinalState.outputDirectoryAbsolutePath));
|
|
6196
6214
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.2.0-alpha.
|
|
3
|
+
"version": "0.2.0-alpha.1",
|
|
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",
|