@yamato-daiwa/automation 0.5.0 → 0.6.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 +1686 -734
- package/README.md +11 -182
- package/package.json +27 -26
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# Yamato Daiwa Automation 〔YDA〕
|
|
2
2
|
|
|
3
3
|
The project building tool with declarative YAML configuration based on Gulp and Webpack.
|
|
4
|
-
Specializing on Pug, Stylus and TypeScript as source code languages; also works with images, fonts, videos and audios.
|
|
4
|
+
Specializing on Pug, Stylus and TypeScript as source code languages; also works with images, fonts, videos and audios.
|
|
5
|
+
Could be used for development of websites, web applications, console utilities and libraries.
|
|
5
6
|
|
|
6
7
|

|
|
7
8
|
|
|
8
|
-
[📖 Documentation](https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/blob/master/README.md)
|
|
9
|
-
|
|
10
9
|
|
|
11
10
|
## Installation
|
|
12
11
|
|
|
@@ -15,183 +14,13 @@ npm i @yamato-daiwa/automation -D -E
|
|
|
15
14
|
```
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
<dl>
|
|
21
|
-
|
|
22
|
-
<dt>@vue/compiler-sfc, vue-loader</dt>
|
|
23
|
-
<dd>Used to provide the support of Vue Single File Components for ECMAScript logic processing</dd>
|
|
24
|
-
|
|
25
|
-
<dt>@webdiscus/pug-loader</dt>
|
|
26
|
-
<dd>
|
|
27
|
-
Used to provide the bundling of the Pug code to output JavaScript code by Webpack.
|
|
28
|
-
The better alternative of **pug-html-loader** because last one has multiple high and critical vulnerabilities
|
|
29
|
-
(at least it was so for the February 2023).
|
|
30
|
-
</dd>
|
|
31
|
-
|
|
32
|
-
<dt>@yamato-daiwa/es-extensions, @yamato-daiwa/es-extensions-nodejs</dt>
|
|
33
|
-
<dd>Used to reduce the routine code</dd>
|
|
34
|
-
|
|
35
|
-
<dt>@yamato-daiwa/style_guides</dt>
|
|
36
|
-
<dd>The code style guides to which this project obeying and also suggested for the consuming project</dd>
|
|
37
|
-
|
|
38
|
-
<dt>autoprefixer</dt>
|
|
39
|
-
<dd>Used for adding of the vendor prefixes to CSS properties in processed stylesheets the better cross-browser adaptations</dd>
|
|
40
|
-
|
|
41
|
-
<dt>browser-sync</dt>
|
|
42
|
-
<dd>Used to provide the automation of browser opening and reloading when project incrementally rebuilt</dd>
|
|
43
|
-
|
|
44
|
-
<dt>css-loader</dt>
|
|
45
|
-
<dd>Used to provide the imports of stylesheets to ECMAScript bundles</dd>
|
|
46
|
-
|
|
47
|
-
<dt>cssnano</dt>
|
|
48
|
-
<dd>Used to provide optimization and minification of compiled CSS code</dd>
|
|
49
|
-
|
|
50
|
-
<dt>fork-ts-checker-webpack-plugin</dt>
|
|
51
|
-
<dd>Used to improve the performance of TypeScript transpiling functionality</dd>
|
|
52
|
-
|
|
53
|
-
<dt>gulp</dt>
|
|
54
|
-
<dd>Used as main task manager, the tool for providing of arranging of the tasks to sequences and series and running them</dd>
|
|
55
|
-
|
|
56
|
-
<dt>gulp-data</dt>
|
|
57
|
-
<dd>Used to provide the global variables defined by user in appropriate configuration inside the Pug templates</dd>
|
|
58
|
-
|
|
59
|
-
<dt>gulp-html-prettify</dt>
|
|
60
|
-
<dd>Used to provide the formatting of output HTML code better than suggested by Pug pre-processor</dd>
|
|
61
|
-
|
|
62
|
-
<dt>gulp-if</dt>
|
|
63
|
-
<dd>Used for providing of conditional processing according to various settings</dd>
|
|
64
|
-
|
|
65
|
-
<dt>gulp-imagemin</dt>
|
|
66
|
-
<dd>Used to provide the automation of images files optimization</dd>
|
|
67
|
-
|
|
68
|
-
<dt>gulp-plumber</dt>
|
|
69
|
-
<dd>Used for errors handing inside Gulp pipelines</dd>
|
|
70
|
-
|
|
71
|
-
<dt>gulp-postcss</dt>
|
|
72
|
-
<dd>Used to provide the post-processing of CSS code with PostCSS plugins</dd>
|
|
73
|
-
|
|
74
|
-
<dt>gulp-pug</dt>
|
|
75
|
-
<dd>Used to provide the basic Pug-to-HTML transpiling</dd>
|
|
76
|
-
|
|
77
|
-
<dt>gulp-stylus</dt>
|
|
78
|
-
<dd>Used to provide the basic Stylus-to-CSS transpiling</dd>
|
|
79
|
-
|
|
80
|
-
<dt>imagemin-pngquant</dt>
|
|
81
|
-
<dd>Used to provides the optimization of PNG files</dd>
|
|
82
|
-
|
|
83
|
-
<dt>json5-loader</dt>
|
|
84
|
-
<dd>Used to provide the imports of JSON5 as ECMAScript native object to JavaScript bundle</dd>
|
|
85
|
-
|
|
86
|
-
<dt>node-html-parser</dt>
|
|
87
|
-
<dd>Used for the accessibility inspection of the HTML code</dd>
|
|
88
|
-
|
|
89
|
-
<dt>node-notifier</dt>
|
|
90
|
-
<dd>Used for accessing to native toast message functionality</dd>
|
|
91
|
-
|
|
92
|
-
<dt>pa11y</dt>
|
|
93
|
-
<dd>Used for manipulation with compiled HTML code like resolving of paths aliases</dd>
|
|
94
|
-
|
|
95
|
-
<dt>probe-image-size</dt>
|
|
96
|
-
<dd>Used for retrieving of the images with and height.</dd>
|
|
97
|
-
|
|
98
|
-
<dt>pug-lint</dt>
|
|
99
|
-
<dd>Used to providing linting of Pug source code</dd>
|
|
100
|
-
|
|
101
|
-
<dt>puppeteer</dt>
|
|
102
|
-
<dd>
|
|
103
|
-
Used for the accessibility inspection of the HTML code.
|
|
104
|
-
The <b>pa11y</b> works only with URIs and does not support the raw HTML code; to check the accessibility of the
|
|
105
|
-
raw HTML code, the <b>puppeteer</b> is required.
|
|
106
|
-
</dd>
|
|
107
|
-
|
|
108
|
-
<dt>rev-hash</dt>
|
|
109
|
-
<dd>
|
|
110
|
-
Used for generating of file content dependent postfixes to prevent the outdated stylesheets, scripts etc.
|
|
111
|
-
because of browser caching (thus actual for the Browser runtime only).
|
|
112
|
-
</dd>
|
|
113
|
-
|
|
114
|
-
<dt>stlint</dt>
|
|
115
|
-
<dd>Used for linting of styles written by Stylus. The formatted output to terminal has been implemented by YDA development side.</dd>
|
|
116
|
-
|
|
117
|
-
<dt>stream-combiner2</dt>
|
|
118
|
-
<dd>Used for creating of Gulp tasks with complicated conditionals and parallels.</dd>
|
|
119
|
-
|
|
120
|
-
<dt>style-loader</dt>
|
|
121
|
-
<dd>Used to provide the dynamic injection of CSS functionality which has been imported to JavaScript bundle built by Webpack</dd>
|
|
122
|
-
|
|
123
|
-
<dt>stylus-loader</dt>
|
|
124
|
-
<dd>
|
|
125
|
-
Used to provide the dynamic loading of CSS witten by Stylus pre-processor which has been imported to JavaScript
|
|
126
|
-
bundle built by Webpack
|
|
127
|
-
</dd>
|
|
128
|
-
|
|
129
|
-
<dt>ts-loader</dt>
|
|
130
|
-
<dd>Used to provide the integration of TypeScript and Webpack</dd>
|
|
131
|
-
|
|
132
|
-
<dt>vinyl</dt>
|
|
133
|
-
<dd>
|
|
134
|
-
Used to create new Gulp plugins.
|
|
135
|
-
Although this package is being installed indirectly, the importing of this package without manual installing will cause
|
|
136
|
-
"node/no-extraneous-import" ESLint issue and there is no reason to mute it.
|
|
137
|
-
</dd>
|
|
138
|
-
|
|
139
|
-
<dt>vue-style-loader</dt>
|
|
140
|
-
<dd>Used to provide the dynamical loading of CSS written in Vue Single File Components to HTML document</dd>
|
|
141
|
-
|
|
142
|
-
<dt>vue-tcs</dt>
|
|
143
|
-
<dd>Used to provide the optimized type checking of Vue and also TypeScript files.</dd>
|
|
144
|
-
|
|
145
|
-
<dt>w3c-html-validator</dt>
|
|
146
|
-
<dd>Used to get the HTML validation data from W3C service. The formatted output to terminal has been implemented by YDA development side.</dd>
|
|
147
|
-
|
|
148
|
-
<dt>webpack</dt>
|
|
149
|
-
<dd>Used as basic tool for the ECMAScript logic processing</dd>
|
|
150
|
-
|
|
151
|
-
<dt>webpack-node-externals</dt>
|
|
152
|
-
<dd>
|
|
153
|
-
Used to prevent the bundling of NodeJS modules by Webpack because this bundling brings a lot of warning and/or errors
|
|
154
|
-
while not required for console and server applications
|
|
155
|
-
</dd>
|
|
156
|
-
|
|
157
|
-
<dt>webpack-stream</dt>
|
|
158
|
-
<dd>
|
|
159
|
-
Used only for the generating of Pug files with integrated JavaScript compiled from TypeScript.
|
|
160
|
-
For this subtask, <b>webpack-stream</b> is perfect, but it has many limitations so it is not being used for the
|
|
161
|
-
main processing of ECMAScript logic.
|
|
162
|
-
</dd>
|
|
163
|
-
|
|
164
|
-
<dt>webpack-node-externals</dt>
|
|
165
|
-
<dd>
|
|
166
|
-
Used to prevent the bundling of NodeJS modules by Webpack because this bundling brings a lot of warning and/or errors
|
|
167
|
-
while not required for console and server applications
|
|
168
|
-
</dd>
|
|
169
|
-
|
|
170
|
-
<dt>yaml-loader</dt>
|
|
171
|
-
<dd>Used to provide the import of content of YAML files converted to JavaScript native object</dd>
|
|
172
|
-
|
|
173
|
-
</dl>
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### For development needs only
|
|
177
|
-
|
|
178
|
-
All **@types** are the TypeScript types definitions that required for normal transpiling of the TypeScript to JavaScript (Node.js).
|
|
179
|
-
|
|
180
|
-
<dl>
|
|
181
|
-
|
|
182
|
-
<dt>eslint-webpack-plugin</dt>
|
|
183
|
-
<dd>
|
|
184
|
-
Required for the outputting of ESLint error only on building of YDA application.
|
|
185
|
-
YDA itself uses own ESLint wrapper for better performance.
|
|
186
|
-
</dd>
|
|
187
|
-
|
|
188
|
-
<dt>ts-node</dt>
|
|
189
|
-
<dd>Used to support the Webpack configuration written by TypeScript</dd>
|
|
190
|
-
|
|
191
|
-
<dt>typescript</dt>
|
|
192
|
-
<dd>Used to provide the TypeScript as source code language</dd>
|
|
193
|
-
|
|
194
|
-
<dt>webpack-cli</dt>
|
|
195
|
-
<dd>Used for the project building</dd>
|
|
17
|
+
## Documentation
|
|
196
18
|
|
|
197
|
-
|
|
19
|
+
+ [Terminology](https://automation.yamato-daiwa.com/Terminology/Terminology.english.html)
|
|
20
|
+
+ Functionality
|
|
21
|
+
+ Markup Processing
|
|
22
|
+
+ [Resources References Resolution](https://automation.yamato-daiwa.com/Functionality/MarkupProcessing/ResourcesPointersResolving/ResourcesPointersResolving.english.html)
|
|
23
|
+
+ Configuration File
|
|
24
|
+
+ [Common Settings](https://automation.yamato-daiwa.com/ConfigurationFile/Common/CommonSettings.english.html)
|
|
25
|
+
+ [Markup Processing Configuration](https://automation.yamato-daiwa.com/ConfigurationFile/MarkupProcessing/MarkupProcessingSettings.english.html)
|
|
26
|
+
+ [Styles Processing Configuration](https://automation.yamato-daiwa.com/ConfigurationFile/StylesProcessing/StylesProcessingSettings.english.html)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yamato-daiwa/automation",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.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,28 +20,28 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
|
|
23
|
-
"@stylistic/eslint-plugin": "
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
25
|
-
"@typescript-eslint/parser": "8.
|
|
26
|
-
"@vue/compiler-sfc": "3.5.
|
|
27
|
-
"@webdiscus/pug-loader": "2.11.
|
|
28
|
-
"@yamato-daiwa/es-extensions": "1.8.0-alpha.
|
|
29
|
-
"@yamato-daiwa/es-extensions-nodejs": "1.8.0-alpha.
|
|
30
|
-
"@yamato-daiwa/style_guides": "0.
|
|
23
|
+
"@stylistic/eslint-plugin": "3.1.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "8.25.0",
|
|
25
|
+
"@typescript-eslint/parser": "8.25.0",
|
|
26
|
+
"@vue/compiler-sfc": "3.5.13",
|
|
27
|
+
"@webdiscus/pug-loader": "2.11.1",
|
|
28
|
+
"@yamato-daiwa/es-extensions": "1.8.0-alpha.9",
|
|
29
|
+
"@yamato-daiwa/es-extensions-nodejs": "1.8.0-alpha.9",
|
|
30
|
+
"@yamato-daiwa/style_guides": "0.6.4",
|
|
31
31
|
"autoprefixer": "10.4.20",
|
|
32
32
|
"browser-sync": "3.0.3",
|
|
33
33
|
"css-loader": "7.1.2",
|
|
34
34
|
"cssnano": "7.0.6",
|
|
35
|
-
"
|
|
35
|
+
"dotenv": "16.4.7",
|
|
36
|
+
"eslint": "9.21.0",
|
|
36
37
|
"eslint-plugin-import": "2.31.0",
|
|
37
|
-
"eslint-plugin-n": "17.
|
|
38
|
-
"eslint-plugin-react": "7.37.
|
|
39
|
-
"eslint-plugin-vue": "9.
|
|
38
|
+
"eslint-plugin-n": "17.15.1",
|
|
39
|
+
"eslint-plugin-react": "7.37.4",
|
|
40
|
+
"eslint-plugin-vue": "9.32.0",
|
|
40
41
|
"eslint-plugin-vue-pug": "0.6.2",
|
|
41
42
|
"fork-ts-checker-webpack-plugin": "7.3.0",
|
|
42
43
|
"gulp": "4.0.2",
|
|
43
44
|
"gulp-data": "1.3.1",
|
|
44
|
-
"gulp-html-prettify": "0.0.1",
|
|
45
45
|
"gulp-if": "3.0.0",
|
|
46
46
|
"gulp-imagemin": "7.1.0",
|
|
47
47
|
"gulp-nodemon": "2.5.0",
|
|
@@ -51,13 +51,14 @@
|
|
|
51
51
|
"gulp-sourcemaps": "3.0.0",
|
|
52
52
|
"gulp-stylus": "3.0.1",
|
|
53
53
|
"imagemin-pngquant": "9.0.2",
|
|
54
|
+
"js-beautify": "1.15.4",
|
|
54
55
|
"json5-loader": "4.0.1",
|
|
55
56
|
"node-html-parser": "6.1.13",
|
|
56
57
|
"node-notifier": "10.0.1",
|
|
57
58
|
"pa11y": "8.0.0",
|
|
58
59
|
"probe-image-size": "7.2.3",
|
|
59
|
-
"pug3-ast-loader": "0.0.0",
|
|
60
60
|
"pug-lint": "2.7.0",
|
|
61
|
+
"pug3-ast-loader": "0.0.0",
|
|
61
62
|
"puppeteer": "22.10.0",
|
|
62
63
|
"rev-hash": "4.1.0",
|
|
63
64
|
"stlint": "1.0.65",
|
|
@@ -65,12 +66,12 @@
|
|
|
65
66
|
"style-loader": "4.0.0",
|
|
66
67
|
"stylus": "0.63.0",
|
|
67
68
|
"stylus-loader": "8.1.1",
|
|
68
|
-
"ts-loader": "9.5.
|
|
69
|
+
"ts-loader": "9.5.2",
|
|
69
70
|
"vinyl": "2.2.1",
|
|
70
71
|
"vue-loader": "17.4.2",
|
|
71
72
|
"vue-style-loader": "4.1.3",
|
|
72
|
-
"w3c-html-validator": "
|
|
73
|
-
"webpack": "5.
|
|
73
|
+
"w3c-html-validator": "1.8.2",
|
|
74
|
+
"webpack": "5.98.0",
|
|
74
75
|
"webpack-node-externals": "3.0.0",
|
|
75
76
|
"webpack-stream": "7.0.0",
|
|
76
77
|
"worker-loader": "3.0.8",
|
|
@@ -80,7 +81,6 @@
|
|
|
80
81
|
"@types/browser-sync": "2.29.0",
|
|
81
82
|
"@types/cssnano": "5.0.0",
|
|
82
83
|
"@types/gulp": "4.0.17",
|
|
83
|
-
"@types/gulp-html-prettify": "0.0.5",
|
|
84
84
|
"@types/gulp-if": "3.0.4",
|
|
85
85
|
"@types/gulp-imagemin": "7.0.3",
|
|
86
86
|
"@types/gulp-nodemon": "0.0.37",
|
|
@@ -88,7 +88,8 @@
|
|
|
88
88
|
"@types/gulp-postcss": "8.0.6",
|
|
89
89
|
"@types/gulp-sourcemaps": "0.0.38",
|
|
90
90
|
"@types/gulp-stylus": "2.7.8",
|
|
91
|
-
"@types/
|
|
91
|
+
"@types/js-beautify": "1.14.3",
|
|
92
|
+
"@types/node": "22.13.7",
|
|
92
93
|
"@types/node-notifier": "8.0.5",
|
|
93
94
|
"@types/pa11y": "5.3.7",
|
|
94
95
|
"@types/probe-image-size": "7.2.5",
|
|
@@ -97,20 +98,20 @@
|
|
|
97
98
|
"@types/webpack-stream": "3.2.15",
|
|
98
99
|
"eslint-webpack-plugin": "4.2.0",
|
|
99
100
|
"ts-node": "10.9.2",
|
|
100
|
-
"typescript": "5.
|
|
101
|
-
"webpack-cli": "
|
|
101
|
+
"typescript": "5.7.3",
|
|
102
|
+
"webpack-cli": "6.0.1"
|
|
102
103
|
},
|
|
103
104
|
"scripts": {
|
|
104
|
-
"Incremental
|
|
105
|
-
"Production
|
|
106
|
-
"Linting": "eslint Source"
|
|
107
|
-
"Tree diagram of source files generating": "tree Source /f"
|
|
105
|
+
"Incremental Development Building": "webpack --mode development",
|
|
106
|
+
"Production Building": "webpack --mode production",
|
|
107
|
+
"Linting": "eslint Source"
|
|
108
108
|
},
|
|
109
109
|
"license": "MIT",
|
|
110
110
|
"repository": {
|
|
111
111
|
"type": "git",
|
|
112
112
|
"url": "git+https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation.git"
|
|
113
113
|
},
|
|
114
|
+
"homepage": "https://automation.yamato-daiwa.com/",
|
|
114
115
|
"bugs": {
|
|
115
116
|
"url": "https://github.com/TokugawaTakeshi/Yamato-Daiwa-Automation/issues",
|
|
116
117
|
"email": "tokugawa.takesi@gmail.com"
|