@sumotto/configs 0.0.5 → 0.0.6
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 -1
- package/wp/webpack.blocks.config.js +9 -1
- package/wp/webpack.theme.config.js +9 -1
- package/.editorconfig +0 -36
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumotto/configs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Configs for my work",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "np --yolo"
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"np": "^10.0.5"
|
|
23
23
|
},
|
|
24
|
+
"files": [
|
|
25
|
+
"helpers/*",
|
|
26
|
+
"wp/*"
|
|
27
|
+
],
|
|
24
28
|
"dependencies": {
|
|
25
29
|
"@wordpress/scripts": "^27.9.0",
|
|
26
30
|
"clean-webpack-plugin": "^4.0.0",
|
|
@@ -29,7 +29,15 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
|
|
|
29
29
|
)
|
|
30
30
|
.addPlugin(
|
|
31
31
|
new CleanWebpackPlugin( {
|
|
32
|
-
cleanOnceBeforeBuildPatterns: [
|
|
32
|
+
cleanOnceBeforeBuildPatterns: [
|
|
33
|
+
'**/*',
|
|
34
|
+
// Each link in the path has been added, because if this is not done,
|
|
35
|
+
// the scripts will be separated since it does not fall under the condition !scripts/modules/*,
|
|
36
|
+
// and accordingly, the module files will be included with it...
|
|
37
|
+
'!scripts',
|
|
38
|
+
'!scripts/modules',
|
|
39
|
+
'!scripts/modules/*',
|
|
40
|
+
],
|
|
33
41
|
cleanStaleWebpackAssets: false,
|
|
34
42
|
} ),
|
|
35
43
|
'before'
|
|
@@ -32,7 +32,15 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
|
|
|
32
32
|
.removePlugin( RtlCssPlugin )
|
|
33
33
|
.addPlugin(
|
|
34
34
|
new CleanWebpackPlugin( {
|
|
35
|
-
cleanOnceBeforeBuildPatterns: [
|
|
35
|
+
cleanOnceBeforeBuildPatterns: [
|
|
36
|
+
'**/*',
|
|
37
|
+
// Each link in the path has been added, because if this is not done,
|
|
38
|
+
// the scripts will be separated since it does not fall under the condition !scripts/modules/*,
|
|
39
|
+
// and accordingly, the module files will be included with it...
|
|
40
|
+
'!scripts',
|
|
41
|
+
'!scripts/modules',
|
|
42
|
+
'!scripts/modules/*',
|
|
43
|
+
],
|
|
36
44
|
cleanStaleWebpackAssets: false,
|
|
37
45
|
} ),
|
|
38
46
|
'before'
|
package/.editorconfig
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# https://github.com/WordPress/gutenberg/blob/HEAD/.editorconfig
|
|
2
|
-
|
|
3
|
-
# This file is for unifying the coding style for different editors and IDEs
|
|
4
|
-
# editorconfig.org
|
|
5
|
-
|
|
6
|
-
# WordPress Coding Standards
|
|
7
|
-
# https://make.wordpress.org/core/handbook/coding-standards/
|
|
8
|
-
|
|
9
|
-
# This file is for unifying the coding style for different editors and IDEs
|
|
10
|
-
# editorconfig.org
|
|
11
|
-
|
|
12
|
-
# WordPress Coding Standards
|
|
13
|
-
# https://make.wordpress.org/core/handbook/coding-standards/
|
|
14
|
-
|
|
15
|
-
root = true
|
|
16
|
-
|
|
17
|
-
[*]
|
|
18
|
-
charset = utf-8
|
|
19
|
-
end_of_line = lf
|
|
20
|
-
insert_final_newline = true
|
|
21
|
-
trim_trailing_whitespace = true
|
|
22
|
-
indent_style = tab
|
|
23
|
-
|
|
24
|
-
[*.{yml,yaml}]
|
|
25
|
-
indent_style = space
|
|
26
|
-
indent_size = 2
|
|
27
|
-
|
|
28
|
-
[*.{gradle,java,kt}]
|
|
29
|
-
indent_style = space
|
|
30
|
-
|
|
31
|
-
[packages/react-native-*/**.xml]
|
|
32
|
-
indent_style = space
|
|
33
|
-
|
|
34
|
-
# Here we digress from WP because such JSON is generated by ACF and it is better not to fight with it
|
|
35
|
-
[acf-json/*.json]
|
|
36
|
-
indent_style = space
|