@zohodesk/react-cli 1.1.17 → 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 +13 -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 +31 -5
  10. package/package.json +1 -1
  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,19 @@ 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
+
47
60
  # 1.1.17 (24.1.2024)
48
61
 
49
62
  **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'), shouldRemovePropTypes ? [require.resolve('babel-plugin-transform-react-remove-prop-types'), removePropTypes] : false, 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.17",
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.17",
9
+ "version": "1.1.18-exp.1",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@babel/cli": "7.10.5",
@@ -531,6 +531,7 @@
531
531
  "version": "7.19.1",
532
532
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.19.1.tgz",
533
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.",
534
535
  "dependencies": {
535
536
  "@babel/helper-environment-visitor": "^7.18.9",
536
537
  "@babel/helper-plugin-utils": "^7.19.0",
@@ -548,6 +549,7 @@
548
549
  "version": "7.18.6",
549
550
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
550
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.",
551
553
  "dependencies": {
552
554
  "@babel/helper-create-class-features-plugin": "^7.18.6",
553
555
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -563,6 +565,7 @@
563
565
  "version": "7.18.6",
564
566
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz",
565
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.",
566
569
  "dependencies": {
567
570
  "@babel/helper-plugin-utils": "^7.18.6",
568
571
  "@babel/plugin-syntax-dynamic-import": "^7.8.3"
@@ -578,6 +581,7 @@
578
581
  "version": "7.18.9",
579
582
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz",
580
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.",
581
585
  "dependencies": {
582
586
  "@babel/helper-plugin-utils": "^7.18.9",
583
587
  "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
@@ -593,6 +597,7 @@
593
597
  "version": "7.18.6",
594
598
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz",
595
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.",
596
601
  "dependencies": {
597
602
  "@babel/helper-plugin-utils": "^7.18.6",
598
603
  "@babel/plugin-syntax-json-strings": "^7.8.3"
@@ -608,6 +613,7 @@
608
613
  "version": "7.18.9",
609
614
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz",
610
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.",
611
617
  "dependencies": {
612
618
  "@babel/helper-plugin-utils": "^7.18.9",
613
619
  "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4"
@@ -623,6 +629,7 @@
623
629
  "version": "7.18.6",
624
630
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz",
625
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.",
626
633
  "dependencies": {
627
634
  "@babel/helper-plugin-utils": "^7.18.6",
628
635
  "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3"
@@ -638,6 +645,7 @@
638
645
  "version": "7.18.6",
639
646
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz",
640
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.",
641
649
  "dependencies": {
642
650
  "@babel/helper-plugin-utils": "^7.18.6",
643
651
  "@babel/plugin-syntax-numeric-separator": "^7.10.4"
@@ -653,6 +661,7 @@
653
661
  "version": "7.11.0",
654
662
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.11.0.tgz",
655
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.",
656
665
  "dependencies": {
657
666
  "@babel/helper-plugin-utils": "^7.10.4",
658
667
  "@babel/plugin-syntax-object-rest-spread": "^7.8.0",
@@ -666,6 +675,7 @@
666
675
  "version": "7.18.6",
667
676
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz",
668
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.",
669
679
  "dependencies": {
670
680
  "@babel/helper-plugin-utils": "^7.18.6",
671
681
  "@babel/plugin-syntax-optional-catch-binding": "^7.8.3"
@@ -681,6 +691,7 @@
681
691
  "version": "7.18.9",
682
692
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz",
683
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.",
684
695
  "dependencies": {
685
696
  "@babel/helper-plugin-utils": "^7.18.9",
686
697
  "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9",
@@ -697,6 +708,7 @@
697
708
  "version": "7.18.6",
698
709
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz",
699
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.",
700
712
  "dependencies": {
701
713
  "@babel/helper-create-class-features-plugin": "^7.18.6",
702
714
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -712,6 +724,7 @@
712
724
  "version": "7.18.6",
713
725
  "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz",
714
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.",
715
728
  "dependencies": {
716
729
  "@babel/helper-create-regexp-features-plugin": "^7.18.6",
717
730
  "@babel/helper-plugin-utils": "^7.18.6"
@@ -3089,7 +3102,8 @@
3089
3102
  "node_modules/abab": {
3090
3103
  "version": "2.0.6",
3091
3104
  "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz",
3092
- "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA=="
3105
+ "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==",
3106
+ "deprecated": "Use your platform's native atob() and btoa() methods instead"
3093
3107
  },
3094
3108
  "node_modules/abbrev": {
3095
3109
  "version": "1.1.1",
@@ -3941,6 +3955,7 @@
3941
3955
  "version": "1.0.0",
3942
3956
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
3943
3957
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
3958
+ "deprecated": "Please upgrade to v1.0.1",
3944
3959
  "dependencies": {
3945
3960
  "kind-of": "^6.0.0"
3946
3961
  },
@@ -3952,6 +3967,7 @@
3952
3967
  "version": "1.0.0",
3953
3968
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
3954
3969
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
3970
+ "deprecated": "Please upgrade to v1.0.1",
3955
3971
  "dependencies": {
3956
3972
  "kind-of": "^6.0.0"
3957
3973
  },
@@ -5854,6 +5870,7 @@
5854
5870
  "version": "1.0.0",
5855
5871
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
5856
5872
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
5873
+ "deprecated": "Please upgrade to v1.0.1",
5857
5874
  "dependencies": {
5858
5875
  "kind-of": "^6.0.0"
5859
5876
  },
@@ -5865,6 +5882,7 @@
5865
5882
  "version": "1.0.0",
5866
5883
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
5867
5884
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
5885
+ "deprecated": "Please upgrade to v1.0.1",
5868
5886
  "dependencies": {
5869
5887
  "kind-of": "^6.0.0"
5870
5888
  },
@@ -6051,6 +6069,7 @@
6051
6069
  "version": "2.0.1",
6052
6070
  "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz",
6053
6071
  "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==",
6072
+ "deprecated": "Use your platform's native DOMException instead",
6054
6073
  "dependencies": {
6055
6074
  "webidl-conversions": "^5.0.0"
6056
6075
  },
@@ -7312,6 +7331,7 @@
7312
7331
  "version": "1.0.0",
7313
7332
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
7314
7333
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
7334
+ "deprecated": "Please upgrade to v1.0.1",
7315
7335
  "dependencies": {
7316
7336
  "kind-of": "^6.0.0"
7317
7337
  },
@@ -7323,6 +7343,7 @@
7323
7343
  "version": "1.0.0",
7324
7344
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
7325
7345
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
7346
+ "deprecated": "Please upgrade to v1.0.1",
7326
7347
  "dependencies": {
7327
7348
  "kind-of": "^6.0.0"
7328
7349
  },
@@ -7382,7 +7403,8 @@
7382
7403
  "node_modules/figgy-pudding": {
7383
7404
  "version": "3.5.2",
7384
7405
  "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz",
7385
- "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw=="
7406
+ "integrity": "sha512-0btnI/H8f2pavGMN8w40mlSKOfTK2SVJmBfBeVIj3kNw0swwgzyRq0d5TJVOwodFmtvpPeWPN/MCcfuWF0Ezbw==",
7407
+ "deprecated": "This module is no longer supported."
7386
7408
  },
7387
7409
  "node_modules/figures": {
7388
7410
  "version": "2.0.0",
@@ -7951,7 +7973,7 @@
7951
7973
  "version": "14.2.2",
7952
7974
  "resolved": "https://registry.npmjs.org/gitlab/-/gitlab-14.2.2.tgz",
7953
7975
  "integrity": "sha512-MVLGXLFk5erJCeDnDtV+srDHogadVV8y94G4mAulukCwdCwh+IUqsU4ESZksZvBis8VTJsK9Mj01lRJ1JrxVsg==",
7954
- "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",
7955
7977
  "dependencies": {
7956
7978
  "chalk": "^3.0.0",
7957
7979
  "form-data": "^3.0.0",
@@ -9191,6 +9213,7 @@
9191
9213
  "version": "0.1.6",
9192
9214
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",
9193
9215
  "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",
9216
+ "deprecated": "Please upgrade to v0.1.7",
9194
9217
  "dependencies": {
9195
9218
  "kind-of": "^3.0.2"
9196
9219
  },
@@ -9294,6 +9317,7 @@
9294
9317
  "version": "0.1.4",
9295
9318
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",
9296
9319
  "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",
9320
+ "deprecated": "Please upgrade to v0.1.5",
9297
9321
  "dependencies": {
9298
9322
  "kind-of": "^3.0.2"
9299
9323
  },
@@ -16186,6 +16210,7 @@
16186
16210
  "version": "1.0.0",
16187
16211
  "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",
16188
16212
  "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",
16213
+ "deprecated": "Please upgrade to v1.0.1",
16189
16214
  "dependencies": {
16190
16215
  "kind-of": "^6.0.0"
16191
16216
  },
@@ -16197,6 +16222,7 @@
16197
16222
  "version": "1.0.0",
16198
16223
  "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",
16199
16224
  "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",
16225
+ "deprecated": "Please upgrade to v1.0.1",
16200
16226
  "dependencies": {
16201
16227
  "kind-of": "^6.0.0"
16202
16228
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "1.1.17",
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",
@@ -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;
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.optionsProcesser = optionsProcesser;
7
+
8
+ var _path = require("path");
9
+
10
+ var _decidePublicPath = require("../../shared/bundler/webpack/common/decidePublicPath");
11
+
12
+ var _urlConcat = require("../../shared/server/urlConcat");
13
+
14
+ function optionsProcesser(options) {
15
+ const {
16
+ server,
17
+ context
18
+ } = options;
19
+ const {
20
+ disableContextURL
21
+ } = server;
22
+ const serverExtras = (0, _decidePublicPath.modifiedServerOptions)(options);
23
+ const publicPath = (0, _decidePublicPath.decidePublicPath)(serverExtras);
24
+ const contextURL = disableContextURL ? '' : `/${context}`;
25
+ const serverURL = (0, _urlConcat.urlConcat)(publicPath, contextURL);
26
+ const contextFolderPath = (0, _path.join)(process.cwd(), context);
27
+ console.log({
28
+ serverURL,
29
+ publicPath
30
+ });
31
+ const defaultApplyedOptions = { ...options,
32
+ serverExtras,
33
+ publicPath,
34
+ contextURL,
35
+ serverURL,
36
+ contextFolderPath,
37
+ httpsOptions: serverExtras.httpsOptions
38
+ };
39
+ return defaultApplyedOptions;
40
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.commandExecutor = commandExecutor;
7
+
8
+ var _spanSync = require("../../shared/commands-utlis/spanSync");
9
+
10
+ var _constants = require("../../shared/constants");
11
+
12
+ function commandExecutor(options) {
13
+ const {
14
+ extraArgs
15
+ } = options;
16
+ (0, _spanSync.spawnSyncIO)("babel", ["src", "--out-dir", "es", "--copy-files", "--config-file=" + _constants.babelrcPath, ...extraArgs]);
17
+ }
@@ -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:es",
9
+ alias: ["build_es", "build:es"],
10
+ dirname: __dirname
11
+ };
12
+ exports.default = _default;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.commandExecutor = commandExecutor;
7
+
8
+ var _spanSync = require("../../shared/commands-utlis/spanSync");
9
+
10
+ var _constants = require("../../shared/constants");
11
+
12
+ function commandExecutor(options) {
13
+ const {
14
+ extraArgs
15
+ } = options;
16
+ (0, _spanSync.spawnSyncIO)("babel", ["src", "--out-dir", "lib", "--copy-files", "--config-file=" + _constants.babelrcPath, ...extraArgs]);
17
+ }
@@ -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:lib",
9
+ alias: ["build_lib"],
10
+ dirname: __dirname
11
+ };
12
+ exports.default = _default;