@elliemae/pui-cli 9.0.0-next.7 → 9.0.0-next.9

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/dist/cjs/index.js CHANGED
@@ -26,7 +26,6 @@ __export(lib_exports, {
26
26
  jestNodeConfig: () => import_jest_node_config.jestNodeConfig,
27
27
  lintStagedConfig: () => import_lint_staged_config.lintStagedConfig,
28
28
  loadRoutes: () => import_appRoutes.loadRoutes,
29
- managerWebpack: () => import_webpack_storybook.managerWebpack,
30
29
  prettierConfig: () => import_prettier_config.prettierConfig,
31
30
  stylelintConfig: () => import_stylelint_config.stylelintConfig,
32
31
  vitestConfig: () => import_vitest_config.vitestConfig,
@@ -98,7 +98,7 @@ const devConfig = {
98
98
  // Add development plugins
99
99
  plugins: [
100
100
  new import_html_webpack_plugin.default({
101
- inject: !(0, import_helpers.isAppLoaderEnabled)(),
101
+ inject: !(0, import_helpers.isAppLoaderEnabled)() ? "head" : false,
102
102
  // Inject all files that are generated by webpack, e.g. bundle.js
103
103
  template: !(0, import_helpers.isAppLoaderEnabled)() ? "app/index.html" : "app/index-app-loader.html",
104
104
  emui: {
@@ -110,7 +110,8 @@ const devConfig = {
110
110
  diagnosticsScriptPath,
111
111
  encwLoaderScriptPath,
112
112
  googleTagManager: (0, import_helpers.isGoogleTagManagerEnabled)()
113
- }
113
+ },
114
+ scriptLoading: "module"
114
115
  }),
115
116
  new import_circular_dependency_plugin.default({
116
117
  exclude: /a\.(js|ts|jsx|tsx)|node_modules/,
@@ -86,12 +86,16 @@ const baseConfig = (options) => ({
86
86
  path: import_node_path.default.resolve(process.cwd(), "dist/umd"),
87
87
  publicPath: "auto",
88
88
  library: {
89
- name: (0, import_helpers.getLibraryVariableName)(),
90
- type: "umd"
89
+ // name: getLibraryVariableName(),
90
+ type: "module"
91
91
  },
92
+ module: true,
92
93
  ...options.output
93
94
  },
94
95
  // Merge with env dependent settings
96
+ experiments: {
97
+ outputModule: true
98
+ },
95
99
  optimization: options.optimization,
96
100
  module: {
97
101
  rules: [
@@ -47,17 +47,13 @@ const getHtmlWebpackPlugins = () => {
47
47
  (htmlTemplateFile) => new import_html_webpack_plugin.default({
48
48
  template: htmlTemplateFile,
49
49
  filename: import_node_path.default.basename(htmlTemplateFile),
50
- inject: true
50
+ inject: false,
51
+ scriptLoading: "module"
51
52
  })
52
53
  );
53
54
  };
54
55
  var webpack_lib_dev_babel_default = (0, import_webpack_lib_base_babel.baseConfig)({
55
56
  mode: "development",
56
- // output: {
57
- // filename: `js/${libraryName}.js`,
58
- // chunkFilename: `js/${libraryName}.chunk.js`,
59
- // assetModuleFilename: '[name][ext][query]',
60
- // },
61
57
  optimization: {
62
58
  splitChunks: {
63
59
  chunks: "all"
@@ -74,10 +70,7 @@ var webpack_lib_dev_babel_default = (0, import_webpack_lib_base_babel.baseConfig
74
70
  failOnError: false
75
71
  // show a warning when there is a circular dependency
76
72
  }),
77
- new import_mini_css_extract_plugin.default({
78
- // filename: `css/${libraryName}.css`,
79
- // chunkFilename: `css/${libraryName}.chunk.css`,
80
- }),
73
+ new import_mini_css_extract_plugin.default({}),
81
74
  new import_webpack.default.ProgressPlugin()
82
75
  ],
83
76
  devtool: "eval-source-map",
@@ -46,7 +46,8 @@ const getHtmlWebpackPlugins = () => {
46
46
  (htmlTemplateFile) => new import_html_webpack_plugin.default({
47
47
  template: htmlTemplateFile,
48
48
  filename: import_node_path.default.basename(htmlTemplateFile),
49
- inject: true,
49
+ inject: false,
50
+ scriptLoading: "module",
50
51
  minify: {
51
52
  removeComments: true,
52
53
  collapseWhitespace: true,
@@ -82,10 +83,7 @@ const prodConfig = {
82
83
  },
83
84
  plugins: [
84
85
  ...getHtmlWebpackPlugins(),
85
- new import_mini_css_extract_plugin.default({
86
- // filename: `css/${libraryName}.[contenthash].css`,
87
- // chunkFilename: `css/${libraryName}.[contenthash].chunk.css`,
88
- }),
86
+ new import_mini_css_extract_plugin.default({}),
89
87
  ...(0, import_helpers.getCompressionPlugins)(true),
90
88
  new import_webpack_bundle_analyzer.BundleAnalyzerPlugin({
91
89
  analyzerMode: "static",
@@ -111,7 +111,7 @@ const {
111
111
  basePath
112
112
  } = (0, import_helpers.getPaths)();
113
113
  const htmlWebpackPlugin = new import_html_webpack_plugin.default({
114
- inject: !(0, import_helpers.isAppLoaderEnabled)(),
114
+ inject: !(0, import_helpers.isAppLoaderEnabled)() ? "head" : false,
115
115
  template: !(0, import_helpers.isAppLoaderEnabled)() ? "app/index.html" : "app/index-app-loader.html",
116
116
  minify: {
117
117
  removeComments: true,
@@ -134,7 +134,8 @@ const htmlWebpackPlugin = new import_html_webpack_plugin.default({
134
134
  diagnosticsScriptPath,
135
135
  encwLoaderScriptPath,
136
136
  googleTagManager: (0, import_helpers.isGoogleTagManagerEnabled)()
137
- }
137
+ },
138
+ scriptLoading: "module"
138
139
  });
139
140
  const config = (0, import_webpack_base_babel.baseConfig)(getProdConfig());
140
141
  if (config.plugins)
@@ -28,7 +28,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var webpack_storybook_exports = {};
30
30
  __export(webpack_storybook_exports, {
31
- managerWebpack: () => managerWebpack,
32
31
  webpackFinal: () => webpackFinal
33
32
  });
34
33
  module.exports = __toCommonJS(webpack_storybook_exports);
@@ -113,10 +112,3 @@ const webpackFinal = (config, { configType }) => {
113
112
  }
114
113
  return config;
115
114
  };
116
- const managerWebpack = (config) => {
117
- if (config.plugins)
118
- config.plugins = config.plugins.concat((0, import_helpers.getCompressionPlugins)());
119
- if (config.resolve)
120
- config.resolve.alias = { ...config.resolve.alias, ...(0, import_helpers.getAlias)() };
121
- return config;
122
- };
package/dist/esm/index.js CHANGED
@@ -9,7 +9,7 @@ import { vitestConfig } from "./testing/vitest.config.js";
9
9
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
10
10
  import { lintStagedConfig } from "./lint-config/lint-staged.config.js";
11
11
  import { loadRoutes } from "./server/appRoutes.js";
12
- import { webpackFinal, managerWebpack } from "./webpack/webpack.storybook.js";
12
+ import { webpackFinal } from "./webpack/webpack.storybook.js";
13
13
  export {
14
14
  babelConfig,
15
15
  commitlintConfig,
@@ -19,7 +19,6 @@ export {
19
19
  jestNodeConfig,
20
20
  lintStagedConfig,
21
21
  loadRoutes,
22
- managerWebpack,
23
22
  prettierConfig,
24
23
  stylelintConfig,
25
24
  vitestConfig,
@@ -68,7 +68,7 @@ const devConfig = {
68
68
  // Add development plugins
69
69
  plugins: [
70
70
  new HtmlWebpackPlugin({
71
- inject: !isAppLoaderEnabled(),
71
+ inject: !isAppLoaderEnabled() ? "head" : false,
72
72
  // Inject all files that are generated by webpack, e.g. bundle.js
73
73
  template: !isAppLoaderEnabled() ? "app/index.html" : "app/index-app-loader.html",
74
74
  emui: {
@@ -80,7 +80,8 @@ const devConfig = {
80
80
  diagnosticsScriptPath,
81
81
  encwLoaderScriptPath,
82
82
  googleTagManager: isGoogleTagManagerEnabled()
83
- }
83
+ },
84
+ scriptLoading: "module"
84
85
  }),
85
86
  new CircularDependencyPlugin({
86
87
  exclude: /a\.(js|ts|jsx|tsx)|node_modules/,
@@ -9,7 +9,6 @@ import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
9
9
  import browserslistToEsbuild from "browserslist-to-esbuild";
10
10
  import {
11
11
  excludeNodeModulesExcept,
12
- getLibraryVariableName,
13
12
  modulesToTranspile,
14
13
  getAlias,
15
14
  filterByFilePresence
@@ -59,12 +58,16 @@ const baseConfig = (options) => ({
59
58
  path: path.resolve(process.cwd(), "dist/umd"),
60
59
  publicPath: "auto",
61
60
  library: {
62
- name: getLibraryVariableName(),
63
- type: "umd"
61
+ // name: getLibraryVariableName(),
62
+ type: "module"
64
63
  },
64
+ module: true,
65
65
  ...options.output
66
66
  },
67
67
  // Merge with env dependent settings
68
+ experiments: {
69
+ outputModule: true
70
+ },
68
71
  optimization: options.optimization,
69
72
  module: {
70
73
  rules: [
@@ -14,17 +14,13 @@ const getHtmlWebpackPlugins = () => {
14
14
  (htmlTemplateFile) => new HtmlWebpackPlugin({
15
15
  template: htmlTemplateFile,
16
16
  filename: path.basename(htmlTemplateFile),
17
- inject: true
17
+ inject: false,
18
+ scriptLoading: "module"
18
19
  })
19
20
  );
20
21
  };
21
22
  var webpack_lib_dev_babel_default = baseConfig({
22
23
  mode: "development",
23
- // output: {
24
- // filename: `js/${libraryName}.js`,
25
- // chunkFilename: `js/${libraryName}.chunk.js`,
26
- // assetModuleFilename: '[name][ext][query]',
27
- // },
28
24
  optimization: {
29
25
  splitChunks: {
30
26
  chunks: "all"
@@ -41,10 +37,7 @@ var webpack_lib_dev_babel_default = baseConfig({
41
37
  failOnError: false
42
38
  // show a warning when there is a circular dependency
43
39
  }),
44
- new MiniCssExtractPlugin({
45
- // filename: `css/${libraryName}.css`,
46
- // chunkFilename: `css/${libraryName}.chunk.css`,
47
- }),
40
+ new MiniCssExtractPlugin({}),
48
41
  new webpack.ProgressPlugin()
49
42
  ],
50
43
  devtool: "eval-source-map",
@@ -13,7 +13,8 @@ const getHtmlWebpackPlugins = () => {
13
13
  (htmlTemplateFile) => new HtmlWebpackPlugin({
14
14
  template: htmlTemplateFile,
15
15
  filename: path.basename(htmlTemplateFile),
16
- inject: true,
16
+ inject: false,
17
+ scriptLoading: "module",
17
18
  minify: {
18
19
  removeComments: true,
19
20
  collapseWhitespace: true,
@@ -49,10 +50,7 @@ const prodConfig = {
49
50
  },
50
51
  plugins: [
51
52
  ...getHtmlWebpackPlugins(),
52
- new MiniCssExtractPlugin({
53
- // filename: `css/${libraryName}.[contenthash].css`,
54
- // chunkFilename: `css/${libraryName}.[contenthash].chunk.css`,
55
- }),
53
+ new MiniCssExtractPlugin({}),
56
54
  ...getCompressionPlugins(true),
57
55
  new BundleAnalyzerPlugin({
58
56
  analyzerMode: "static",
@@ -83,7 +83,7 @@ const {
83
83
  basePath
84
84
  } = getPaths();
85
85
  const htmlWebpackPlugin = new HtmlWebpackPlugin({
86
- inject: !isAppLoaderEnabled(),
86
+ inject: !isAppLoaderEnabled() ? "head" : false,
87
87
  template: !isAppLoaderEnabled() ? "app/index.html" : "app/index-app-loader.html",
88
88
  minify: {
89
89
  removeComments: true,
@@ -106,7 +106,8 @@ const htmlWebpackPlugin = new HtmlWebpackPlugin({
106
106
  diagnosticsScriptPath,
107
107
  encwLoaderScriptPath,
108
108
  googleTagManager: isGoogleTagManagerEnabled()
109
- }
109
+ },
110
+ scriptLoading: "module"
110
111
  });
111
112
  const config = baseConfig(getProdConfig());
112
113
  if (config.plugins)
@@ -79,14 +79,6 @@ const webpackFinal = (config, { configType }) => {
79
79
  }
80
80
  return config;
81
81
  };
82
- const managerWebpack = (config) => {
83
- if (config.plugins)
84
- config.plugins = config.plugins.concat(getCompressionPlugins());
85
- if (config.resolve)
86
- config.resolve.alias = { ...config.resolve.alias, ...getAlias() };
87
- return config;
88
- };
89
82
  export {
90
- managerWebpack,
91
83
  webpackFinal
92
84
  };
@@ -9,4 +9,4 @@ export { vitestConfig } from './testing/vitest.config.js';
9
9
  export { jestNodeConfig } from './testing/jest.node.config.cjs';
10
10
  export { lintStagedConfig } from './lint-config/lint-staged.config.js';
11
11
  export { loadRoutes } from './server/appRoutes.js';
12
- export { webpackFinal, managerWebpack } from './webpack/webpack.storybook.js';
12
+ export { webpackFinal } from './webpack/webpack.storybook.js';
@@ -2,4 +2,3 @@ import webpack, { Configuration } from 'webpack';
2
2
  export declare const webpackFinal: (config: Configuration, { configType }: {
3
3
  configType: string;
4
4
  }) => webpack.Configuration;
5
- export declare const managerWebpack: (config: Configuration) => webpack.Configuration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "9.0.0-next.7",
3
+ "version": "9.0.0-next.9",
4
4
  "description": "ICE MT UI Platform CLI",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -18,10 +18,15 @@
18
18
  "./releaseConfig": {
19
19
  "require": "./dist/cjs/release.config.cjs"
20
20
  },
21
+ "./storybook": {
22
+ "import": "./dist/esm/webpack/webpack.storybook.js",
23
+ "require": "./dist/cjs/webpack/webpack.storybook.js"
24
+ },
21
25
  "./vitest": {
22
26
  "import": "./dist/esm/testing/vitest.config.js"
23
27
  },
24
28
  "./server/routes": {
29
+ "import": "./dist/esm/server/appRoutes.js",
25
30
  "require": "./dist/cjs/server/appRoutes.js"
26
31
  },
27
32
  "./app.tsconfig.json": "./app.tsconfig.json",
@@ -93,30 +98,30 @@
93
98
  "@commitlint/cli": "~17.6.3",
94
99
  "@commitlint/config-conventional": "~17.6.3",
95
100
  "@elliemae/browserslist-config-elliemae-latest-browsers": "~1.7.0",
96
- "@faker-js/faker": "7.6.0",
101
+ "@faker-js/faker": "8.0.0",
97
102
  "@nrwl/cli": "15.9.3",
98
- "@nrwl/tao": "16.1.3",
99
- "@nrwl/workspace": "16.1.3",
103
+ "@nrwl/tao": "16.1.4",
104
+ "@nrwl/workspace": "16.1.4",
100
105
  "@pmmmwh/react-refresh-webpack-plugin": "~0.5.10",
101
106
  "@semantic-release/changelog": "~6.0.3",
102
107
  "@semantic-release/exec": "~6.0.3",
103
108
  "@semantic-release/git": "~10.0.1",
104
- "@storybook/addon-a11y": "~7.0.9",
105
- "@storybook/addon-essentials": "~7.0.9",
109
+ "@storybook/addon-a11y": "~7.0.11",
110
+ "@storybook/addon-essentials": "~7.0.11",
106
111
  "@storybook/addon-events": "~6.2.9",
107
- "@storybook/addon-interactions": "~7.0.9",
108
- "@storybook/addon-links": "~7.0.9",
109
- "@storybook/addon-storysource": "~7.0.9",
110
- "@storybook/blocks": "~7.0.9",
111
- "@storybook/builder-vite": "~7.0.9",
112
- "@storybook/builder-webpack5": "~7.0.9",
112
+ "@storybook/addon-interactions": "~7.0.11",
113
+ "@storybook/addon-links": "~7.0.11",
114
+ "@storybook/addon-storysource": "~7.0.11",
115
+ "@storybook/blocks": "~7.0.11",
116
+ "@storybook/builder-vite": "~7.0.11",
117
+ "@storybook/builder-webpack5": "~7.0.11",
113
118
  "@storybook/jest": "~0.1.0",
114
119
  "@storybook/manager-webpack5": "~6.5.16",
115
- "@storybook/react": "~7.0.9",
116
- "@storybook/react-vite": "~7.0.9",
117
- "@storybook/react-webpack5": "~7.0.9",
120
+ "@storybook/react": "~7.0.11",
121
+ "@storybook/react-vite": "~7.0.11",
122
+ "@storybook/react-webpack5": "~7.0.11",
118
123
  "@storybook/testing-library": "~0.1.0",
119
- "@storybook/theming": "~7.0.9",
124
+ "@storybook/theming": "~7.0.11",
120
125
  "@stylelint/postcss-css-in-js": "~0.38.0",
121
126
  "@svgr/webpack": "~8.0.1",
122
127
  "@swc/cli": "~0.1.62",
@@ -134,7 +139,7 @@
134
139
  "@types/jest": "~29.5.1",
135
140
  "@types/jest-axe": "~3.5.5",
136
141
  "@types/moment-locales-webpack-plugin": "~1.2.3",
137
- "@types/node": "~20.1.1",
142
+ "@types/node": "~20.1.3",
138
143
  "@types/normalize-path": "~3.0.0",
139
144
  "@types/postcss-preset-env": "~8.0.0",
140
145
  "@types/rimraf": "~4.0.5",
@@ -194,7 +199,7 @@
194
199
  "eslint-plugin-eslint-comments": "~3.2.0",
195
200
  "eslint-plugin-import": "~2.27.5",
196
201
  "eslint-plugin-jest": "~27.2.1",
197
- "eslint-plugin-jsdoc": "~44.0.2",
202
+ "eslint-plugin-jsdoc": "~44.2.3",
198
203
  "eslint-plugin-jsx-a11y": "~6.7.1",
199
204
  "eslint-plugin-mdx": "~2.1.0",
200
205
  "eslint-plugin-prettier": "~4.2.1",
@@ -202,7 +207,7 @@
202
207
  "eslint-plugin-react-hooks": "~4.6.0",
203
208
  "eslint-plugin-redux-saga": "~1.3.2",
204
209
  "eslint-plugin-storybook": "~0.6.12",
205
- "eslint-plugin-testing-library": "~5.10.3",
210
+ "eslint-plugin-testing-library": "~5.11.0",
206
211
  "eslint-plugin-wdio": "~8.8.7",
207
212
  "execa": "~7.1.1",
208
213
  "express": "~4.18.2",
@@ -212,7 +217,7 @@
212
217
  "fast-glob": "~3.2.12",
213
218
  "find-up": "~6.3.0",
214
219
  "find-up-cli": "~5.0.0",
215
- "happy-dom": "~9.10.9",
220
+ "happy-dom": "~9.17.0",
216
221
  "helmet-csp": "~3.4.0",
217
222
  "html-loader": "~4.2.0",
218
223
  "html-webpack-plugin": "~5.5.1",
@@ -241,7 +246,7 @@
241
246
  "node-plop": "~0.31.1",
242
247
  "nodemon": "~2.0.22",
243
248
  "normalize-path": "~3.0.0",
244
- "npm-check-updates": "16.10.10",
249
+ "npm-check-updates": "16.10.12",
245
250
  "pino": "~8.14.1",
246
251
  "pino-http": "~8.3.3",
247
252
  "pino-pretty": "~10.0.0",
@@ -267,7 +272,7 @@
267
272
  "semantic-release": "~21.0.2",
268
273
  "slackify-markdown": "~4.3.1",
269
274
  "speed-measure-webpack-plugin": "~1.5.0",
270
- "storybook": "~7.0.9",
275
+ "storybook": "~7.0.11",
271
276
  "storybook-addon-turbo-build": "~2.0.1",
272
277
  "storybook-react-router": "~1.0.8",
273
278
  "style-loader": "~3.3.2",
@@ -286,7 +291,7 @@
286
291
  "vite": "~4.3.5",
287
292
  "vitest": "~0.31.0",
288
293
  "vite-tsconfig-paths": "~4.2.0",
289
- "webpack": "~5.82.0",
294
+ "webpack": "~5.82.1",
290
295
  "webpack-bundle-analyzer": "~4.8.0",
291
296
  "webpack-cli": "~5.1.1",
292
297
  "webpack-dev-server": "~4.15.0",