@spryker/oryx-for-zed 3.4.4 → 3.5.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/CHANGELOG.md +14 -0
- package/lib/settings.js +8 -4
- package/lib/webpack.config.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 3.5.0
|
|
4
|
+
|
|
5
|
+
Released on 07.04.2025
|
|
6
|
+
|
|
7
|
+
- Add support for a separate entry point compatible with Bootstrap 5.
|
|
8
|
+
|
|
9
|
+
### 3.4.5
|
|
10
|
+
|
|
11
|
+
Released on 10.01.2025
|
|
12
|
+
|
|
13
|
+
- Fix entrypoint for features.
|
|
14
|
+
|
|
15
|
+
# Changelog
|
|
16
|
+
|
|
3
17
|
### 3.4.4
|
|
4
18
|
|
|
5
19
|
Released on 09.01.2025
|
package/lib/settings.js
CHANGED
|
@@ -25,8 +25,12 @@ if (!fs.existsSync(path.resolve(bundlesPath, guiFolder))) {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const bundlesDir = path.resolve(bundlesPath);
|
|
28
|
+
const featuresDir = path.resolve(featuresPath);
|
|
28
29
|
const guiPath = path.join(bundlesPath, guiFolder);
|
|
29
30
|
|
|
31
|
+
const isBootstrapLatest = process.env.BOOTSTRAP_VERSION === '5';
|
|
32
|
+
const excludePattern = isBootstrapLatest ? '!**/Zed/**/spryker-zed-gui-commons.entry.js' : '!**/Zed/**/spryker-zed-gui-commons-bootstrap-compatibility.entry.js';
|
|
33
|
+
|
|
30
34
|
const settings = {
|
|
31
35
|
options: {
|
|
32
36
|
isProduction: !!argv.prod,
|
|
@@ -49,17 +53,17 @@ const settings = {
|
|
|
49
53
|
featuresPath,
|
|
50
54
|
},
|
|
51
55
|
|
|
52
|
-
runtimeEntryName: 'spryker-zed-gui-commons',
|
|
56
|
+
runtimeEntryName: isBootstrapLatest ? 'spryker-zed-gui-commons-bootstrap-compatibility' : 'spryker-zed-gui-commons',
|
|
53
57
|
|
|
54
58
|
entry: {
|
|
55
|
-
dirs: [bundlesDir, ecoDir, sdkDir],
|
|
56
|
-
patterns: ['**/Zed/**/*.entry.js'],
|
|
59
|
+
dirs: [bundlesDir, ecoDir, sdkDir, featuresDir],
|
|
60
|
+
patterns: ['**/Zed/**/*.entry.js', excludePattern],
|
|
57
61
|
description: 'looking for entry points...',
|
|
58
62
|
defineName: p => path.basename(p, '.entry.js'),
|
|
59
63
|
},
|
|
60
64
|
|
|
61
65
|
resolveModules: {
|
|
62
|
-
dirs: [bundlesDir],
|
|
66
|
+
dirs: [bundlesDir, featuresDir],
|
|
63
67
|
patterns: ['**/Zed/node_modules'],
|
|
64
68
|
description: 'resolving core modules deps...',
|
|
65
69
|
},
|
package/lib/webpack.config.js
CHANGED
|
@@ -115,9 +115,9 @@ async function getConfiguration(settings) {
|
|
|
115
115
|
options: {
|
|
116
116
|
url: {
|
|
117
117
|
filter: (url, _resourcePath) => {
|
|
118
|
-
|
|
118
|
+
return !(url.includes('assets/img/') || url.includes('bundles/images/'));
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
},
|
|
121
121
|
importLoaders: 1,
|
|
122
122
|
},
|
|
123
123
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spryker/oryx-for-zed",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Spryker ZED frontend automation tool",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
"@babel/core": "~7.23.2",
|
|
43
43
|
"@babel/preset-env": "~7.23.2"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|