@zohodesk/react-cli 1.1.16 → 1.1.18-exp.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. package/README.md +27 -0
  2. package/lib/babel/babel-option-utils/babel-preset-react-option.js +22 -0
  3. package/lib/babel/cmjs-plugins-presets.js +7 -1
  4. package/lib/babel/es-plugins-presets.js +7 -1
  5. package/lib/configs/webpack.dev.config.js +7 -2
  6. package/lib/configs/webpack.prod.config.js +9 -2
  7. package/lib/loaderUtils/getDevJsLoaders.js +5 -1
  8. package/lib/schemas/index.js +4 -0
  9. package/npm-shrinkwrap.json +42 -11
  10. package/package.json +4 -2
  11. package/packages/client_build_tool/lib/allCommandsConfigs.js +23 -0
  12. package/packages/client_build_tool/lib/buildToolLoggers.js +32 -0
  13. package/packages/client_build_tool/lib/commands/build/commandExecutor.js +21 -0
  14. package/packages/client_build_tool/lib/commands/build/config.js +12 -0
  15. package/packages/client_build_tool/lib/commands/build/errorHander.js +10 -0
  16. package/packages/client_build_tool/lib/commands/build/index.js +35 -0
  17. package/packages/client_build_tool/lib/commands/build/optionsProcesser.js +40 -0
  18. package/packages/client_build_tool/lib/commands/buildEs/commandExecutor.js +17 -0
  19. package/packages/client_build_tool/lib/commands/buildEs/config.js +12 -0
  20. package/packages/client_build_tool/lib/commands/buildLib/commandExecutor.js +17 -0
  21. package/packages/client_build_tool/lib/commands/buildLib/config.js +12 -0
  22. package/packages/client_build_tool/lib/commands/start/commandExecutor.js +13 -0
  23. package/packages/client_build_tool/lib/commands/start/config.js +12 -0
  24. package/packages/client_build_tool/lib/commands/start/deprecationHandler.js +10 -0
  25. package/packages/client_build_tool/lib/commands/start/errorHander.js +10 -0
  26. package/packages/client_build_tool/lib/commands/start/optionsProcesser.js +36 -0
  27. package/packages/client_build_tool/lib/commands/start/postProcesser.js +10 -0
  28. package/packages/client_build_tool/lib/commands/start/preProcesser.js +10 -0
  29. package/packages/client_build_tool/lib/commandsRouter.js +71 -0
  30. package/packages/client_build_tool/lib/shared/bundler/webpack/common/decidePublicPath.js +44 -0
  31. package/packages/client_build_tool/lib/shared/bundler/webpack/common/libAlias.js +31 -0
  32. package/packages/client_build_tool/lib/shared/bundler/webpack/common/nameTemplates.js +51 -0
  33. package/packages/client_build_tool/lib/shared/bundler/webpack/common/resourceBasedPublicPath.js +21 -0
  34. package/packages/client_build_tool/lib/shared/bundler/webpack/cssLoaders.js +16 -0
  35. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/CdnChangePlugin.js +111 -0
  36. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/EFCPlugin.js +1 -0
  37. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/ContributionGuide.md +11 -0
  38. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nKeysIdentifer.js +136 -0
  39. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nSplit.md +95 -0
  40. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/README.md +25 -0
  41. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/constants.js +29 -0
  42. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/createHash.js +24 -0
  43. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nDependency.js +99 -0
  44. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nLoadingRuntimeModule.js +81 -0
  45. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nModule.js +201 -0
  46. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/index.js +401 -0
  47. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/optionsHandler.js +67 -0
  48. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/pathCreator.js +23 -0
  49. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/readI18nValues.js +29 -0
  50. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/templateFileName.js +49 -0
  51. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/templateHashHelpers.js +77 -0
  52. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/collectI18nKeys.js +63 -0
  53. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/hashUtils.js +19 -0
  54. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/index.js +31 -0
  55. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/propertiesUtils.js +127 -0
  56. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RTLSplitPlugin.js +1 -0
  57. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/OverwriteCssPathForRTL.js +63 -0
  58. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/RtlCssPlugin.js +89 -0
  59. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/RtrSplit.md +34 -0
  60. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/RtlSplitPlugin/replaceCssDirTemplate.js +15 -0
  61. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/ServiceWorkerPlugin.js +155 -0
  62. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_plugins/UglifyCSSPlugin.js +49 -0
  63. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_postcss_loaders/ExcludePlugin.js +58 -0
  64. package/packages/client_build_tool/lib/shared/bundler/webpack/custom_postcss_loaders/RTLSplitPlugin.js +139 -0
  65. package/packages/client_build_tool/lib/shared/bundler/webpack/devServerConfig.js +34 -0
  66. package/packages/client_build_tool/lib/shared/bundler/webpack/getCSSLoaders.js +30 -0
  67. package/packages/client_build_tool/lib/shared/bundler/webpack/jsLoaders.js +17 -0
  68. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/assetLoaders.js +14 -0
  69. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/babelLoaderConfig.js +24 -0
  70. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configHtmlTemplateLoader.js +18 -0
  71. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configWebWorkerLoader.js +21 -0
  72. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/configsAssetsLoaders.js +138 -0
  73. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/cssClassNameGenerate.js +83 -0
  74. package/packages/client_build_tool/lib/shared/bundler/webpack/loaderConfigs/getCssLoaderOptions.js +23 -0
  75. package/packages/client_build_tool/lib/shared/bundler/webpack/loaders/workerLoader.js +133 -0
  76. package/packages/client_build_tool/lib/shared/bundler/webpack/optimizationConfig.js +39 -0
  77. package/packages/client_build_tool/lib/shared/bundler/webpack/outputConfig.js +28 -0
  78. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configCdnChangePlugin.js +18 -0
  79. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configCopyThirdpartyFile.js +38 -0
  80. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configEnvVariables.js +24 -0
  81. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configHtmlWebpackPlugin.js +28 -0
  82. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configI18nSplitPlugin.js +35 -0
  83. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configIgnorePlugin.js +16 -0
  84. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configMiniCSSExtractPlugin.js +23 -0
  85. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configProgressPlugin.js +19 -0
  86. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configRtlCssPlugin.js +27 -0
  87. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configServiceWorkerPlugin.js +18 -0
  88. package/packages/client_build_tool/lib/shared/bundler/webpack/pluginConfigs/configUglifyCSSPlugin.js +15 -0
  89. package/packages/client_build_tool/lib/shared/bundler/webpack/plugins.js +39 -0
  90. package/packages/client_build_tool/lib/shared/bundler/webpack/postcssPlugins.js +36 -0
  91. package/packages/client_build_tool/lib/shared/bundler/webpack/resolvers.js +42 -0
  92. package/packages/client_build_tool/lib/shared/bundler/webpack/splitChunksConfig.js +12 -0
  93. package/packages/client_build_tool/lib/shared/bundler/webpack/webpack.dev.config.js +17 -0
  94. package/packages/client_build_tool/lib/shared/bundler/webpack/webpackBuild.js +24 -0
  95. package/packages/client_build_tool/lib/shared/bundler/webpack/webpackConfig.js +50 -0
  96. package/packages/client_build_tool/lib/shared/commands-utlis/doBasicRequiermentCheck.js +16 -0
  97. package/packages/client_build_tool/lib/shared/commands-utlis/getCliPath.js +38 -0
  98. package/packages/client_build_tool/lib/shared/commands-utlis/index.js +29 -0
  99. package/packages/client_build_tool/lib/shared/commands-utlis/log.js +13 -0
  100. package/packages/client_build_tool/lib/shared/commands-utlis/readArgsFormCommandLine.js +11 -0
  101. package/packages/client_build_tool/lib/shared/commands-utlis/readOptionFormCommandLine.js +11 -0
  102. package/packages/client_build_tool/lib/shared/commands-utlis/spanSync.js +35 -0
  103. package/packages/client_build_tool/lib/shared/constants.js +33 -0
  104. package/packages/client_build_tool/lib/shared/schemas/applyValuesToShema.js +37 -0
  105. package/packages/client_build_tool/lib/shared/schemas/cliArgsToObject.js +37 -0
  106. package/packages/client_build_tool/lib/shared/schemas/defaultConfigValues.js +119 -0
  107. package/packages/client_build_tool/lib/shared/schemas/deprecatedOptionsHandler.js +65 -0
  108. package/packages/client_build_tool/lib/shared/schemas/getCWD.js +23 -0
  109. package/packages/client_build_tool/lib/shared/schemas/getNpmVersion.js +21 -0
  110. package/packages/client_build_tool/lib/shared/schemas/npmConfigToObject.js +32 -0
  111. package/packages/client_build_tool/lib/shared/schemas/oldDefaultConfigValues.js +480 -0
  112. package/packages/client_build_tool/lib/shared/schemas/readOptions.js +55 -0
  113. package/packages/client_build_tool/lib/shared/schemas/readOptionsForPackageJson.js +26 -0
  114. package/packages/client_build_tool/lib/shared/schemas/readOptionsOld.js +152 -0
  115. package/packages/client_build_tool/lib/shared/server/cert/Tsicsezwild-22-23.crt +37 -0
  116. package/packages/client_build_tool/lib/shared/server/cert/Tsicsezwild-22-23.key +27 -0
  117. package/packages/client_build_tool/lib/shared/server/configWebpackDevMiddleware.js +40 -0
  118. package/packages/client_build_tool/lib/shared/server/corsHandleing.js +28 -0
  119. package/packages/client_build_tool/lib/shared/server/getIp.js +30 -0
  120. package/packages/client_build_tool/lib/shared/server/getServerURL.js +29 -0
  121. package/packages/client_build_tool/lib/shared/server/httpsOptions.js +53 -0
  122. package/packages/client_build_tool/lib/shared/server/initExpressApp.js +19 -0
  123. package/packages/client_build_tool/lib/shared/server/initialHTMLHandling.js +66 -0
  124. package/packages/client_build_tool/lib/shared/server/serveContextFiles.js +24 -0
  125. package/packages/client_build_tool/lib/shared/server/serverBywebpackDevMiddleware.js +40 -0
  126. package/packages/client_build_tool/lib/shared/server/startHttpServer.js +26 -0
  127. package/packages/client_build_tool/lib/shared/server/startHttpsServer.js +34 -0
  128. package/packages/client_build_tool/lib/shared/server/unwanted/addHttp2Server.js +41 -0
  129. package/packages/client_build_tool/lib/shared/server/unwanted/configWebpackDevMiddleware.js +44 -0
  130. package/packages/client_build_tool/lib/shared/server/unwanted/devServerUtlis.js +1 -0
  131. package/packages/client_build_tool/lib/shared/server/unwanted/mockApiSupport.js +19 -0
  132. package/packages/client_build_tool/lib/shared/server/unwanted/webpackConfig.js +32 -0
  133. package/packages/client_build_tool/lib/shared/server/unwanted/websocketMockSetup.js +48 -0
  134. package/packages/client_build_tool/lib/shared/server/urlConcat.js +25 -0
  135. package/packages/client_build_tool/lib/shared/utils/utils.js +1 -0
