@enact/cli 4.1.2 → 4.1.7
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/.travis.yml +1 -1
- package/CHANGELOG.md +34 -1
- package/README.md +1 -1
- package/config/custom-skin-template.ejs +0 -5
- package/config/webpack.config.js +14 -6
- package/npm-shrinkwrap.json +26695 -0
- package/package.json +9 -8
package/.travis.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
## 4.1.7 (February 18, 2022)
|
|
2
|
+
|
|
3
|
+
### pack
|
|
4
|
+
|
|
5
|
+
* Added `additionalModulePaths` to enact options to specify paths to check when resolving modules.
|
|
6
|
+
|
|
7
|
+
## 4.1.6 (December 2, 2021)
|
|
8
|
+
|
|
9
|
+
### pack
|
|
10
|
+
|
|
11
|
+
* Fixed V8 snapshot failure.
|
|
12
|
+
|
|
13
|
+
## 4.1.5 (November 29, 2021)
|
|
14
|
+
|
|
15
|
+
* No significant changes.
|
|
16
|
+
|
|
17
|
+
## 4.1.4 (October 13, 2021)
|
|
18
|
+
|
|
19
|
+
### lint
|
|
20
|
+
|
|
21
|
+
* Added `eslint-plugin-testing-library` as a dependency.
|
|
22
|
+
|
|
23
|
+
## 4.1.3 (October 12, 2021)
|
|
24
|
+
|
|
25
|
+
### pack
|
|
26
|
+
|
|
27
|
+
* Removed `sanitize.css` dependency.
|
|
28
|
+
* Updated CLI dependency of `postcss` related modules including `postcss-normalize` 10.0.1.
|
|
29
|
+
|
|
30
|
+
### lint
|
|
31
|
+
|
|
32
|
+
* Enabled `testing-library` lint rules.
|
|
33
|
+
|
|
1
34
|
## 4.1.2 (September 29, 2021)
|
|
2
35
|
|
|
3
36
|
### pack
|
|
@@ -213,7 +246,7 @@ All dependencies updated to latest release.
|
|
|
213
246
|
### pack
|
|
214
247
|
|
|
215
248
|
* Fixed theme feature detection on local theme files (eg. when a local ThemeDecorator is present)
|
|
216
|
-
* Fixed bug with `--framework` option with regards to erroneously including unneeded or invalid iLib dependencies and test files.
|
|
249
|
+
* Fixed bug with `--framework` option with regards to erroneously including unneeded or invalid iLib dependencies and test files.
|
|
217
250
|
|
|
218
251
|
### clean
|
|
219
252
|
|
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ npm remove -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-babel
|
|
|
119
119
|
|
|
120
120
|
Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
|
|
121
121
|
|
|
122
|
-
Copyright (c) 2016-
|
|
122
|
+
Copyright (c) 2016-2022 LG Electronics
|
|
123
123
|
|
|
124
124
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
125
125
|
|
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
|
|
7
7
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
|
8
8
|
<script src="customizations/custom_skin.js"></script>
|
|
9
|
-
<script>
|
|
10
|
-
window.addEventListener('DOMContentLoaded', () => {
|
|
11
|
-
document.querySelector('.sandstone-theme').classList.add(window && window.CUSTOM_SKIN || 'neutral');
|
|
12
|
-
});
|
|
13
|
-
</script>
|
|
14
9
|
<link rel="stylesheet" href="customizations/custom_skin.css">
|
|
15
10
|
</head>
|
|
16
11
|
<body>
|
package/config/webpack.config.js
CHANGED
|
@@ -116,11 +116,8 @@ module.exports = function (env) {
|
|
|
116
116
|
// package.json
|
|
117
117
|
loader: require.resolve('postcss-loader'),
|
|
118
118
|
options: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
sourceMap: shouldUseSourceMap,
|
|
122
|
-
plugins: () =>
|
|
123
|
-
[
|
|
119
|
+
postcssOptions: {
|
|
120
|
+
plugins: [
|
|
124
121
|
// Fix and adjust for known flexbox issues
|
|
125
122
|
// See https://github.com/philipwalton/flexbugs
|
|
126
123
|
require('postcss-flexbugs-fixes'),
|
|
@@ -143,6 +140,8 @@ module.exports = function (env) {
|
|
|
143
140
|
// Resolution indepedence support
|
|
144
141
|
app.ri !== false && require('postcss-resolution-independence')(app.ri)
|
|
145
142
|
].filter(Boolean)
|
|
143
|
+
},
|
|
144
|
+
sourceMap: shouldUseSourceMap
|
|
146
145
|
}
|
|
147
146
|
}
|
|
148
147
|
];
|
|
@@ -163,6 +162,11 @@ module.exports = function (env) {
|
|
|
163
162
|
}
|
|
164
163
|
});
|
|
165
164
|
|
|
165
|
+
const getAdditionalModulePaths = paths => {
|
|
166
|
+
if (!paths) return [];
|
|
167
|
+
return Array.isArray(paths) ? paths : [paths];
|
|
168
|
+
};
|
|
169
|
+
|
|
166
170
|
return {
|
|
167
171
|
mode: isEnvProduction ? 'production' : 'development',
|
|
168
172
|
// Don't attempt to continue if there are any errors.
|
|
@@ -220,7 +224,11 @@ module.exports = function (env) {
|
|
|
220
224
|
ext => useTypeScript || !ext.includes('ts')
|
|
221
225
|
),
|
|
222
226
|
// Allows us to specify paths to check for module resolving.
|
|
223
|
-
modules: [
|
|
227
|
+
modules: [
|
|
228
|
+
path.resolve('./node_modules'),
|
|
229
|
+
'node_modules',
|
|
230
|
+
...getAdditionalModulePaths(app.additionalModulePaths)
|
|
231
|
+
],
|
|
224
232
|
// Don't resolve symlinks to their underlying paths
|
|
225
233
|
symlinks: false,
|
|
226
234
|
// Backward compatibility for apps using new ilib references with old Enact
|