@caweb/webpack 2.0.4 → 2.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/helpers/logic/isScheme.js +33 -0
- package/lib/utils.js +1 -1
- package/package.json +14 -14
- package/webpack.wp.config.js +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default function isScheme(scheme, options ) {
|
|
2
|
+
let validSchemes = [
|
|
3
|
+
'delta',
|
|
4
|
+
'eureka',
|
|
5
|
+
'mono',
|
|
6
|
+
'oceanside',
|
|
7
|
+
'orangecounty',
|
|
8
|
+
'pasorobles',
|
|
9
|
+
'sacramento',
|
|
10
|
+
'santabarbara',
|
|
11
|
+
'santacruz',
|
|
12
|
+
'shasta',
|
|
13
|
+
'sierra',
|
|
14
|
+
'trinity'
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
let answer = validSchemes.includes(scheme);
|
|
18
|
+
|
|
19
|
+
// if the function is called as a block helper
|
|
20
|
+
// return the answer if true and the options has a fn
|
|
21
|
+
if( options['fn'] && answer ){
|
|
22
|
+
return options.fn(this);
|
|
23
|
+
// if the function is called as a block helper
|
|
24
|
+
// return the answer if false and the options has an inverse
|
|
25
|
+
}else if( options['inverse'] && !answer ){
|
|
26
|
+
return options.inverse(this);
|
|
27
|
+
|
|
28
|
+
// if the function is called as a subexpression
|
|
29
|
+
// return the answer
|
|
30
|
+
}else{
|
|
31
|
+
return answer;
|
|
32
|
+
}
|
|
33
|
+
}
|
package/lib/utils.js
CHANGED
|
@@ -78,7 +78,7 @@ function getPhpFilePaths( context, props ) {
|
|
|
78
78
|
let parsedBlockJson;
|
|
79
79
|
try {
|
|
80
80
|
parsedBlockJson = JSON.parse( readFileSync( blockMetadataFile ) );
|
|
81
|
-
} catch
|
|
81
|
+
} catch {
|
|
82
82
|
warn(
|
|
83
83
|
`Not scanning "${ blockMetadataFile.replace(
|
|
84
84
|
fromProjectRoot( sep ),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caweb/webpack",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "CAWebPublishing Webpack Configuration",
|
|
5
5
|
"main": "webpack.config.js",
|
|
6
6
|
"files": [
|
|
@@ -39,38 +39,38 @@
|
|
|
39
39
|
"homepage": "https://github.com/CAWebPublishing/webpack#readme",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@babel/plugin-transform-class-properties": "^7.28.6",
|
|
42
|
-
"@wordpress/babel-preset-default": "^8.
|
|
43
|
-
"@wordpress/dependency-extraction-webpack-plugin": "^6.
|
|
44
|
-
"@wordpress/postcss-plugins-preset": "^5.
|
|
45
|
-
"babel-loader": "^10.
|
|
42
|
+
"@wordpress/babel-preset-default": "^8.45.0",
|
|
43
|
+
"@wordpress/dependency-extraction-webpack-plugin": "^6.45.0",
|
|
44
|
+
"@wordpress/postcss-plugins-preset": "^5.45.0",
|
|
45
|
+
"babel-loader": "^10.1.1",
|
|
46
46
|
"copy-webpack-plugin": "^14.0.0",
|
|
47
47
|
"css-loader": "^7.1.4",
|
|
48
48
|
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
49
49
|
"deepmerge": "^4.3.1",
|
|
50
50
|
"fast-glob": "^3.3.3",
|
|
51
|
-
"handlebars": "^4.7.
|
|
51
|
+
"handlebars": "^4.7.9",
|
|
52
52
|
"handlebars-loader": "^1.7.3",
|
|
53
53
|
"html-format": "^1.1.7",
|
|
54
|
-
"html-webpack-plugin": "^5.6.
|
|
55
|
-
"mini-css-extract-plugin": "^2.10.
|
|
54
|
+
"html-webpack-plugin": "^5.6.7",
|
|
55
|
+
"mini-css-extract-plugin": "^2.10.2",
|
|
56
56
|
"minimist": "^1.2.8",
|
|
57
57
|
"postcss-loader": "^8.2.1",
|
|
58
58
|
"react-refresh": "^0.18.0",
|
|
59
59
|
"read-package-up": "^12.0.0",
|
|
60
|
-
"sass": "^1.
|
|
60
|
+
"sass": "^1.99.0",
|
|
61
61
|
"sass-loader": "^16.0.7",
|
|
62
62
|
"source-map-loader": "^5.0.0",
|
|
63
63
|
"thread-loader": "^4.0.4",
|
|
64
|
-
"ts-loader": "^9.5.
|
|
65
|
-
"webpack": "^5.
|
|
66
|
-
"webpack-cli": "^
|
|
64
|
+
"ts-loader": "^9.5.7",
|
|
65
|
+
"webpack": "^5.106.2",
|
|
66
|
+
"webpack-cli": "^7.0.2",
|
|
67
67
|
"webpack-dev-server": "^5.2.3",
|
|
68
68
|
"webpack-merge": "^6.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@wordpress/scripts": "^
|
|
71
|
+
"@wordpress/scripts": "^32.1.0",
|
|
72
72
|
"cross-env": "^10.1.0",
|
|
73
|
-
"prettier": "^3.8.
|
|
73
|
+
"prettier": "^3.8.3"
|
|
74
74
|
},
|
|
75
75
|
"overrides": {
|
|
76
76
|
"minimatch": "^10.2.4",
|
package/webpack.wp.config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file is autogenerated and should not be modified.
|
|
3
|
-
* Last modified: Thu
|
|
3
|
+
* Last modified: Thu May 07 2026 16:45:20 GMT-0700 (Pacific Daylight Time)
|
|
4
4
|
*/
|
|
5
5
|
import CopyWebpackPlugin from "copy-webpack-plugin";
|
|
6
6
|
import webpack from "webpack";
|