package/README.md CHANGED
@@ -44,6 +44,33 @@ Now to run app
44
44
 
45
45
  # Change Logs
46
46
 
47
+ # 1.1.18 (30-01-2024)
48
+
49
+ **Feature:-**
50
+
51
+ - MJS loader support added.
52
+ - We can enable/disable this feature by `npm run start --enableMjsLoader=true/false` default value will be `false`.
53
+
54
+ ```
55
+ app: {
56
+ enableMjsLoader : true/false
57
+ }
58
+ ```
59
+
60
+ # 1.1.17 (24.1.2024)
61
+
62
+ **Feature:-**
63
+
64
+ - Updated browser data used for querying target browsers, which lead to reduced polyfills in our bundle.
65
+
66
+ ```
67
+ npm run updateTargetBrowserVersions // to update browser targets
68
+ ```
69
+
70
+ **Fixes**
71
+
72
+ - added prop types removal for es6 bundling, which is missed.
73
+
47
74
  # 1.1.16 (25-10-2023)
48
75
 
49
76
  **Feature:-**
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = getReactPreset;
7
+
8
+ function getReactPresetOptions() {
9
+ return {
10
+ runtime: 'classic',
11
+ // change it to 'automatic', when react version updated to 18
12
+ useSpread: true
13
+ };
14
+ }
15
+
16
+ function getReactPreset({
17
+ disableES5Transpile
18
+ }) {
19
+ const reactPreset = require.resolve('@babel/preset-react');
20
+
21
+ return disableES5Transpile ? [reactPreset, getReactPresetOptions()] : reactPreset;
22
+ }
@@ -7,6 +7,10 @@ exports.default = void 0;
7
7
 
