@elliemae/pui-cli 6.2.0 → 6.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.
@@ -1,6 +1,7 @@
1
1
  const path = require('path');
2
2
 
3
3
  module.exports = {
4
+ '*.{js,ts,jsx,tsx,md,mdx,html,css,json}': ['prettier --write'],
4
5
  '*.{ts,tsx}': [
5
6
  `node ${path.resolve(
6
7
  __dirname,
@@ -12,5 +13,4 @@ module.exports = {
12
13
  'npm run test:staged',
13
14
  'npm run gendoc',
14
15
  ],
15
- '*.{js,ts,jsx,tsx,md,mdx,html,css,json}': ['prettier --write'],
16
16
  };
@@ -197,7 +197,7 @@ const getCompressionPlugins = (isLibrary = false) => {
197
197
  test: /\.(js|css)$/,
198
198
  exclude: !isLibrary ? excludeList : [],
199
199
  // we are compressing all files since in aws cloudfront edge lambda, we don't want to whitelist files that are not compressed due to below limits
200
- minRatio: Number.MAX_SAFE_INTEGER,
200
+ minRatio: Infinity,
201
201
  };
202
202
  return [
203
203
  new CompressionPlugin({
@@ -161,9 +161,7 @@ module.exports = (options) => ({
161
161
  },
162
162
  {
163
163
  test: /\.css$/,
164
- exclude: excludeNodeModulesExcept(
165
- modulesToTranspile.concat(['sanitize.css']),
166
- ),
164
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
167
165
  use: [
168
166
  finalCSSLoader(options.mode),
169
167
  {
@@ -1,6 +1,10 @@
1
1
  /* eslint-disable max-lines */
2
2
  const path = require('path');
3
- const { EnvironmentPlugin, DefinePlugin } = require('webpack');
3
+ const {
4
+ EnvironmentPlugin,
5
+ DefinePlugin,
6
+ NormalModuleReplacementPlugin,
7
+ } = require('webpack');
4
8
  const {
5
9
  optimize: { LimitChunkCountPlugin },
6
10
  ProgressPlugin,
@@ -30,33 +34,43 @@ const minicssLoader = {
30
34
  const finalCSSLoader = (mode) =>
31
35
  mode !== 'production' ? { loader: 'style-loader' } : minicssLoader;
32
36
 
37
+ const copyPluginPatterns = filterByFilePresence([
38
+ {
39
+ from: 'lib/app.config.json',
40
+ to: 'app.config.json',
41
+ noErrorOnMissing: true,
42
+ },
43
+ {
44
+ from: 'public',
45
+ noErrorOnMissing: true,
46
+ },
47
+ ]);
48
+
33
49
  const plugins = [
34
50
  new EnvironmentPlugin({
35
- NODE_ENV: 'development',
36
51
  ASSET_PATH: '/',
37
52
  CI: 'false',
38
53
  }),
39
54
  new DefinePlugin({
40
55
  APP_CONFIG: getAppConfig(true),
41
56
  }),
42
- new CopyWebpackPlugin({
43
- patterns: filterByFilePresence([
44
- {
45
- from: 'lib/app.config.json',
46
- to: 'app.config.json',
47
- noErrorOnMissing: true,
48
- },
49
- {
50
- from: 'lib/public',
51
- noErrorOnMissing: true,
52
- },
53
- ]),
54
- }),
57
+ /* eslint-disable indent */
58
+ ...(copyPluginPatterns.length > 0
59
+ ? [
60
+ new CopyWebpackPlugin({
61
+ patterns: copyPluginPatterns,
62
+ }),
63
+ ]
64
+ : []),
65
+ /* eslint-enable indent */
55
66
  new DuplicatePackageCheckerPlugin(),
56
67
  new LimitChunkCountPlugin({
57
68
  maxChunks: 1,
58
69
  }),
59
70
  new MomentLocalesPlugin({ localesToKeep: ['es-us'] }),
71
+ new NormalModuleReplacementPlugin(/\.js$/, function (resource) {
72
+ resource.request = resource.request.replace('.js', '');
73
+ }),
60
74
  new ProgressPlugin(),
61
75
  ];
62
76
 
@@ -102,27 +116,9 @@ module.exports = (options) => ({
102
116
  },
103
117
  },
104
118
  },
105
- {
106
- test: /\.exec\.js$/,
107
- exclude: /node_modules/,
108
- use: [
109
- {
110
- loader: 'imports-loader',
111
- options: {
112
- wrapper: {
113
- thisArg: 'window',
114
- args: {
115
- module: false,
116
- exports: false,
117
- define: false,
118
- },
119
- },
120
- },
121
- },
122
- ],
123
- },
124
119
  {
125
120
  test: /\.css$/,
121
+ exclude: excludeNodeModulesExcept(modulesToTranspile),
126
122
  use: [
127
123
  finalCSSLoader(options.mode),
128
124
  {
@@ -190,7 +186,7 @@ module.exports = (options) => ({
190
186
  plugins: plugins.concat(options.plugins || []),
191
187
  resolve: {
192
188
  modules: ['node_modules', 'app', 'lib'],
193
- extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.wasm', '.mjs'],
189
+ extensions: ['.ts', '.tsx', '.js', '.jsx', '.json', '.wasm', '.mjs'],
194
190
  mainFields: ['browser', 'module', 'main'],
195
191
  alias: {
196
192
  ...getAlias(),
@@ -8,7 +8,6 @@ const libraryName = getLibraryName();
8
8
  module.exports = require('./webpack.lib.base.babel')({
9
9
  mode: 'development',
10
10
 
11
- // Don't use hashes in dev mode for better performance
12
11
  output: {
13
12
  filename: `js/${libraryName}.js`,
14
13
  chunkFilename: `js/${libraryName}.chunk.js`,
@@ -25,7 +24,6 @@ module.exports = require('./webpack.lib.base.babel')({
25
24
  alias: {},
26
25
  },
27
26
 
28
- // Add development plugins
29
27
  plugins: [
30
28
  new HtmlWebpackPlugin({
31
29
  scriptLoading: 'module',
@@ -11,7 +11,6 @@ const libraryName = getLibraryName();
11
11
  module.exports = require('./webpack.lib.base.babel')({
12
12
  mode: 'production',
13
13
 
14
- // Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
15
14
  output: {
16
15
  filename: `js/${libraryName}.[chunkhash].js`,
17
16
  chunkFilename: `js/${libraryName}.[chunkhash].chunk.js`,
@@ -36,7 +35,6 @@ module.exports = require('./webpack.lib.base.babel')({
36
35
  },
37
36
 
38
37
  plugins: [
39
- // Minify and optimize the index.html
40
38
  new HtmlWebpackPlugin({
41
39
  scriptLoading: 'module',
42
40
  template: 'lib/index.pug',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.2.0",
3
+ "version": "6.5.0",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,
@@ -47,9 +47,9 @@
47
47
  "indent": 4
48
48
  },
49
49
  "dependencies": {
50
- "@babel/cli": "~7.16.8",
51
- "@babel/core": "~7.16.12",
52
- "@babel/eslint-parser": "~7.16.5",
50
+ "@babel/cli": "~7.17.0",
51
+ "@babel/core": "~7.17.2",
52
+ "@babel/eslint-parser": "~7.17.0",
53
53
  "@babel/node": "~7.16.8",
54
54
  "@babel/plugin-proposal-class-properties": "~7.16.7",
55
55
  "@babel/plugin-proposal-export-default-from": "~7.16.7",
@@ -58,45 +58,45 @@
58
58
  "@babel/plugin-transform-react-constant-elements": "~7.16.7",
59
59
  "@babel/plugin-transform-react-inline-elements": "~7.16.7",
60
60
  "@babel/plugin-transform-react-jsx-source": "~7.16.7",
61
- "@babel/plugin-transform-runtime": "~7.16.10",
61
+ "@babel/plugin-transform-runtime": "~7.17.0",
62
62
  "@babel/preset-env": "~7.16.11",
63
63
  "@babel/preset-react": "~7.16.7",
64
64
  "@babel/preset-typescript": "~7.16.7",
65
- "@babel/runtime": "~7.16.7",
65
+ "@babel/runtime": "~7.17.2",
66
66
  "@commitlint/cli": "~16.1.0",
67
67
  "@commitlint/config-conventional": "~16.0.0",
68
68
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.3.0",
69
- "@faker-js/faker": "6.0.0-alpha.5",
69
+ "@faker-js/faker": "6.0.0-alpha.6",
70
70
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.4",
71
71
  "@semantic-release/changelog": "~6.0.1",
72
72
  "@semantic-release/exec": "~6.0.3",
73
73
  "@semantic-release/git": "~10.0.1",
74
- "@storybook/addon-a11y": "~6.4.17",
75
- "@storybook/addon-essentials": "~6.4.17",
74
+ "@storybook/addon-a11y": "~6.4.18",
75
+ "@storybook/addon-essentials": "~6.4.18",
76
76
  "@storybook/addon-events": "~6.2.9",
77
- "@storybook/addon-interactions": "~6.4.17",
78
- "@storybook/addon-links": "~6.4.17",
79
- "@storybook/addon-storysource": "~6.4.17",
80
- "@storybook/builder-webpack5": "~6.4.17",
81
- "@storybook/manager-webpack5": "~6.4.17",
82
- "@storybook/react": "~6.4.17",
83
- "@storybook/theming": "~6.4.17",
77
+ "@storybook/addon-interactions": "~6.4.18",
78
+ "@storybook/addon-links": "~6.4.18",
79
+ "@storybook/addon-storysource": "~6.4.18",
80
+ "@storybook/builder-webpack5": "~6.4.18",
81
+ "@storybook/manager-webpack5": "~6.4.18",
82
+ "@storybook/react": "~6.4.18",
83
+ "@storybook/theming": "~6.4.18",
84
84
  "@stylelint/postcss-css-in-js": "~0.37.2",
85
85
  "@svgr/webpack": "~6.2.1",
86
86
  "@swc/cli": "~0.1.55",
87
- "@swc/core": "~1.2.135",
87
+ "@swc/core": "~1.2.138",
88
88
  "@swc/jest": "~0.2.17",
89
- "@testing-library/jest-dom": "~5.16.1",
89
+ "@testing-library/jest-dom": "~5.16.2",
90
90
  "@testing-library/react": "~12.1.2",
91
91
  "@testing-library/react-hooks": "~7.0.2",
92
92
  "@types/jest": "~27.4.0",
93
- "@types/node": "~17.0.13",
93
+ "@types/node": "~17.0.17",
94
94
  "@types/rimraf": "~3.0.2",
95
95
  "@types/testing-library__jest-dom": "~5.14.2",
96
- "@typescript-eslint/eslint-plugin": "~5.10.2",
97
- "@typescript-eslint/parser": "~5.10.2",
96
+ "@typescript-eslint/eslint-plugin": "~5.11.0",
97
+ "@typescript-eslint/parser": "~5.11.0",
98
98
  "autoprefixer": "~10.4.2",
99
- "axe-core": "~4.4.0",
99
+ "axe-core": "~4.4.1",
100
100
  "babel-loader": "~8.2.3",
101
101
  "babel-plugin-add-import-extension": "1.5.1",
102
102
  "babel-plugin-date-fns": "~2.0.0",
@@ -121,15 +121,15 @@
121
121
  "copy-webpack-plugin": "~10.2.4",
122
122
  "cors": "~2.8.5",
123
123
  "cross-env": "~7.0.3",
124
- "css-loader": "~6.5.1",
124
+ "css-loader": "~6.6.0",
125
125
  "css-minimizer-webpack-plugin": "~3.4.1",
126
126
  "depcheck": "~1.4.3",
127
127
  "docdash": "~1.2.0",
128
- "dotenv": "~14.3.0",
128
+ "dotenv": "~16.0.0",
129
129
  "dotenv-webpack": "~7.1.0",
130
130
  "duplicate-package-checker-webpack-plugin": "~3.0.0",
131
- "enhanced-resolve": "~5.8.3",
132
- "esbuild": "~0.14.14",
131
+ "enhanced-resolve": "~5.9.0",
132
+ "esbuild": "~0.14.21",
133
133
  "esbuild-loader": "~2.18.0",
134
134
  "esbuild-plugin-svgr": "~1.0.0",
135
135
  "eslint": "~8.8.0",
@@ -144,8 +144,8 @@
144
144
  "eslint-plugin-compat": "~4.0.2",
145
145
  "eslint-plugin-eslint-comments": "~3.2.0",
146
146
  "eslint-plugin-import": "~2.25.4",
147
- "eslint-plugin-jest": "~26.0.0",
148
- "eslint-plugin-jsdoc": "~37.7.0",
147
+ "eslint-plugin-jest": "~26.1.0",
148
+ "eslint-plugin-jsdoc": "~37.8.2",
149
149
  "eslint-plugin-jsx-a11y": "~6.5.1",
150
150
  "eslint-plugin-mdx": "~1.16.0",
151
151
  "eslint-plugin-prettier": "~4.0.0",
@@ -153,12 +153,12 @@
153
153
  "eslint-plugin-react-hooks": "~4.3.0",
154
154
  "eslint-plugin-redux-saga": "~1.3.2",
155
155
  "eslint-plugin-storybook": "~0.5.6",
156
- "eslint-plugin-testing-library": "~5.0.4",
156
+ "eslint-plugin-testing-library": "~5.0.5",
157
157
  "eslint-plugin-wdio": "~7.4.2",
158
158
  "execa": "~5.1.1",
159
159
  "express": "~4.17.2",
160
160
  "express-pino-logger": "~7.0.0",
161
- "express-static-gzip": "~2.1.1",
161
+ "express-static-gzip": "~2.1.4",
162
162
  "favicons": "~6.2.2",
163
163
  "favicons-webpack-plugin": "~5.0.2",
164
164
  "happy-dom": "~2.31.1",
@@ -170,12 +170,12 @@
170
170
  "imports-loader": "~3.1.1",
171
171
  "ip": "~1.1.5",
172
172
  "jest-axe": "~5.0.1",
173
- "jest-cli": "~27.4.7",
173
+ "jest-cli": "~27.5.1",
174
174
  "jest-sonar-reporter": "~2.0.0",
175
175
  "jest-styled-components": "~7.0.8",
176
176
  "jscodeshift": "~0.13.1",
177
177
  "jsdoc": "~3.6.10",
178
- "lint-staged": "~12.3.2",
178
+ "lint-staged": "~12.3.3",
179
179
  "mini-css-extract-plugin": "~2.5.3",
180
180
  "minimist": "~1.2.5",
181
181
  "moment": "~2.29.1",
@@ -184,18 +184,18 @@
184
184
  "node-gyp": "~8.4.1",
185
185
  "node-plop": "~0.30.0",
186
186
  "nodemon": "~2.0.15",
187
- "npm-check-updates": "12.2.1",
187
+ "npm-check-updates": "12.3.0",
188
188
  "null-loader": "~4.0.1",
189
189
  "pino": "~7.6.5",
190
190
  "pino-pretty": "~7.5.1",
191
191
  "pinst": "~2.1.6",
192
192
  "plop": "~3.0.5",
193
- "postcss": "~8.4.5",
193
+ "postcss": "~8.4.6",
194
194
  "postcss-html": "~1.3.0",
195
195
  "postcss-jsx": "~0.36.4",
196
196
  "postcss-loader": "~6.2.1",
197
197
  "postcss-markdown": "~1.2.0",
198
- "postcss-preset-env": "~7.3.0",
198
+ "postcss-preset-env": "~7.3.1",
199
199
  "postcss-syntax": "~0.36.2",
200
200
  "prettier": "~2.5.1",
201
201
  "pug": "~3.0.2",
@@ -206,32 +206,32 @@
206
206
  "react-refresh": "~0.11.0",
207
207
  "react-test-renderer": "~17.0.2",
208
208
  "resize-observer-polyfill": "~1.5.1",
209
- "resolve-typescript-plugin": "~1.1.4",
209
+ "resolve-typescript-plugin": "~1.1.5",
210
210
  "rimraf": "~3.0.2",
211
211
  "semantic-release": "~19.0.2",
212
212
  "slackify-markdown": "~4.3.1",
213
213
  "speed-measure-webpack-plugin": "~1.5.0",
214
214
  "storybook-addon-turbo-build": "~1.0.1",
215
- "storybook-builder-vite": "~0.1.14",
215
+ "storybook-builder-vite": "~0.1.15",
216
216
  "storybook-react-router": "~1.0.8",
217
217
  "style-loader": "~3.3.1",
218
- "stylelint": "~14.3.0",
219
- "stylelint-config-recommended": "~6.0.0",
218
+ "stylelint": "~14.5.0",
219
+ "stylelint-config-recommended": "~7.0.0",
220
220
  "stylelint-config-styled-components": "~0.1.1",
221
221
  "swc-loader": "~0.1.15",
222
- "terser-webpack-plugin": "~5.3.0",
223
- "ts-node": "~10.4.0",
224
- "tsc-alias": "~1.5.0",
222
+ "terser-webpack-plugin": "~5.3.1",
223
+ "ts-node": "~10.5.0",
224
+ "tsc-alias": "~1.6.0",
225
225
  "typescript": "~4.5.5",
226
226
  "update-notifier": "~5.1.0",
227
227
  "url-loader": "~4.1.1",
228
228
  "uuid": "~8.3.2",
229
- "vite": "~2.7.13",
230
- "vitest": "~0.2.5",
229
+ "vite": "~2.8.1",
230
+ "vitest": "~0.3.2",
231
231
  "webpack": "~5.65.0",
232
232
  "webpack-bundle-analyzer": "~4.5.0",
233
233
  "webpack-cli": "~4.9.2",
234
- "webpack-dev-middleware": "~5.3.0",
234
+ "webpack-dev-middleware": "~5.3.1",
235
235
  "webpack-hot-middleware": "~2.25.1",
236
236
  "webpack-manifest-plugin": "~4.1.1",
237
237
  "webpack-merge": "~5.8.0",