@yamato-daiwa/automation 0.7.0 → 0.8.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 +87 -10
- package/package.json +8 -8
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.
|
|
37
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@yamato-daiwa/automation","version":"0.8.0-alpha.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.2.3","@typescript-eslint/eslint-plugin":"8.39.0","@typescript-eslint/parser":"8.39.0","@vue/compiler-sfc":"3.5.18","@webdiscus/pug-loader":"2.11.1","@yamato-daiwa/es-extensions":"1.8.0-rc.1","@yamato-daiwa/es-extensions-nodejs":"1.8.0-rc.1","@yamato-daiwa/style_guides":"0.9.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.33.0","eslint-plugin-import":"2.32.0","eslint-plugin-n":"17.21.3","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","probe-image-size":"7.2.3","pug-lint":"2.7.0","pug3-ast-loader":"0.0.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.2","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
|
|
|
@@ -6465,6 +6465,39 @@ class ECMA_ScriptLogicProcessingRawSettingsNormalizer extends SourceCodeProcessi
|
|
|
6465
6465
|
type: SupportedECMA_ScriptRuntimesTypes.pug
|
|
6466
6466
|
};
|
|
6467
6467
|
}
|
|
6468
|
+
case SupportedECMA_ScriptRuntimesTypes.electronMainProcess: {
|
|
6469
|
+
return {
|
|
6470
|
+
type: SupportedECMA_ScriptRuntimesTypes.electronMainProcess,
|
|
6471
|
+
minimalVersion: {
|
|
6472
|
+
major: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.major,
|
|
6473
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor) ? {
|
|
6474
|
+
minor: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor
|
|
6475
|
+
} : null
|
|
6476
|
+
}
|
|
6477
|
+
};
|
|
6478
|
+
}
|
|
6479
|
+
case SupportedECMA_ScriptRuntimesTypes.electronRendererProcess: {
|
|
6480
|
+
return {
|
|
6481
|
+
type: SupportedECMA_ScriptRuntimesTypes.electronRendererProcess,
|
|
6482
|
+
minimalVersion: {
|
|
6483
|
+
major: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.major,
|
|
6484
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor) ? {
|
|
6485
|
+
minor: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor
|
|
6486
|
+
} : null
|
|
6487
|
+
}
|
|
6488
|
+
};
|
|
6489
|
+
}
|
|
6490
|
+
case SupportedECMA_ScriptRuntimesTypes.electronPreload: {
|
|
6491
|
+
return {
|
|
6492
|
+
type: SupportedECMA_ScriptRuntimesTypes.electronPreload,
|
|
6493
|
+
minimalVersion: {
|
|
6494
|
+
major: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.major,
|
|
6495
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor) ? {
|
|
6496
|
+
minor: entryPointsGroupSettings__rawValid.targetRuntime.minimalVersion.minor
|
|
6497
|
+
} : null
|
|
6498
|
+
}
|
|
6499
|
+
};
|
|
6500
|
+
}
|
|
6468
6501
|
}
|
|
6469
6502
|
})(),
|
|
6470
6503
|
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings__rawValid.
|
|
@@ -6587,6 +6620,9 @@ var ECMA_ScriptLogicProcessingRestrictions;
|
|
|
6587
6620
|
SupportedECMA_ScriptRuntimesTypes["webWorker"] = "WEB_WORKER";
|
|
6588
6621
|
SupportedECMA_ScriptRuntimesTypes["nodeJS"] = "NODEJS";
|
|
6589
6622
|
SupportedECMA_ScriptRuntimesTypes["pug"] = "PUG";
|
|
6623
|
+
SupportedECMA_ScriptRuntimesTypes["electronMainProcess"] = "ELECTRON_MAIN_PROCESS";
|
|
6624
|
+
SupportedECMA_ScriptRuntimesTypes["electronRendererProcess"] = "ELECTRON_RENDERER_PROCESS";
|
|
6625
|
+
SupportedECMA_ScriptRuntimesTypes["electronPreload"] = "ELECTRON_PRELOAD";
|
|
6590
6626
|
})(SupportedECMA_ScriptRuntimesTypes = ECMA_ScriptLogicProcessingRestrictions.SupportedECMA_ScriptRuntimesTypes || (ECMA_ScriptLogicProcessingRestrictions.SupportedECMA_ScriptRuntimesTypes = {}));
|
|
6591
6627
|
})(ECMA_ScriptLogicProcessingRestrictions || (ECMA_ScriptLogicProcessingRestrictions = {}));
|
|
6592
6628
|
exports["default"] = ECMA_ScriptLogicProcessingRestrictions;
|
|
@@ -6755,8 +6791,16 @@ var ECMA_ScriptLogicProcessingSettings__FromFile__RawValid;
|
|
|
6755
6791
|
newName: "minimalVersion",
|
|
6756
6792
|
type: Object,
|
|
6757
6793
|
undefinedForbiddenIf: {
|
|
6758
|
-
predicate: (runtimeConfig) =>
|
|
6759
|
-
|
|
6794
|
+
predicate: (runtimeConfig) => [
|
|
6795
|
+
SupportedECMA_ScriptRuntimesTypes.nodeJS,
|
|
6796
|
+
SupportedECMA_ScriptRuntimesTypes.electronMainProcess,
|
|
6797
|
+
SupportedECMA_ScriptRuntimesTypes.electronRendererProcess,
|
|
6798
|
+
SupportedECMA_ScriptRuntimesTypes.electronPreload
|
|
6799
|
+
/* eslint-disable-next-line @typescript-eslint/consistent-type-assertions --
|
|
6800
|
+
* Even `runtimeConfig.type` is `undefined` or `null` it still can be safely compared with elements
|
|
6801
|
+
* of enumeration. */
|
|
6802
|
+
].includes(runtimeConfig.type),
|
|
6803
|
+
descriptionForLogging: "Target runtime is NodeJS or Electron-like"
|
|
6760
6804
|
},
|
|
6761
6805
|
isNullForbidden: true,
|
|
6762
6806
|
properties: {
|
|
@@ -7978,7 +8022,7 @@ const webpack_node_externals_1 = __importDefault(__webpack_require__(/*! webpack
|
|
|
7978
8022
|
const path_1 = __importDefault(__webpack_require__(/*! path */ "path"));
|
|
7979
8023
|
const es_extensions_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions */ "@yamato-daiwa/es-extensions");
|
|
7980
8024
|
const es_extensions_nodejs_1 = __webpack_require__(/*! @yamato-daiwa/es-extensions-nodejs */ "@yamato-daiwa/es-extensions-nodejs");
|
|
7981
|
-
/* [ Approach ] Because of serious performance impact, the file watching has been delegated to external watcher. */
|
|
8025
|
+
/* [ Approach ] Because of the serious performance impact, the file watching has been delegated to an external watcher. */
|
|
7982
8026
|
class WebpackConfigGenerator {
|
|
7983
8027
|
static cachedTypeScriptConfigurations = {};
|
|
7984
8028
|
/* [ Approach ] Although the parameter is excessive, its properties are been pre-computed externally for other needs,
|
|
@@ -8009,8 +8053,9 @@ class WebpackConfigGenerator {
|
|
|
8009
8053
|
const distributingSettings = entryPointsGroupSettings.distributing;
|
|
8010
8054
|
return {
|
|
8011
8055
|
name: entryPointsGroupSettings.ID,
|
|
8012
|
-
/* [ Webpack theory ] In this case, path separators must be operating
|
|
8013
|
-
* will be thrown: `configuration[0].context: The provided value "D:/OSPanel/../01_Open" is not an
|
|
8056
|
+
/* [ Webpack theory ] In this case, path separators must be operating-system-dependent; otherwise the following
|
|
8057
|
+
* error will be thrown: `configuration[0].context: The provided value "D:/OSPanel/../01_Open" is not an
|
|
8058
|
+
* absolute path!` */
|
|
8014
8059
|
context: path_1.default.normalize(sourceFilesTopDirectoryAbsolutePath),
|
|
8015
8060
|
/* [ Reference ] https://webpack.js.org/configuration/target/ */
|
|
8016
8061
|
target: (() => {
|
|
@@ -8023,8 +8068,35 @@ class WebpackConfigGenerator {
|
|
|
8023
8068
|
return "webworker";
|
|
8024
8069
|
}
|
|
8025
8070
|
case SupportedECMA_ScriptRuntimesTypes.nodeJS: {
|
|
8026
|
-
return
|
|
8027
|
-
|
|
8071
|
+
return [
|
|
8072
|
+
`node${entryPointsGroupSettings.targetRuntime.minimalVersion.major}`,
|
|
8073
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings.targetRuntime.minimalVersion.minor) ?
|
|
8074
|
+
[`.${entryPointsGroupSettings.targetRuntime.minimalVersion.minor}`] : []
|
|
8075
|
+
];
|
|
8076
|
+
}
|
|
8077
|
+
case SupportedECMA_ScriptRuntimesTypes.electronMainProcess: {
|
|
8078
|
+
return [
|
|
8079
|
+
`electron${entryPointsGroupSettings.targetRuntime.minimalVersion.major}`,
|
|
8080
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings.targetRuntime.minimalVersion.minor) ?
|
|
8081
|
+
[`.${entryPointsGroupSettings.targetRuntime.minimalVersion.minor}`] : [],
|
|
8082
|
+
"-main"
|
|
8083
|
+
].join("");
|
|
8084
|
+
}
|
|
8085
|
+
case SupportedECMA_ScriptRuntimesTypes.electronRendererProcess: {
|
|
8086
|
+
return [
|
|
8087
|
+
`electron${entryPointsGroupSettings.targetRuntime.minimalVersion.major}`,
|
|
8088
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings.targetRuntime.minimalVersion.minor) ?
|
|
8089
|
+
[`.${entryPointsGroupSettings.targetRuntime.minimalVersion.minor}`] : [],
|
|
8090
|
+
"-renderer"
|
|
8091
|
+
].join("");
|
|
8092
|
+
}
|
|
8093
|
+
case SupportedECMA_ScriptRuntimesTypes.electronPreload: {
|
|
8094
|
+
return [
|
|
8095
|
+
`electron${entryPointsGroupSettings.targetRuntime.minimalVersion.major}`,
|
|
8096
|
+
...(0, es_extensions_1.isNotUndefined)(entryPointsGroupSettings.targetRuntime.minimalVersion.minor) ?
|
|
8097
|
+
[`.${entryPointsGroupSettings.targetRuntime.minimalVersion.minor}`] : [],
|
|
8098
|
+
"-preload"
|
|
8099
|
+
].join("");
|
|
8028
8100
|
}
|
|
8029
8101
|
}
|
|
8030
8102
|
})(),
|
|
@@ -8045,10 +8117,15 @@ class WebpackConfigGenerator {
|
|
|
8045
8117
|
type: (() => {
|
|
8046
8118
|
switch (entryPointsGroupSettings.targetRuntime.type) {
|
|
8047
8119
|
case SupportedECMA_ScriptRuntimesTypes.browser:
|
|
8120
|
+
case SupportedECMA_ScriptRuntimesTypes.electronRendererProcess:
|
|
8121
|
+
case SupportedECMA_ScriptRuntimesTypes.electronPreload:
|
|
8048
8122
|
return entryPointsGroupSettings.distributing.exposingOfExportsFromEntryPoints.mustAssignToWindowObject ?
|
|
8049
8123
|
"window" : "module";
|
|
8050
|
-
case SupportedECMA_ScriptRuntimesTypes.nodeJS:
|
|
8051
|
-
case SupportedECMA_ScriptRuntimesTypes.
|
|
8124
|
+
case SupportedECMA_ScriptRuntimesTypes.nodeJS:
|
|
8125
|
+
case SupportedECMA_ScriptRuntimesTypes.electronMainProcess:
|
|
8126
|
+
return "commonjs";
|
|
8127
|
+
case SupportedECMA_ScriptRuntimesTypes.pug:
|
|
8128
|
+
return "umd";
|
|
8052
8129
|
case SupportedECMA_ScriptRuntimesTypes.webWorker: {
|
|
8053
8130
|
es_extensions_1.Logger.throwErrorAndLog({
|
|
8054
8131
|
errorInstance: new es_extensions_1.UnexpectedEventError("The web worker could not be the library, while the computing of 'output.library.type' has been " +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.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",
|
|
@@ -20,20 +20,20 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
23
|
-
"@stylistic/eslint-plugin": "5.2.
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
25
|
-
"@typescript-eslint/parser": "8.
|
|
23
|
+
"@stylistic/eslint-plugin": "5.2.3",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "8.39.0",
|
|
25
|
+
"@typescript-eslint/parser": "8.39.0",
|
|
26
26
|
"@vue/compiler-sfc": "3.5.18",
|
|
27
27
|
"@webdiscus/pug-loader": "2.11.1",
|
|
28
28
|
"@yamato-daiwa/es-extensions": "1.8.0-rc.1",
|
|
29
29
|
"@yamato-daiwa/es-extensions-nodejs": "1.8.0-rc.1",
|
|
30
|
-
"@yamato-daiwa/style_guides": "0.
|
|
30
|
+
"@yamato-daiwa/style_guides": "0.9.0",
|
|
31
31
|
"autoprefixer": "10.4.21",
|
|
32
32
|
"browser-sync": "3.0.4",
|
|
33
33
|
"css-loader": "7.1.2",
|
|
34
34
|
"cssnano": "7.1.0",
|
|
35
|
-
"dotenv": "
|
|
36
|
-
"eslint": "9.
|
|
35
|
+
"dotenv": "17.2.1",
|
|
36
|
+
"eslint": "9.33.0",
|
|
37
37
|
"eslint-plugin-import": "2.32.0",
|
|
38
38
|
"eslint-plugin-n": "17.21.3",
|
|
39
39
|
"eslint-plugin-react": "7.37.5",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"@types/webpack-stream": "3.2.15",
|
|
104
104
|
"eslint-webpack-plugin": "4.2.0",
|
|
105
105
|
"ts-node": "10.9.2",
|
|
106
|
-
"typescript": "5.
|
|
106
|
+
"typescript": "5.9.2",
|
|
107
107
|
"webpack-cli": "6.0.1"
|
|
108
108
|
},
|
|
109
109
|
"scripts": {
|