8
8
  var _utils = require("../utils");
9
9
 
10
+ var _babelPresetReactOption = _interopRequireDefault(require("./babel-option-utils/babel-preset-react-option"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
10
14
  let {
11
15
  module: {
12
16
  mode
@@ -15,7 +19,9 @@ let {
15
19
  let isProd = mode.toLowerCase() === 'prod';
16
20
 
17
21
  var _default = () => ({
18
- presets: [require.resolve('@babel/preset-env'), require.resolve('@babel/preset-react')],
22
+ presets: [require.resolve('@babel/preset-env'), (0, _babelPresetReactOption.default)({
23
+ disableES5Transpile: false
24
+ })],
19
25
  plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
20
26
  __DOCS__: false
21
27
  } : {}]]
@@ -7,6 +7,10 @@ exports.default = void 0;
7
7
 
8
8
  var _utils = require("../utils");
9
9
 
10
+ var _babelPresetReactOption = _interopRequireDefault(require("./babel-option-utils/babel-preset-react-option"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
10
14
  let {
11
15
  module: {
12
16
  mode,
@@ -25,7 +29,9 @@ var _default = () => ({
25
29
  }
26
30
  } : {
27
31
  modules: false
28
- }], require.resolve('@babel/preset-react')],
32
+ }], (0, _babelPresetReactOption.default)({
33
+ disableES5Transpile
34
+ })],
29
35
  plugins: [[require.resolve('babel-plugin-transform-define'), isProd ? {
30
36
  __DOCS__: false
31
37
  } : {}], require.resolve('@babel/plugin-syntax-dynamic-import')]
@@ -42,7 +42,8 @@ const {
42
42
  sourcemap,
43
43
  crossorigin,
44
44
  postCssPluginOrder,
45
- externals
45
+ externals,
46
+ enableMjsLoader
46
47
  }
47
48
  } = options;
48
49
  const {
@@ -100,7 +101,11 @@ module.exports = {
100
101
 
101
102
  return false;
102
103
  }
103
- }, seperateCssModules ? {
104
+ }, enableMjsLoader ? {
105
+ test: /\.mjs$/,
106
+ include: /node_modules/,
107
+ type: 'javascript/auto'
108
+ } : null, seperateCssModules ? {
104
109
  test: /\.css$/,
105
110
  exclude: /\.module\.css$/,
106
111
  use: (0, _loaderUtils.getCSSLoaders)({
@@ -14,6 +14,8 @@ var _configsAssetsLoaders = require("../loaderUtils/configsAssetsLoaders");
14
14
 
15
15
  var _resolvers = require("./resolvers");
16
16
 
17
+ var _babelPresetReactOption = _interopRequireDefault(require("../babel/babel-option-utils/babel-preset-react-option"));
18
+
17
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
20
 
19
21
  // import TerserPlugin from 'terser-webpack-plugin';
@@ -127,8 +129,13 @@ module.exports = {
127
129
  }
128
130
  } : {
129
131
  modules: false
130
- }], require.resolve('@babel/preset-react')],
131
- plugins: disableES5Transpile ? [removeAttribute ? require.resolve('../utils/removeAttributes') : false, require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
132
+ }], (0, _babelPresetReactOption.default)({
133
+ disableES5Transpile
134
+ })],
135
+ plugins: disableES5Transpile ? [removeAttribute ? require.resolve('../utils/removeAttributes') : false, require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), // require.resolve(
136
+ // '@babel/plugin-proposal-object-rest-spread'
137
+ // ), REMOVING IT, BECAUSE WE ALREADY SUPPORT SPREAD SYNTAX FROM LIBRARIES.
138
+ shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
132
139
  exclude: ['error', 'log']
