@enact/cli 6.0.4 → 6.1.1

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 CHANGED
@@ -1,3 +1,17 @@
1
+ ## 6.1.1 (March 5, 2024)
2
+
3
+ * Updated dependencies.
4
+
5
+ ## 6.1.0 (February 21, 2024)
6
+
7
+ * Removed `getCSSModuleLocalIdent` to fix unexpected behaviors in css-loader.
8
+ * Removed eslint related modules.
9
+
10
+ ### pack
11
+
12
+ * Fixed `--framework` option to use strict lint rules.
13
+ * Fixed webpack config to generate unique class names in module css.
14
+
1
15
  ## 6.0.4 (December 22, 2023)
2
16
 
3
17
  ### template
package/README.md CHANGED
@@ -138,7 +138,7 @@ npm uninstall -g eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-bab
138
138
 
139
139
  Unless otherwise specified, all content, including all source code files and documentation files in this repository are:
140
140
 
141
- Copyright (c) 2016-2023 LG Electronics
141
+ Copyright (c) 2016-2024 LG Electronics
142
142
 
143
143
  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
144
144
 
package/commands/pack.js CHANGED
@@ -258,6 +258,7 @@ function api(opts = {}) {
258
258
  opts['content-hash'],
259
259
  opts.isomorphic,
260
260
  !opts.animation,
261
+ opts.framework,
261
262
  opts['ilib-additional-path']
262
263
  );
263
264
 
@@ -23,7 +23,6 @@ const ForkTsCheckerWebpackPlugin =
23
23
  const HtmlWebpackPlugin = require('html-webpack-plugin');
24
24
  const MiniCssExtractPlugin = require('mini-css-extract-plugin');
25
25
  const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
26
- const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent');
27
26
  const getPublicUrlOrPath = require('react-dev-utils/getPublicUrlOrPath');
28
27
  const ModuleNotFoundPlugin = require('react-dev-utils/ModuleNotFoundPlugin');
29
28
  const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
@@ -32,7 +31,7 @@ const TerserPlugin = require('terser-webpack-plugin');
32
31
  const {DefinePlugin, EnvironmentPlugin} = require('webpack');
33
32
  const {
34
33
  optionParser: app,
35
- cssModuleIdent: getSimpleCSSModuleLocalIdent,
34
+ cssModuleIdent: getLocalIdent,
36
35
  GracefulFsPlugin,
37
36
  ILibPlugin,
38
37
  WebOSMetaPlugin
@@ -46,6 +45,7 @@ module.exports = function (
46
45
  contentHash = false,
47
46
  isomorphic = false,
48
47
  noAnimation = false,
48
+ framework = false,
49
49
  ilibAdditionalResourcesPath
50
50
  ) {
51
51
  process.chdir(app.context);
@@ -87,9 +87,6 @@ module.exports = function (
87
87
  const GENERATE_SOURCEMAP = process.env.GENERATE_SOURCEMAP || (isEnvProduction ? 'false' : 'true');
88
88
  const shouldUseSourceMap = GENERATE_SOURCEMAP !== 'false';
89
89
 
90
- const getLocalIdent =
91
- process.env.SIMPLE_CSS_IDENT !== 'false' ? getSimpleCSSModuleLocalIdent : getCSSModuleLocalIdent;
92
-
93
90
  // common function to get style loaders
94
91
  const getStyleLoaders = (cssLoaderOptions = {}, preProcessor) => {
95
92
  // Multiple styling-support features are used together, bottom-to-top.
@@ -569,7 +566,11 @@ module.exports = function (
569
566
  resolvePluginsRelativeTo: __dirname,
570
567
  // @remove-on-eject-begin
571
568
  baseConfig: {
572
- extends: [require.resolve('eslint-config-enact')],
569
+ extends: [
570
+ framework
571
+ ? require.resolve('eslint-config-enact/strict.js')
572
+ : require.resolve('eslint-config-enact/index.js')
573
+ ],
573
574
  rules: {
574
575
  ...(!hasJsxRuntime && {
575
576
  'react/jsx-uses-react': 'warn',