@elliemae/pui-cli 6.0.0-beta.47 → 6.0.0-beta.48
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.
|
@@ -34,7 +34,10 @@ const baseRules = {
|
|
|
34
34
|
'import/no-dynamic-require': 0,
|
|
35
35
|
'import/no-extraneous-dependencies': 0,
|
|
36
36
|
'import/no-named-as-default': 0,
|
|
37
|
-
'import/no-unresolved':
|
|
37
|
+
'import/no-unresolved': [
|
|
38
|
+
2,
|
|
39
|
+
{ caseSensitive: true, caseSensitiveStrict: true },
|
|
40
|
+
], // Tip: https://github.com/import-js/eslint-plugin-import/issues/1868
|
|
38
41
|
'import/no-webpack-loader-syntax': 0,
|
|
39
42
|
'import/prefer-default-export': 0,
|
|
40
43
|
'import/extensions': [
|
package/lib/transpile/esbuild.js
CHANGED
|
@@ -2,14 +2,14 @@ const esbuild = require('esbuild');
|
|
|
2
2
|
const fg = require('fast-glob');
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
|
-
|
|
6
|
-
const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
5
|
+
const { getPUIConfig } = require('../pui-config');
|
|
6
|
+
// const browserslistToEsbuild = require('browserslist-to-esbuild');
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const { esBuild } = getPUIConfig();
|
|
9
9
|
|
|
10
10
|
const commonConfig = {
|
|
11
11
|
bundle: false,
|
|
12
|
-
target: browserslistToEsbuild(),
|
|
12
|
+
target: esBuild.target, // browserslistToEsbuild(),
|
|
13
13
|
loader: { '.js': 'jsx' },
|
|
14
14
|
mainFields: ['module', 'browser', 'main'],
|
|
15
15
|
inject: [path.resolve(__dirname, './react-shim.js')],
|
|
@@ -4,7 +4,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
4
4
|
const PostcssPresetEnv = require('postcss-preset-env');
|
|
5
5
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
6
6
|
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
7
|
-
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
8
7
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
9
8
|
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
|
|
10
9
|
const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
|
|
@@ -18,8 +17,6 @@ const {
|
|
|
18
17
|
getAlias,
|
|
19
18
|
getPaths,
|
|
20
19
|
} = require('./helpers');
|
|
21
|
-
// const { getPUIConfig } = require('../pui-config');
|
|
22
|
-
// const { esBuild } = getPUIConfig();
|
|
23
20
|
|
|
24
21
|
const minicssLoader = {
|
|
25
22
|
loader: MiniCssExtractPlugin.loader,
|
|
@@ -42,7 +39,6 @@ const plugins = [
|
|
|
42
39
|
new webpack.DefinePlugin({
|
|
43
40
|
APP_CONFIG: getAppConfig(),
|
|
44
41
|
}),
|
|
45
|
-
new CaseSensitivePathsPlugin(),
|
|
46
42
|
new ProvidePlugin({
|
|
47
43
|
React: 'react',
|
|
48
44
|
}),
|
|
@@ -100,7 +96,7 @@ const plugins = [
|
|
|
100
96
|
],
|
|
101
97
|
}),
|
|
102
98
|
new DuplicatePackageCheckerPlugin(),
|
|
103
|
-
new MomentLocalesPlugin(),
|
|
99
|
+
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
104
100
|
new WebpackManifestPlugin(),
|
|
105
101
|
new FaviconsWebpackPlugin({
|
|
106
102
|
logo: './app/view/images/favicon.png',
|
|
@@ -230,7 +226,7 @@ module.exports = (options) => ({
|
|
|
230
226
|
plugins: plugins.concat(options.plugins),
|
|
231
227
|
resolve: {
|
|
232
228
|
modules: ['node_modules', 'app', 'lib'],
|
|
233
|
-
extensions: ['.
|
|
229
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.wasm', '.mjs'],
|
|
234
230
|
mainFields: ['browser', 'module', 'main'],
|
|
235
231
|
alias: {
|
|
236
232
|
...getAlias(),
|
|
@@ -8,7 +8,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
8
8
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
|
9
9
|
const PostcssPresetEnv = require('postcss-preset-env');
|
|
10
10
|
const DuplicatePackageCheckerPlugin = require('duplicate-package-checker-webpack-plugin');
|
|
11
|
-
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
|
|
12
11
|
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
|
13
12
|
|
|
14
13
|
const {
|
|
@@ -39,7 +38,6 @@ const plugins = [
|
|
|
39
38
|
new webpack.DefinePlugin({
|
|
40
39
|
APP_CONFIG: getAppConfig(true),
|
|
41
40
|
}),
|
|
42
|
-
new CaseSensitivePathsPlugin(),
|
|
43
41
|
new CopyWebpackPlugin({
|
|
44
42
|
patterns: [
|
|
45
43
|
{
|
|
@@ -57,7 +55,7 @@ const plugins = [
|
|
|
57
55
|
new LimitChunkCountPlugin({
|
|
58
56
|
maxChunks: 1,
|
|
59
57
|
}),
|
|
60
|
-
new MomentLocalesPlugin(),
|
|
58
|
+
new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
|
|
61
59
|
];
|
|
62
60
|
|
|
63
61
|
module.exports = (options) => ({
|
|
@@ -204,7 +202,7 @@ module.exports = (options) => ({
|
|
|
204
202
|
plugins: plugins.concat(options.plugins || []),
|
|
205
203
|
resolve: {
|
|
206
204
|
modules: ['node_modules', 'app', 'lib'],
|
|
207
|
-
extensions: ['.
|
|
205
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.wasm', '.mjs'],
|
|
208
206
|
mainFields: ['browser', 'module', 'main'],
|
|
209
207
|
alias: {
|
|
210
208
|
...getAlias(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.48",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "ICE MT UI Platform CLI",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"css-minimizer-webpack-plugin": "~3.3.1",
|
|
127
127
|
"depcheck": "~1.4.3",
|
|
128
128
|
"docdash": "~1.2.0",
|
|
129
|
-
"dotenv": "~12.0.
|
|
129
|
+
"dotenv": "~12.0.4",
|
|
130
130
|
"dotenv-webpack": "~7.0.3",
|
|
131
131
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
132
132
|
"enhanced-resolve": "~5.8.3",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"esbuild-jest": "~0.5.0",
|
|
135
135
|
"esbuild-loader": "~2.18.0",
|
|
136
136
|
"esbuild-plugin-svgr": "~1.0.0",
|
|
137
|
-
"eslint": "~8.
|
|
137
|
+
"eslint": "~8.7.0",
|
|
138
138
|
"eslint-config-airbnb": "~19.0.4",
|
|
139
139
|
"eslint-config-airbnb-base": "~15.0.0",
|
|
140
140
|
"eslint-config-airbnb-typescript": "~16.1.0",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"eslint-plugin-compat": "~4.0.1",
|
|
147
147
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
148
148
|
"eslint-plugin-import": "~2.25.4",
|
|
149
|
-
"eslint-plugin-jest": "~25.
|
|
149
|
+
"eslint-plugin-jest": "~25.7.0",
|
|
150
150
|
"eslint-plugin-jsdoc": "~37.6.1",
|
|
151
151
|
"eslint-plugin-jsx-a11y": "~6.5.1",
|
|
152
152
|
"eslint-plugin-mdx": "~1.16.0",
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
"url-loader": "~4.1.1",
|
|
242
242
|
"uuid": "~8.3.2",
|
|
243
243
|
"vite": "~2.7.12",
|
|
244
|
-
"vitest": "~0.1.
|
|
244
|
+
"vitest": "~0.1.17",
|
|
245
245
|
"webpack": "~5.66.0",
|
|
246
246
|
"webpack-bundle-analyzer": "~4.5.0",
|
|
247
247
|
"webpack-cli": "~4.9.1",
|
|
@@ -256,6 +256,8 @@
|
|
|
256
256
|
"yargs": "~17.3.1"
|
|
257
257
|
},
|
|
258
258
|
"devDependencies": {
|
|
259
|
+
"react": "~17.0.2",
|
|
260
|
+
"react-dom": "~17.0.2",
|
|
259
261
|
"redux": "~4.1.2",
|
|
260
262
|
"redux-saga": "~1.1.3",
|
|
261
263
|
"styled-components": "~5.3.3"
|