133
140
  }] : null].filter(Boolean) : [removeAttribute ? require.resolve('../utils/removeAttributes') : false, shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, [require.resolve('@babel/plugin-transform-runtime'), {
134
141
  helpers: true,
@@ -7,6 +7,8 @@ exports.default = void 0;
7
7
 
8
8
  var _path = _interopRequireDefault(require("path"));
9
9
 
10
+ var _babelPresetReactOption = _interopRequireDefault(require("../babel/babel-option-utils/babel-preset-react-option"));
11
+
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
 
12
14
  let getDevJsLoaders = options => {
@@ -40,7 +42,9 @@ let getDevJsLoaders = options => {
40
42
  }
41
43
  } : {
42
44
  modules: false
43
- }], require.resolve('@babel/preset-react')],
45
+ }], (0, _babelPresetReactOption.default)({
46
+ disableES5Transpile
47
+ })],
44
48
  plugins: disableES5Transpile ? [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
45
49
  exclude: ['error', 'log']
46
50
  }] : null].filter(Boolean) : [require.resolve('@babel/plugin-syntax-dynamic-import'), require.resolve('babel-plugin-lodash'), require.resolve('@babel/plugin-proposal-object-rest-spread'), devConsoleExculde ? [require.resolve('babel-plugin-transform-remove-console'), {
@@ -129,6 +129,10 @@ var _default = {
129
129
  value: '@zohodesk/client_packages_group',
130
130
  cli: 'module_resolve_path'
131
131
  },
132
+ enableMjsLoader: {
133
+ value: false,
134
+ cli: 'enableMjsLoader'
135
+ },
132
136
  customClassNamePrefix: [],
133
137
  // this option only for impact testing
134
138
  devCssFileBountry: {
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.16",
3
+ "version": "1.1.18-exp.1",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zohodesk/react-cli",
9
- "version": "1.1.16",
9
+ "version": "1.1.18-exp.1",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@babel/cli": "7.10.5",
@@ -31,6 +31,7 @@
31
31
  "babel-plugin-transform-dynamic-import": "2.1.0",
32
32
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
33
33
  "babel-plugin-transform-remove-console": "6.9.4",
34
+ "caniuse-lite": "1.0.30001579",
34
35
  "case-sensitive-paths-webpack-plugin": "2.3.0",
35
36
  "compression": "1.7.4",
36
37
  "copy-webpack-plugin": "5.1.2",
@@ -530,6 +531,7 @@
530
531
  "version": "7.19.1",
531
532
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz",
532
533
  "integrity": "sha512-0yu8vNATgLy4ivqMNBIwb1HebCelqN7YX8SL3FDXORv/RqT0zEEWUCH4GH44JsSrvCu6GqnAdR5EBFAPeNBB4Q==",
534
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.",
533
535
  "dependencies": {
534
536
  "@babel/helper-environment-visitor": "^7.18.9",
535
537
  "@babel/helper-plugin-utils": "^7.19.0",
@@ -547,6 +549,7 @@
547
549
  "version": "7.18.6",
548
550
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
549
551
  "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",
552
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.",
550
553
  "dependencies": {
551
554
  "@babel/helper-create-class-features-plugin": "^7.18.6",
552
555
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -562,6 +565,7 @@
562
565
  "version": "7.18.6",
563
566
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz",
564
567
  "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==",
568
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.",
565
569
  "dependencies": {
566
570
  "@babel/helper-plugin-utils": "^7.18.6",
567
571
  "@babel/plugin-syntax-dynamic-import": "^7.8.3"
@@ -577,6 +581,7 @@
577
581
  "version": "7.18.9",
578
582
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz",
579
583
  "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==",
584
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.",
580
585
  "dependencies": {
581
586
  "@babel/helper-plugin-utils": "^7.18.9",
582
587
  "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
@@ -592,6 +597,7 @@
592
597
  "version": "7.18.6",
593
598
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz",
594
599
  "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==",
600
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.",
595
601
  "dependencies": {
596
602
  "@babel/helper-plugin-utils": "^7.18.6",
597
603
  "@babel/plugin-syntax-json-strings": "^7.8.3"
@@ -607,6 +613,7 @@
607
613
  "version": "7.18.9",
608
614
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz",
609
615
  "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==",
616
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.",
610
617
  "dependencies": {
611
618
  "@babel/helper-plugin-utils": "^7.18.9",
612
619
  "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
@@ -622,6 +629,7 @@
622
629
  "version": "7.18.6",
623
630
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz",
624
631
  "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==",
632
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.",
625
633
  "dependencies": {
626
634
  "@babel/helper-plugin-utils": "^7.18.6",
627
635
  "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
@@ -637,6 +645,7 @@
637
645
  "version": "7.18.6",
638
646
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz",
639
647
  "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==",
648
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.",
640
649
  "dependencies": {
641
650
  "@babel/helper-plugin-utils": "^7.18.6",
642
651
  "@babel/plugin-syntax-numeric-separator": "^7.10.4"
@@ -652,6 +661,7 @@
652
661
  "version": "7.11.0",
653
662
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz",
654
663
  "integrity": "sha512-wzch41N4yztwoRw0ak+37wxwJM2oiIiy6huGCoqkvSTA9acYWcPfn9Y4aJqmFFJ70KTJUu29f3DQ43uJ9HXzEA==",
664
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.",
655
665
  "dependencies": {
656
666
  "@babel/helper-plugin-utils": "^7.10.4",
657
667
  "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
@@ -665,6 +675,7 @@
665
675
  "version": "7.18.6",
666
676
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz",
667
677
  "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==",
678
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.",
668
679
  "dependencies": {
669
680
  "@babel/helper-plugin-utils": "^7.18.6",
670
681
  "@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
@@ -680,6 +691,7 @@
680
691
  "version": "7.18.9",
681
692
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz",
682
693
  "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==",
694
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.",
683
695
  "dependencies": {
684
696
  "@babel/helper-plugin-utils": "^7.18.9",
685
697
  "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9",
@@ -696,6 +708,7 @@
696
708
  "version": "7.18.6",
697
709
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz",
698
710
  "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==",
711
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.",
699
712
  "dependencies": {
700
713
  "@babel/helper-create-class-features-plugin": "^7.18.6",
701
714
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -711,6 +724,7 @@
711
724
  "version": "7.18.6",
712
725
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz",
713
726
  "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==",
727
+ "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.",
714
728
  "dependencies": {
715
729
  "@babel/helper-create-regexp-features-plugin": "^7.18.6",
716
730
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -3088,7 +3102,8 @@
3088
3102
  "node_modules/abab": {
3089
3103
  "version": "2.0.6",
3090
3104
  "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
3091
- "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="
3105
+ "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",
3106
+ "deprecated": "Use your platform's native atob() and btoa() methods instead"
3092
3107
  },
3093
3108
  "node_modules/abbrev": {
3094
3109
  "version": "1.1.1",
@@ -3940,6 +3955,7 @@
3940
3955
  "version": "1.0.0",
3941
3956
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
3942
3957
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
3958
+ "deprecated": "Please upgrade to v1.0.1",
3943
3959
  "dependencies": {
3944
3960
  "kind-of": "^6.0.0"
3945
3961
  },
@@ -3951,6 +3967,7 @@
3951
3967
  "version": "1.0.0",
3952
3968
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
3953
3969
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
3970
+ "deprecated": "Please upgrade to v1.0.1",
3954
3971
  "dependencies": {
3955
3972
  "kind-of": "^6.0.0"
3956
3973
  },
@@ -4678,9 +4695,9 @@
4678
4695
  }
4679
4696
  },
4680
4697
  "node_modules/caniuse-lite": {
4681
- "version": "1.0.30001416",
4682
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001416.tgz",
4683
- "integrity": "sha512-06wzzdAkCPZO+Qm4e/eNghZBDfVNDsCgw33T27OwBH9unE9S478OYw//Q2L7Npf/zBzs7rjZOszIFQkwQKAEqA==",
4698
+ "version": "1.0.30001579",
4699
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
4700
+ "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==",
4684
4701
  "funding": [
4685
4702
  {
4686
4703
  "type": "opencollective",
@@ -4689,6 +4706,10 @@
4689
4706
  {
4690
4707
  "type": "tidelift",
4691
4708
  "url": "https://tidelift.com/funding/github/npm/caniuse-lite"
4709
+ },
4710
+ {
4711
+ "type": "github",
4712
+ "url": "https://github.com/sponsors/ai"
4692
4713
  }
4693
4714
  ]
4694
4715
  },
@@ -5849,6 +5870,7 @@
5849
5870
  "version": "1.0.0",
5850
5871
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
5851
5872
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
5873
+ "deprecated": "Please upgrade to v1.0.1",
5852
5874
  "dependencies": {
5853
5875
  "kind-of": "^6.0.0"
5854
5876
  },
@@ -5860,6 +5882,7 @@
5860
5882
  "version": "1.0.0",
5861
5883
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
5862
5884
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
5885
+ "deprecated": "Please upgrade to v1.0.1",
5863
5886
  "dependencies": {
5864
5887
  "kind-of": "^6.0.0"
5865
5888
  },
@@ -6046,6 +6069,7 @@
6046
6069
  "version": "2.0.1",
6047
6070
  "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz",
6048
6071
  "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==",
6072
+ "deprecated": "Use your platform's native DOMException instead",
6049
6073
  "dependencies": {
6050
6074
  "webidl-conversions": "^5.0.0"
6051
6075
  },
@@ -7307,6 +7331,7 @@
7307
7331
  "version": "1.0.0",
7308
7332
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
7309
7333
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
7334
+ "deprecated": "Please upgrade to v1.0.1",
7310
7335
  "dependencies": {
7311
7336
  "kind-of": "^6.0.0"
7312
7337
  },
@@ -7318,6 +7343,7 @@
7318
7343
  "version": "1.0.0",
7319
7344
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
7320
7345
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
7346
+ "deprecated": "Please upgrade to v1.0.1",
7321
7347
  "dependencies": {
7322
7348
  "kind-of": "^6.0.0"
7323
7349
  },
@@ -7377,7 +7403,8 @@
7377
7403
  "node_modules/figgy-pudding": {
7378
7404
  "version": "3.5.2",
7379
7405
  "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
7380
- "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw=="
7406
+ "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==",
7407
+ "deprecated": "This module is no longer supported."
7381
7408
  },
7382
7409
  "node_modules/figures": {
7383
7410
  "version": "2.0.0",
@@ -7946,7 +7973,7 @@
7946
7973
  "version": "14.2.2",
7947
7974
  "resolved": "https://registry.npmjs.org/gitlab/-/gitlab-14.2.2.tgz",
7948
7975
  "integrity": "sha512-MVLGXLFk5erJCeDnDtV+srDHogadVV8y94G4mAulukCwdCwh+IUqsU4ESZksZvBis8VTJsK9Mj01lRJ1JrxVsg==",
7949
- "deprecated": "The gitlab package has found a new home in the @gitbeaker organization. For the latest gitlab node library, check out @gitbeaker/node. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme",
7976
+ "deprecated": "This package has found a new home in the @gitbeaker organization. For the latest GitLab API library for node, browser, and deno usage, check out @gitbeaker/rest. A full list of the features can be found here: https://github.com/jdalrymple/gitbeaker#readme",
7950
7977
  "dependencies": {
7951
7978
  "chalk": "^3.0.0",
7952
7979
  "form-data": "^3.0.0",
@@ -9186,6 +9213,7 @@
9186
9213
  "version": "0.1.6",
9187
9214
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
9188
9215
  "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",
9216
+ "deprecated": "Please upgrade to v0.1.7",
9189
9217
  "dependencies": {
9190
9218
  "kind-of": "^3.0.2"
9191
9219
  },
@@ -9289,6 +9317,7 @@
9289
9317
  "version": "0.1.4",
9290
9318
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
9291
9319
  "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",
9320
+ "deprecated": "Please upgrade to v0.1.5",
9292
9321
  "dependencies": {
9293
9322
  "kind-of": "^3.0.2"
9294
9323
  },
@@ -16181,6 +16210,7 @@
16181
16210
  "version": "1.0.0",
16182
16211
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
16183
16212
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
16213
+ "deprecated": "Please upgrade to v1.0.1",
16184
16214
  "dependencies": {
16185
16215
  "kind-of": "^6.0.0"
16186
16216
  },
@@ -16192,6 +16222,7 @@
16192
16222
  "version": "1.0.0",
16193
16223
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
16194
16224
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
16225
+ "deprecated": "Please upgrade to v1.0.1",
16195
16226
  "dependencies": {
16196
16227
  "kind-of": "^6.0.0"
16197
16228
  },
@@ -22518,9 +22549,9 @@
22518
22549
  "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg=="
22519
22550
  },
22520
22551
  "caniuse-lite": {
22521
- "version": "1.0.30001416",
22522
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001416.tgz",
22523
- "integrity": "sha512-06wzzdAkCPZO+Qm4e/eNghZBDfVNDsCgw33T27OwBH9unE9S478OYw//Q2L7Npf/zBzs7rjZOszIFQkwQKAEqA=="
22552
+ "version": "1.0.30001579",
22553
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
22554
+ "integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA=="
22524
22555
  },
22525
22556
  "capture-exit": {
22526
22557
  "version": "2.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.16",
3
+ "version": "1.1.18-exp.1",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",
@@ -12,7 +12,8 @@
12
12
  "prepublishOnly": "npm prune --production",
13
13
  "lint": "eslint src ./bin/cli.js",
14
14
  "postpublish": "node postpublish.js",
15
- "expublish": "npm publish --tag experimental-version"
15
+ "expublish": "npm publish --tag experimental-version",
16
+ "updateTargetBrowserVersions": "npx update-browserslist-db@latest"
16
17
  },
17
18
  "engines": {
18
19
  "node": ">=8.15.1"
@@ -54,6 +55,7 @@
54
55
  "babel-plugin-transform-dynamic-import": "2.1.0",
55
56
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
56
57
  "babel-plugin-transform-remove-console": "6.9.4",
58
+ "caniuse-lite": "1.0.30001579",
57
59
  "case-sensitive-paths-webpack-plugin": "2.3.0",
58
60
  "compression": "1.7.4",
59
61
  "copy-webpack-plugin": "5.1.2",
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _fs = require("fs");
9
+
10
+ var _path = require("path");
11
+
12
+ const allConfigs = [];
13
+ (0, _fs.readdirSync)((0, _path.join)(__dirname, 'commands')).forEach(folderName => {
14
+ const modulePath = (0, _path.join)(__dirname, './commands/' + folderName + '/config.js');
15
+
16
+ if ((0, _fs.existsSync)(modulePath)) {
17
+ const config = require(modulePath).default;
18
+
19
+ allConfigs.push(config);
20
+ }
21
+ });
22
+ var _default = allConfigs;
23
+ exports.default = _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.debugLogger = debugLogger;
7
+ exports.errorLogger = errorLogger;
8
+ exports.messageLogger = messageLogger;
9
+ exports.verboseLogger = verboseLogger;
10
+ exports.warnLogger = warnLogger;
11
+
12
+ /* eslint-disable no-console */
13
+ function verboseLogger(...args) {// TODO: need to be remove when publish happens
14
+ // console.log(...args);
15
+ console.log(...args);
16
+ }
17
+
18
+ function warnLogger(...args) {
19
+ console.warn(...args);
20
+ }
21
+
22
+ function messageLogger(...args) {
23
+ console.log(...args);
24
+ }
25
+
26
+ function debugLogger(...args) {// TODO: need to be remove when publish happens
27
+ // console.log(...args);
28
+ }
29
+
30
+ function errorLogger(...args) {
31
+ console.error(...args);
32
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.commandExecutor = commandExecutor;
7
+
8
+ var _buildToolLoggers = require("../../buildToolLoggers");
9
+
10
+ var _webpackBuild = _interopRequireDefault(require("../../shared/bundler/webpack/webpackBuild"));
11
+
12
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
+
14
+ // import { spawnSyncIO } from '../../shared/commands-utlis/spanSync';
15
+ function commandExecutor(options) {
16
+ (0, _buildToolLoggers.messageLogger)('Build is runnning');
17
+ (0, _webpackBuild.default)(options); // spawnSyncIO('webpack', [
18
+ // '--config',
19
+ // require.resolve('../../shared/bundler/webpack/webpack.dev.config.js')
20
+ // ]);
21
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = {
8
+ name: "build",
9
+ alias: ["devbuild"],
10
+ dirname: __dirname
11
+ };
12
+ exports.default = _default;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.errorHander = errorHander;
7
+
8
+ function errorHander(e) {
9
+ console.error(e);
10
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.configs = void 0;
7
+
8
+ var _commandExecutor = require("./commandExecutor");
9
+
10
+ var _errorHander = require("./errorHander");
11
+
12
+ var _optionsProcesser = require("./optionsProcesser");
13
+
14
+ // import { spawnSyncIO } from '../commands-utlis/spanSync.js';
15
+ function run(options) {
16
+ // const { disableWatch } = options.app;
17
+ // spawnSyncIO('node', [
18
+ // require.resolve(
19
+ // disableWatch ? '../servers/nowatchserver' : '../servers/server'
20
+ // ),
21
+ // '--expose-http2',
22
+ // ...args
23
+ // ]);
24
+ (0, _commandExecutor.commandExecutor)(options).then(console.log).catch(e => {
25
+ (0, _errorHander.errorHander)(e);
26
+ });
27
+ }
28
+
29
+ const configs = {
30
+ name: 'devSeverStart',
31
+ alias: ['start'],
32
+ optionsProcesser: _optionsProcesser.optionsProcesser,
33
+ run
34
+ };
35
+ exports.configs = configs;