@sumotto/configs 0.0.11 → 0.0.13
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/package.json +5 -6
- package/wp/webpack.theme.config.js +11 -86
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumotto/configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Configs for my work",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "np --yolo"
|
|
@@ -19,23 +19,22 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://github.com/SumoTTo/configs#readme",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"np": "^10.0.
|
|
22
|
+
"np": "^10.0.6"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"helpers/*",
|
|
26
26
|
"wp/*"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@wordpress/scripts": "^
|
|
29
|
+
"@wordpress/scripts": "^28.1.0",
|
|
30
30
|
"clean-webpack-plugin": "^4.0.0",
|
|
31
31
|
"copy-webpack-plugin": "^12.0.2",
|
|
32
32
|
"dotenv": "^16.4.5",
|
|
33
33
|
"find-free-port-sync": "^1.0.0",
|
|
34
|
-
"glob": "^10.4.
|
|
35
|
-
"image-minimizer-webpack-plugin": "^4.0.
|
|
34
|
+
"glob": "^10.4.2",
|
|
35
|
+
"image-minimizer-webpack-plugin": "^4.0.2",
|
|
36
36
|
"mini-css-extract-plugin": "^2.9.0",
|
|
37
37
|
"rtlcss-webpack-plugin": "^4.0.7",
|
|
38
|
-
"sharp": "^0.33.4",
|
|
39
38
|
"svgo": "^3.3.2",
|
|
40
39
|
"webpack-remove-empty-scripts": "^1.0.4"
|
|
41
40
|
},
|
|
@@ -58,25 +58,21 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
|
|
|
58
58
|
from: 'src/fonts',
|
|
59
59
|
to: 'fonts',
|
|
60
60
|
noErrorOnMissing: true,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
from: 'src/images',
|
|
64
|
+
to: 'images',
|
|
65
|
+
noErrorOnMissing: true,
|
|
64
66
|
},
|
|
65
67
|
{
|
|
66
68
|
from: 'src/social-icons',
|
|
67
69
|
to: 'social-icons',
|
|
68
70
|
noErrorOnMissing: true,
|
|
69
|
-
globOptions: {
|
|
70
|
-
ignore: [ '**/readme.md' ],
|
|
71
|
-
},
|
|
72
71
|
},
|
|
73
72
|
{
|
|
74
73
|
from: 'src/menu-icons',
|
|
75
74
|
to: 'menu-icons',
|
|
76
75
|
noErrorOnMissing: true,
|
|
77
|
-
globOptions: {
|
|
78
|
-
ignore: [ '**/readme.md' ],
|
|
79
|
-
},
|
|
80
76
|
},
|
|
81
77
|
],
|
|
82
78
|
} )
|
|
@@ -92,6 +88,11 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
|
|
|
92
88
|
plugins: [
|
|
93
89
|
{
|
|
94
90
|
name: 'preset-default',
|
|
91
|
+
params: {
|
|
92
|
+
overrides: {
|
|
93
|
+
removeViewBox: false,
|
|
94
|
+
},
|
|
95
|
+
},
|
|
95
96
|
},
|
|
96
97
|
{
|
|
97
98
|
name: 'addAttributesToSVGElement',
|
|
@@ -107,16 +108,6 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
|
|
|
107
108
|
},
|
|
108
109
|
},
|
|
109
110
|
},
|
|
110
|
-
{
|
|
111
|
-
implementation: ImageMinimizerPlugin.imageminMinify,
|
|
112
|
-
options: {
|
|
113
|
-
plugins: [
|
|
114
|
-
[ 'gifsicle' ],
|
|
115
|
-
[ 'jpegtran', { progressive: true } ],
|
|
116
|
-
[ 'optipng', { optimizationLevel: 5 } ],
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
111
|
],
|
|
121
112
|
} )
|
|
122
113
|
)
|
|
@@ -126,70 +117,4 @@ const modulesConfig = new Config( modulesConfigWP, 'modules' )
|
|
|
126
117
|
.resetEntries()
|
|
127
118
|
.addEntries( 'src/scripts/modules/*.{j,t}s' );
|
|
128
119
|
|
|
129
|
-
|
|
130
|
-
{
|
|
131
|
-
entry: {},
|
|
132
|
-
mode: 'production',
|
|
133
|
-
output: { path: resolve( process.cwd(), 'patterns/images' ) },
|
|
134
|
-
},
|
|
135
|
-
'patterns'
|
|
136
|
-
)
|
|
137
|
-
.addPlugin(
|
|
138
|
-
new CopyWebpackPlugin( {
|
|
139
|
-
patterns: [
|
|
140
|
-
{
|
|
141
|
-
from: 'src/images-for-patterns',
|
|
142
|
-
to: './',
|
|
143
|
-
noErrorOnMissing: true,
|
|
144
|
-
globOptions: {
|
|
145
|
-
ignore: [ '**/readme.md' ],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
],
|
|
149
|
-
} )
|
|
150
|
-
)
|
|
151
|
-
.addMinimizer(
|
|
152
|
-
new ImageMinimizerPlugin( {
|
|
153
|
-
minimizer: [
|
|
154
|
-
{
|
|
155
|
-
implementation: ImageMinimizerPlugin.svgoMinify,
|
|
156
|
-
options: {
|
|
157
|
-
encodeOptions: {
|
|
158
|
-
multipass: true,
|
|
159
|
-
plugins: [
|
|
160
|
-
{
|
|
161
|
-
name: 'preset-default',
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
name: 'addAttributesToSVGElement',
|
|
165
|
-
params: {
|
|
166
|
-
attributes: [
|
|
167
|
-
{
|
|
168
|
-
'aria-hidden': 'true',
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
],
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
implementation: ImageMinimizerPlugin.imageminMinify,
|
|
179
|
-
options: {
|
|
180
|
-
plugins: [
|
|
181
|
-
[ 'gifsicle', { interlaced: true } ],
|
|
182
|
-
[ 'jpegtran', { progressive: true } ],
|
|
183
|
-
[ 'optipng', { optimizationLevel: 5 } ],
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
],
|
|
188
|
-
} )
|
|
189
|
-
);
|
|
190
|
-
|
|
191
|
-
module.exports = [
|
|
192
|
-
defaultConfig.get(),
|
|
193
|
-
modulesConfig.get(),
|
|
194
|
-
patternsConfig.get(),
|
|
195
|
-
];
|
|
120
|
+
module.exports = [ defaultConfig.get(), modulesConfig.get() ];
|