@yamato-daiwa/automation 0.8.0-alpha.1 → 0.8.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 +41 -31
- package/README.md +6 -3
- package/package.json +11 -10
package/EntryPoint.js
CHANGED
|
@@ -34,7 +34,7 @@ function revisionHash(data) {
|
|
|
34
34
|
\***********************/
|
|
35
35
|
/***/ ((module) => {
|
|
36
36
|
|
|
37
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.8.0
|
|
37
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.8.0","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":">=20.0.0"},"bin":{"yda":"Executable"},"files":["EntryPoint.js"],"dependencies":{"@eslint-community/eslint-plugin-eslint-comments":"4.5.0","@stylistic/eslint-plugin":"5.4.0","@typescript-eslint/eslint-plugin":"8.46.1","@typescript-eslint/parser":"8.46.1","@vue/compiler-sfc":"3.5.18","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.8.1","@yamato-daiwa/es-extensions-nodejs":"1.8.1","@yamato-daiwa/style_guides":"0.10.1","@yamato-daiwa/universal-reactive-webpack-loader":"0.0.0","autoprefixer":"10.4.21","browser-sync":"3.0.4","css-loader":"7.1.2","cssnano":"7.1.0","dotenv":"17.2.1","eslint":"9.38.0","eslint-plugin-import":"2.32.0","eslint-plugin-n":"17.23.1","eslint-plugin-react":"7.37.5","eslint-plugin-vue":"9.33.0","eslint-plugin-vue-pug":"0.6.2","gulp":"4.0.2","gulp-data":"1.3.1","gulp-if":"3.0.0","gulp-imagemin":"7.1.0","gulp-nodemon":"2.5.0","gulp-plumber":"1.2.1","gulp-postcss":"10.0.0","gulp-pug":"5.0.0","gulp-sourcemaps":"3.0.0","gulp-stylus":"3.0.1","htmlnano":"2.1.2","imagemin-pngquant":"9.0.2","js-beautify":"1.15.4","json5-loader":"4.0.1","nanoid":"5.1.5","node-html-parser":"7.0.1","node-notifier":"10.0.1","pa11y":"9.0.0","postcss-loader":"8.2.0","postcss-normalize-stylus-compatible-container-query-syntax":"1.0.0","probe-image-size":"7.2.3","pug-lint":"2.7.0","puppeteer":"24.10.0","require-from-string":"2.0.2","rev-hash":"4.1.0","stlint":"1.0.65","stream-combiner2":"1.1.1","style-loader":"4.0.0","stylus":"0.63.0","stylus-loader":"8.1.1","ts-loader":"9.5.2","vinyl":"2.2.1","vnu-jar":"24.10.17","vue-loader":"17.4.2","vue-style-loader":"4.1.3","vue-tsc":"3.0.5","webpack":"5.101.0","webpack-node-externals":"3.0.0","webpack-stream":"7.0.0","worker-loader":"3.0.8","yaml-loader":"0.8.1"},"devDependencies":{"@types/browser-sync":"2.29.0","@types/cssnano":"5.0.0","@types/gulp":"4.0.17","@types/gulp-if":"3.0.5","@types/gulp-imagemin":"7.0.3","@types/gulp-nodemon":"0.0.37","@types/gulp-plumber":"0.0.37","@types/gulp-postcss":"8.0.6","@types/gulp-sourcemaps":"0.0.38","@types/gulp-stylus":"2.7.8","@types/js-beautify":"1.14.3","@types/node":"22.15.30","@types/node-notifier":"8.0.5","@types/pa11y":"5.3.7","@types/probe-image-size":"7.2.5","@types/pug":"2.0.10","@types/require-from-string":"1.2.3","@types/vnu-jar":"17.11.2","@types/webpack-node-externals":"3.0.4","@types/webpack-stream":"3.2.15","eslint-webpack-plugin":"4.2.0","ts-node":"10.9.2","typescript":"5.9.3","webpack-cli":"6.0.1"},"scripts":{"Incremental Development Building":"webpack --mode development","Production Building":"webpack --mode production","Linting":"eslint Source"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"},"homepage":"https://automation.yamato-daiwa.com/","funding":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation?sponsor=1","bugs":{"url":"https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues","email":"tokugawa.takesi@gmail.com"}}');
|
|
38
38
|
|
|
39
39
|
/***/ }),
|
|
40
40
|
|
|
@@ -7610,7 +7610,11 @@ class ECMA_ScriptLogicProcessor {
|
|
|
7610
7610
|
const webpackMultiCompiler = (0, webpack_1.default)(this.webpackConfigurationsForExistingEntryPoints);
|
|
7611
7611
|
if ((0, es_extensions_1.isNull)(webpackMultiCompiler)) {
|
|
7612
7612
|
es_extensions_1.Logger.throwErrorWithFormattedMessage({
|
|
7613
|
-
errorInstance: new es_extensions_1.UnexpectedEventError(
|
|
7613
|
+
errorInstance: new es_extensions_1.UnexpectedEventError(es_extensions_1.PoliteErrorsMessagesBuilder.buildMessage({
|
|
7614
|
+
politeExplanation: "It has occurred some problem with changed functionality of Webpack, the dependency of YDA.",
|
|
7615
|
+
technicalDetails: "The `Webpack` function returned the null. " +
|
|
7616
|
+
"Previously according to TypeScript type definitions, the returned value was always non-nullable. "
|
|
7617
|
+
})),
|
|
7614
7618
|
title: es_extensions_1.UnexpectedEventError.localization.defaultTitle,
|
|
7615
7619
|
occurrenceLocation: "ECMA_ScriptLogicProcessor.constructor(...parameters)"
|
|
7616
7620
|
});
|
|
@@ -8611,9 +8615,10 @@ const WebpackSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartyS
|
|
|
8611
8615
|
const TypeScriptSpecialist_1 = __importDefault(__webpack_require__(/*! @ThirdPartySolutionsSpecialists/TypeScriptSpecialist */ "./ThirdPartySolutionsSpecialists/TypeScriptSpecialist.ts"));
|
|
8612
8616
|
/* ─── Applied Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8613
8617
|
const webpack_1 = __importDefault(__webpack_require__(/*! webpack */ "webpack"));
|
|
8614
|
-
const webpackbar_1 = __importDefault(__webpack_require__(/*! webpackbar */ "webpackbar"));
|
|
8615
8618
|
const vue_loader_1 = __webpack_require__(/*! vue-loader */ "vue-loader");
|
|
8616
8619
|
const webpack_node_externals_1 = __importDefault(__webpack_require__(/*! webpack-node-externals */ "webpack-node-externals"));
|
|
8620
|
+
const autoprefixer_1 = __importDefault(__webpack_require__(/*! autoprefixer */ "autoprefixer"));
|
|
8621
|
+
const cssnano_1 = __importDefault(__webpack_require__(/*! cssnano */ "cssnano"));
|
|
8617
8622
|
/* ─── General Utils ──────────────────────────────────────────────────────────────────────────────────────────────── */
|
|
8618
8623
|
const path_1 = __importDefault(__webpack_require__(/*! path */ "path"));
|
|
8619
8624
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
@@ -8647,6 +8652,26 @@ class WebpackConfigGenerator {
|
|
|
8647
8652
|
const willPugLibraryBeBuilt = entryPointsGroupSettings.distributing?.exposingOfExportsFromEntryPoints.mustExpose === true &&
|
|
8648
8653
|
entryPointsGroupSettings.targetRuntime.type === SupportedECMA_ScriptRuntimesTypes.pug;
|
|
8649
8654
|
const distributingSettings = entryPointsGroupSettings.distributing;
|
|
8655
|
+
const postCSS_LoaderSettings = {
|
|
8656
|
+
loader: "postcss-loader",
|
|
8657
|
+
options: {
|
|
8658
|
+
postcssOptions: {
|
|
8659
|
+
plugins: [
|
|
8660
|
+
"postcss-normalize-stylus-compatible-container-query-syntax",
|
|
8661
|
+
autoprefixer_1.default,
|
|
8662
|
+
(0, cssnano_1.default)({
|
|
8663
|
+
preset: [
|
|
8664
|
+
"default",
|
|
8665
|
+
{
|
|
8666
|
+
normalizeWhitespace: !masterConfigRepresentative.mustProvideIncrementalBuilding,
|
|
8667
|
+
discardComments: !masterConfigRepresentative.mustProvideIncrementalBuilding
|
|
8668
|
+
}
|
|
8669
|
+
]
|
|
8670
|
+
})
|
|
8671
|
+
]
|
|
8672
|
+
}
|
|
8673
|
+
}
|
|
8674
|
+
};
|
|
8650
8675
|
return {
|
|
8651
8676
|
name: entryPointsGroupSettings.ID,
|
|
8652
8677
|
/* [ Webpack theory ] In this case, path separators must be operating-system-dependent; otherwise the following
|
|
@@ -8815,7 +8840,7 @@ class WebpackConfigGenerator {
|
|
|
8815
8840
|
},
|
|
8816
8841
|
{
|
|
8817
8842
|
test: /\.ydur\.pug$/u,
|
|
8818
|
-
loader: "
|
|
8843
|
+
loader: "@yamato-daiwa/universal-reactive-webpack-loader"
|
|
8819
8844
|
},
|
|
8820
8845
|
{
|
|
8821
8846
|
loader: "@webdiscus/pug-loader",
|
|
@@ -8855,6 +8880,7 @@ class WebpackConfigGenerator {
|
|
|
8855
8880
|
use: [
|
|
8856
8881
|
"vue-style-loader",
|
|
8857
8882
|
"css-loader",
|
|
8883
|
+
postCSS_LoaderSettings,
|
|
8858
8884
|
"stylus-loader"
|
|
8859
8885
|
]
|
|
8860
8886
|
},
|
|
@@ -8862,6 +8888,7 @@ class WebpackConfigGenerator {
|
|
|
8862
8888
|
use: [
|
|
8863
8889
|
"style-loader",
|
|
8864
8890
|
"css-loader",
|
|
8891
|
+
postCSS_LoaderSettings,
|
|
8865
8892
|
"stylus-loader"
|
|
8866
8893
|
]
|
|
8867
8894
|
}
|
|
@@ -8910,12 +8937,7 @@ class WebpackConfigGenerator {
|
|
|
8910
8937
|
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false
|
|
8911
8938
|
} : null
|
|
8912
8939
|
}),
|
|
8913
|
-
new vue_loader_1.VueLoaderPlugin()
|
|
8914
|
-
new webpackbar_1.default({
|
|
8915
|
-
name: entryPointsGroupSettings.ID,
|
|
8916
|
-
profile: true,
|
|
8917
|
-
fancy: false
|
|
8918
|
-
})
|
|
8940
|
+
new vue_loader_1.VueLoaderPlugin()
|
|
8919
8941
|
],
|
|
8920
8942
|
optimization: {
|
|
8921
8943
|
minimize: !masterConfigRepresentative.mustProvideIncrementalBuilding,
|
|
@@ -11286,13 +11308,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
11286
11308
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
11287
11309
|
const accessibilityInspectorLocalization__english = {
|
|
11288
11310
|
generateFileIsEmptyWarningLog: ({ targetFileRelativePath }) => ({
|
|
11289
|
-
title: "HTML
|
|
11311
|
+
title: "HTML Code Accessibility Inspection Terminated because of Empty File",
|
|
11290
11312
|
description: `File "${targetFileRelativePath}" is empty, no HTML to inspect. ` +
|
|
11291
11313
|
"Please note that at production-like modes the empty HTML files are being considered as invalid."
|
|
11292
11314
|
}),
|
|
11293
11315
|
generateInspectionStartedInfoLog: ({ targetFileRelativePath }) => ({
|
|
11294
|
-
title: "HTML
|
|
11295
|
-
description: `
|
|
11316
|
+
title: "HTML Code Accessibility Inspection Started",
|
|
11317
|
+
description: `Target file: ${targetFileRelativePath}`
|
|
11296
11318
|
}),
|
|
11297
11319
|
inspectionFailedErrorLog: {
|
|
11298
11320
|
title: "HTML conde accessibility checking failed",
|
|
@@ -11302,11 +11324,11 @@ const accessibilityInspectorLocalization__english = {
|
|
|
11302
11324
|
"We believe that you will check the HTML accessibility afterwards and fix the issues if they will be."
|
|
11303
11325
|
},
|
|
11304
11326
|
generateInspectionOfSingleFilesHasFinishedWithNoIssuesFoundSuccessLog: ({ targetFileRelativePath, secondsElapsed }) => ({
|
|
11305
|
-
title: "HTML
|
|
11327
|
+
title: "HTML Code Accessibility Checking of Single File Complete without Issues",
|
|
11306
11328
|
description: `The HTML code in file "${targetFileRelativePath}" has no the accessibility issues.\n` +
|
|
11307
|
-
(0, es_extensions_1.isUndefined)(secondsElapsed) ?
|
|
11308
|
-
|
|
11309
|
-
|
|
11329
|
+
((0, es_extensions_1.isUndefined)(secondsElapsed) ?
|
|
11330
|
+
"(Cached result, no changes in output HTML code since last building)" :
|
|
11331
|
+
`${secondsElapsed} seconds taken.`)
|
|
11310
11332
|
}),
|
|
11311
11333
|
generateIssuesFoundInSingleFileErrorLog: ({ targetFileRelativePath, formattedErrorsAndWarnings }) => ({
|
|
11312
11334
|
title: "HTML accessibility inspection, issue(s) found",
|
|
@@ -15178,10 +15200,8 @@ class StylesProcessor extends GulpStreamsBasedTaskExecutor_1.default {
|
|
|
15178
15200
|
preset: [
|
|
15179
15201
|
"default",
|
|
15180
15202
|
{
|
|
15181
|
-
normalizeWhitespace: !this.projectBuildingMasterConfigRepresentative.
|
|
15182
|
-
|
|
15183
|
-
discardComments: !this.projectBuildingMasterConfigRepresentative.isStaticPreviewBuildingMode &&
|
|
15184
|
-
!this.projectBuildingMasterConfigRepresentative.isLocalDevelopmentBuildingMode
|
|
15203
|
+
normalizeWhitespace: !this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding,
|
|
15204
|
+
discardComments: !this.projectBuildingMasterConfigRepresentative.mustProvideIncrementalBuilding
|
|
15185
15205
|
}
|
|
15186
15206
|
]
|
|
15187
15207
|
})
|
|
@@ -17324,16 +17344,6 @@ module.exports = require("webpack-node-externals");
|
|
|
17324
17344
|
|
|
17325
17345
|
module.exports = require("webpack-stream");
|
|
17326
17346
|
|
|
17327
|
-
/***/ }),
|
|
17328
|
-
|
|
17329
|
-
/***/ "webpackbar":
|
|
17330
|
-
/*!*****************************!*\
|
|
17331
|
-
!*** external "webpackbar" ***!
|
|
17332
|
-
\*****************************/
|
|
17333
|
-
/***/ ((module) => {
|
|
17334
|
-
|
|
17335
|
-
module.exports = require("webpackbar");
|
|
17336
|
-
|
|
17337
17347
|
/***/ })
|
|
17338
17348
|
|
|
17339
17349
|
/******/ });
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Yamato Daiwa Automation 〔YDA〕
|
|
1
|
+
# Yamato Daiwa Automation 〔 YDA 〕
|
|
2
2
|
|
|
3
3
|
The project building tool with declarative YAML configuration based on Gulp and Webpack.
|
|
4
4
|
Specializing on Pug, Stylus and TypeScript as source code languages; also works with images, fonts, videos and audios.
|
|
@@ -17,6 +17,7 @@ npm i @yamato-daiwa/automation -D -E
|
|
|
17
17
|
## Documentation
|
|
18
18
|
|
|
19
19
|
+ [Terminology](https://automation.yamato-daiwa.com/Terminology/Terminology.english.html)
|
|
20
|
+
+ [Console Line Interface](https://automation.yamato-daiwa.com/ConsoleLineInterface/ConsoleLineInterface.english.html)
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
### Functionality
|
|
@@ -28,9 +29,10 @@ npm i @yamato-daiwa/automation -D -E
|
|
|
28
29
|
+ [Resources Pointers Resolving](https://automation.yamato-daiwa.com/Functionality/MarkupProcessing/ResourcesPointersResolving/ResourcesPointersResolving.english.html)
|
|
29
30
|
+ [Localization](https://automation.yamato-daiwa.com/Functionality/MarkupProcessing/Localization/Localization.english.html)
|
|
30
31
|
+ Static Preview
|
|
31
|
-
+ [State Dependent Pages Variations](https://automation.yamato-daiwa.com/Functionality/MarkupProcessing/StaticPreview/StateDependentPagesVariations/StateDependentPagesVariations.english.html)
|
|
32
|
+
+ [State Dependent Pages Variations](https://automation.yamato-daiwa.com/Functionality/MarkupProcessing/StaticPreview/StateDependentPagesVariations/StateDependentPagesVariations.english.html)
|
|
32
33
|
+ [Browser Live Reloading](https://automation.yamato-daiwa.com/Functionality/BrowserLiveReloading/BrowserLiveReloading.english.html)
|
|
33
34
|
+ [Distributable package.json Generating](https://automation.yamato-daiwa.com/Functionality/DistributablePackageJSON_Generating/DistributablePackageJSON_Generating.english.html)
|
|
35
|
+
+ [Docker Integration](https://automation.yamato-daiwa.com/Functionality/DockerIntegration/DockerIntegration.english.html)
|
|
34
36
|
|
|
35
37
|
|
|
36
38
|
### Configuration File
|
|
@@ -40,4 +42,5 @@ npm i @yamato-daiwa/automation -D -E
|
|
|
40
42
|
+ [Styles Processing Settings](https://automation.yamato-daiwa.com/ConfigurationFile/StylesProcessing/StylesProcessingSettings.english.html)
|
|
41
43
|
+ [ECMAScript Logic Processing Settings](https://automation.yamato-daiwa.com/ConfigurationFile/ECMAScriptLogicProcessing/ECMAScriptLogicProcessing.english.html)
|
|
42
44
|
+ [Images Processing Settings](https://automation.yamato-daiwa.com/ConfigurationFile/ImagesProcessing/ImagesProcessingSettings.english.html)
|
|
43
|
-
+ [Browser Live Reloading Settings](https://automation.yamato-daiwa.com/
|
|
45
|
+
+ [Browser Live Reloading Settings](https://automation.yamato-daiwa.com/ConfigurationFile/BrowserLiveReloading/BrowserLiveReloadingSettings.english.html)
|
|
46
|
+
+ [Docker Launching](https://automation.yamato-daiwa.com/ConfigurationFile/DockerLaunching/DockerLaunching.english.html)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.8.0
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -20,22 +20,23 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
23
|
-
"@stylistic/eslint-plugin": "5.
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
25
|
-
"@typescript-eslint/parser": "8.
|
|
23
|
+
"@stylistic/eslint-plugin": "5.4.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "8.46.1",
|
|
25
|
+
"@typescript-eslint/parser": "8.46.1",
|
|
26
26
|
"@vue/compiler-sfc": "3.5.18",
|
|
27
27
|
"@webdiscus/pug-loader": "2.11.1",
|
|
28
28
|
"@yamato-daiwa/es-extensions": "1.8.1",
|
|
29
29
|
"@yamato-daiwa/es-extensions-nodejs": "1.8.1",
|
|
30
|
-
"@yamato-daiwa/style_guides": "0.
|
|
30
|
+
"@yamato-daiwa/style_guides": "0.10.1",
|
|
31
|
+
"@yamato-daiwa/universal-reactive-webpack-loader": "0.0.0",
|
|
31
32
|
"autoprefixer": "10.4.21",
|
|
32
33
|
"browser-sync": "3.0.4",
|
|
33
34
|
"css-loader": "7.1.2",
|
|
34
35
|
"cssnano": "7.1.0",
|
|
35
36
|
"dotenv": "17.2.1",
|
|
36
|
-
"eslint": "9.
|
|
37
|
+
"eslint": "9.38.0",
|
|
37
38
|
"eslint-plugin-import": "2.32.0",
|
|
38
|
-
"eslint-plugin-n": "17.
|
|
39
|
+
"eslint-plugin-n": "17.23.1",
|
|
39
40
|
"eslint-plugin-react": "7.37.5",
|
|
40
41
|
"eslint-plugin-vue": "9.33.0",
|
|
41
42
|
"eslint-plugin-vue-pug": "0.6.2",
|
|
@@ -57,9 +58,10 @@
|
|
|
57
58
|
"node-html-parser": "7.0.1",
|
|
58
59
|
"node-notifier": "10.0.1",
|
|
59
60
|
"pa11y": "9.0.0",
|
|
61
|
+
"postcss-loader": "8.2.0",
|
|
62
|
+
"postcss-normalize-stylus-compatible-container-query-syntax": "1.0.0",
|
|
60
63
|
"probe-image-size": "7.2.3",
|
|
61
64
|
"pug-lint": "2.7.0",
|
|
62
|
-
"pug3-ast-loader": "0.0.0",
|
|
63
65
|
"puppeteer": "24.10.0",
|
|
64
66
|
"require-from-string": "2.0.2",
|
|
65
67
|
"rev-hash": "4.1.0",
|
|
@@ -77,7 +79,6 @@
|
|
|
77
79
|
"webpack": "5.101.0",
|
|
78
80
|
"webpack-node-externals": "3.0.0",
|
|
79
81
|
"webpack-stream": "7.0.0",
|
|
80
|
-
"webpackbar": "7.0.0",
|
|
81
82
|
"worker-loader": "3.0.8",
|
|
82
83
|
"yaml-loader": "0.8.1"
|
|
83
84
|
},
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"@types/webpack-stream": "3.2.15",
|
|
105
106
|
"eslint-webpack-plugin": "4.2.0",
|
|
106
107
|
"ts-node": "10.9.2",
|
|
107
|
-
"typescript": "5.9.
|
|
108
|
+
"typescript": "5.9.3",
|
|
108
109
|
"webpack-cli": "6.0.1"
|
|
109
110
|
},
|
|
110
111
|
"scripts": {
|