@yamato-daiwa/automation 0.1.0 → 0.2.0-alpha.0
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 +35 -6
- package/package.json +1 -1
package/EntryPoint.js
CHANGED
|
@@ -1597,10 +1597,15 @@ var ProjectBuildingTasksIDsForConfigFile;
|
|
|
1597
1597
|
/*!***********************************************************************************************!*\
|
|
1598
1598
|
!*** ./ProjectBuilding/Common/RawConfig/ProjectBuildingCommonSettings__FromFile__RawValid.ts ***!
|
|
1599
1599
|
\***********************************************************************************************/
|
|
1600
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
1600
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1601
1601
|
|
|
1602
1602
|
|
|
1603
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1604
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1605
|
+
};
|
|
1603
1606
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1607
|
+
/* --- Defaults ----------------------------------------------------------------------------------------------------- */
|
|
1608
|
+
const ConsumingProjectPreDefinedBuildingModes_1 = __importDefault(__webpack_require__(/*! @ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes */ "./ProjectBuilding/Common/Defaults/ConsumingProjectPreDefinedBuildingModes.ts"));
|
|
1604
1609
|
const ProjectBuildingTasksIDsForConfigFile_1 = __webpack_require__(/*! @ProjectBuilding:Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile */ "./ProjectBuilding/Common/RawConfig/Enumerations/ProjectBuildingTasksIDsForConfigFile.ts");
|
|
1605
1610
|
/* --- General auxiliaries ------------------------------------------------------------------------------------------ */
|
|
1606
1611
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
@@ -1652,6 +1657,16 @@ var ProjectBuildingCommonSettings__FromFile__RawValid;
|
|
|
1652
1657
|
}
|
|
1653
1658
|
}
|
|
1654
1659
|
}
|
|
1660
|
+
},
|
|
1661
|
+
[projectBuildingCommonSettingsLocalization.publicDirectoriesRelativePaths.KEY]: {
|
|
1662
|
+
newName: "publicDirectoriesRelativePaths",
|
|
1663
|
+
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
1664
|
+
required: false,
|
|
1665
|
+
allowedKeys: Object.values(ConsumingProjectPreDefinedBuildingModes_1.default),
|
|
1666
|
+
value: {
|
|
1667
|
+
type: String,
|
|
1668
|
+
minimalCharactersCount: 1
|
|
1669
|
+
}
|
|
1655
1670
|
}
|
|
1656
1671
|
};
|
|
1657
1672
|
}
|
|
@@ -2973,6 +2988,7 @@ const ProjectBuildingConfigFromFileDefaultLocalization = {
|
|
|
2973
2988
|
standard: { KEY: "standard" },
|
|
2974
2989
|
disable: { KEY: "disable" }
|
|
2975
2990
|
},
|
|
2991
|
+
convertToHandlebarsInNonStaticPreviewModes: { KEY: "convertToHandlebarsInNonStaticPreviewModes" },
|
|
2976
2992
|
buildingModeDependent: {
|
|
2977
2993
|
KEY: "buildingModeDependent",
|
|
2978
2994
|
outputBaseDirectoryRelativePath: { KEY: "outputBaseDirectoryRelativePath" }
|
|
@@ -4634,7 +4650,9 @@ class MarkupProcessingRawSettingsNormalizer extends SourceCodeProcessingRawSetti
|
|
|
4634
4650
|
MarkupProcessingSettings__Default_1.default.accessibilityInspection.mustExecute,
|
|
4635
4651
|
standard: entryPointsGroupSettings__rawValid.accessibilityInspection?.standard ??
|
|
4636
4652
|
MarkupProcessingSettings__Default_1.default.accessibilityInspection.standard
|
|
4637
|
-
}
|
|
4653
|
+
},
|
|
4654
|
+
mustConvertToHandlebarsInNonStaticPreviewModes: entryPointsGroupSettings__rawValid.
|
|
4655
|
+
convertToHandlebarsInNonStaticPreviewModes ?? false
|
|
4638
4656
|
};
|
|
4639
4657
|
}
|
|
4640
4658
|
}
|
|
@@ -4842,6 +4860,11 @@ var MarkupProcessingSettings__FromFile__RawValid;
|
|
|
4842
4860
|
}
|
|
4843
4861
|
}
|
|
4844
4862
|
},
|
|
4863
|
+
[markupProcessingLocalization.entryPointsGroups.convertToHandlebarsInNonStaticPreviewModes.KEY]: {
|
|
4864
|
+
newName: "convertToHandlebarsInNonStaticPreviewModes",
|
|
4865
|
+
type: Boolean,
|
|
4866
|
+
required: false
|
|
4867
|
+
},
|
|
4845
4868
|
[markupProcessingLocalization.entryPointsGroups.buildingModeDependent.KEY]: {
|
|
4846
4869
|
newName: "buildingModeDependent",
|
|
4847
4870
|
type: es_extensions_1.RawObjectDataProcessor.ValuesTypesIDs.associativeArrayOfUniformTypeValues,
|
|
@@ -4972,11 +4995,17 @@ class MarkupProcessor extends GulpStreamsBasedSourceCodeProcessor_1.default {
|
|
|
4972
4995
|
this.markupProcessingConfigRepresentative.
|
|
4973
4996
|
sourceAndOutputFilesAbsolutePathsCorrespondenceMap.
|
|
4974
4997
|
set(ImprovedPath_1.default.replacePathSeparatorsToForwardSlashes(compiledHTML_File.sourceAbsolutePath), ImprovedPath_1.default.joinPathSegments(compiledHTML_File.outputDirectoryAbsolutePath, compiledHTML_File.basename));
|
|
4975
|
-
if (compiledHTML_File.processingSettings.
|
|
4976
|
-
|
|
4998
|
+
if (compiledHTML_File.processingSettings.mustConvertToHandlebarsInNonStaticPreviewModes &&
|
|
4999
|
+
!this.masterConfigRepresentative.isStaticPreviewBuildingMode) {
|
|
5000
|
+
compiledHTML_File.extname = ".hbs";
|
|
4977
5001
|
}
|
|
4978
|
-
|
|
4979
|
-
|
|
5002
|
+
else {
|
|
5003
|
+
if (compiledHTML_File.processingSettings.HTML_Validation.mustExecute) {
|
|
5004
|
+
HTML_Validator_1.default.validateHTML(compiledHTML_File, this.masterConfigRepresentative);
|
|
5005
|
+
}
|
|
5006
|
+
if (compiledHTML_File.processingSettings.accessibilityInspection.mustExecute) {
|
|
5007
|
+
AccessibilityInspector_1.default.inspectAccessibility(compiledHTML_File, this.masterConfigRepresentative);
|
|
5008
|
+
}
|
|
4980
5009
|
}
|
|
4981
5010
|
return compiledHTML_File;
|
|
4982
5011
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0-alpha.0",
|
|
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",
|