@spryker/oryx-for-zed 2.11.2 → 2.11.5
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 +19 -0
- package/lib/copy.js +4 -16
- package/lib/settings.js +0 -2
- package/lib/webpack.config.js +5 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
### 2.11.4
|
|
4
|
+
Released on 7.04.2022
|
|
5
|
+
|
|
6
|
+
- Downgraded `optimize-css-assets-webpack-plugin` version to keep build working in production mode.
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 2.11.4
|
|
10
|
+
Released on 18.03.2022
|
|
11
|
+
|
|
12
|
+
- Replaced deprecated `node-sass` dependency with `dart-sass`.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 2.11.3
|
|
16
|
+
Released on 12.08.2021
|
|
17
|
+
|
|
18
|
+
- Removed backward compatibility script for Merchant Portal assets.
|
|
19
|
+
- Fixed bug with not defined settings in datatables by adding additional module rule.
|
|
20
|
+
|
|
21
|
+
|
|
3
22
|
### 2.11.2
|
|
4
23
|
Released on 22.07.2021
|
|
5
24
|
|
package/lib/copy.js
CHANGED
|
@@ -4,25 +4,13 @@ const oryx = require('@spryker/oryx');
|
|
|
4
4
|
const settings = require('./settings');
|
|
5
5
|
|
|
6
6
|
const copyAssets = async () => {
|
|
7
|
-
const
|
|
8
|
-
const backCompatibilityBackofficePublicDir = path.resolve(path.join('public/Backoffice', `${settings.paths.publicPath}/js/`));
|
|
9
|
-
|
|
10
|
-
if (fs.existsSync(`${settings.paths.mpPublicDir}/js/`)) {
|
|
11
|
-
try {
|
|
12
|
-
oryx.log.task('Copy Merchant Portal assets for Backoffice');
|
|
13
|
-
oryx.log.step('copying assets...');
|
|
14
|
-
await fs.copy(`${settings.paths.mpPublicDir}/js/`, backCompatibilityBackofficePublicDir);
|
|
15
|
-
oryx.log.done('assets copied to: ', backCompatibilityBackofficePublicDir);
|
|
16
|
-
} catch (err) {
|
|
17
|
-
console.error(err)
|
|
18
|
-
}
|
|
19
|
-
}
|
|
7
|
+
const backCompatibilityPublicDir = path.resolve(path.join('public/Zed', settings.paths.publicPath));
|
|
20
8
|
|
|
21
9
|
try {
|
|
22
|
-
oryx.log.task('Copy assets for
|
|
10
|
+
oryx.log.task('Copy assets for backward compatibility after renaming assets folder');
|
|
23
11
|
oryx.log.step('copying assets...');
|
|
24
|
-
await fs.copy(settings.paths.publicDir,
|
|
25
|
-
oryx.log.done('assets copied to: ',
|
|
12
|
+
await fs.copy(settings.paths.publicDir, backCompatibilityPublicDir);
|
|
13
|
+
oryx.log.done('assets copied to: ', backCompatibilityPublicDir);
|
|
26
14
|
} catch (err) {
|
|
27
15
|
console.error(err)
|
|
28
16
|
}
|
package/lib/settings.js
CHANGED
|
@@ -10,7 +10,6 @@ const sourcePath = './assets/Zed/';
|
|
|
10
10
|
const publicPath = '/assets/';
|
|
11
11
|
const sourceDir = path.resolve(sourcePath);
|
|
12
12
|
const publicDir = path.resolve(path.join('public/Backoffice', publicPath));
|
|
13
|
-
const mpPublicDir = path.resolve(path.join('public/MerchantPortal', publicPath));
|
|
14
13
|
const ecoDir = path.resolve('./vendor/spryker-eco');
|
|
15
14
|
const sdkDir = path.resolve('./vendor/spryker-sdk');
|
|
16
15
|
|
|
@@ -43,7 +42,6 @@ const settings = {
|
|
|
43
42
|
rootDir,
|
|
44
43
|
sourceDir,
|
|
45
44
|
publicDir,
|
|
46
|
-
mpPublicDir,
|
|
47
45
|
bundlesDir,
|
|
48
46
|
ecoDir,
|
|
49
47
|
sdkDir,
|
package/lib/webpack.config.js
CHANGED
|
@@ -70,6 +70,10 @@ async function getConfiguration(settings) {
|
|
|
70
70
|
|
|
71
71
|
module: {
|
|
72
72
|
rules: [
|
|
73
|
+
{
|
|
74
|
+
test: /datatables\.net.*/,
|
|
75
|
+
use: 'imports-loader?define=>false'
|
|
76
|
+
},
|
|
73
77
|
{
|
|
74
78
|
test: /(jquery-migrate)/,
|
|
75
79
|
use: 'imports-loader?define=>false'
|
|
@@ -108,6 +112,7 @@ async function getConfiguration(settings) {
|
|
|
108
112
|
{
|
|
109
113
|
loader: 'sass-loader',
|
|
110
114
|
options: {
|
|
115
|
+
implementation: require('sass'),
|
|
111
116
|
sourceMap: true
|
|
112
117
|
}
|
|
113
118
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spryker/oryx-for-zed",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.5",
|
|
4
4
|
"description": "Spryker ZED frontend automation tool (oryx based)",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Spryker Sytems GmbH",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"fs-extra": "~10.0.0",
|
|
31
31
|
"imports-loader": "~0.8.0",
|
|
32
32
|
"mini-css-extract-plugin": "~0.4.0",
|
|
33
|
-
"
|
|
34
|
-
"optimize-css-assets-webpack-plugin": "~5.0.1",
|
|
33
|
+
"optimize-css-assets-webpack-plugin": "~5.0.8",
|
|
35
34
|
"postcss-loader": "~2.1.4",
|
|
36
|
-
"resolve-url-loader": "~
|
|
37
|
-
"sass
|
|
35
|
+
"resolve-url-loader": "~5.0.0",
|
|
36
|
+
"sass": "~1.32.13",
|
|
37
|
+
"sass-loader": "~10.2.1",
|
|
38
38
|
"style-loader": "~0.21.0",
|
|
39
39
|
"terser-webpack-plugin": "~4.2.2",
|
|
40
|
-
"webpack": "~4.
|
|
40
|
+
"webpack": "~4.46.0",
|
|
41
41
|
"yargs": "~13.3.0"
|
|
42
42
|
}
|
|
43
43
|
}
|