@zohodesk/react-cli 0.0.1-beta.161.1 → 0.0.1-beta.162

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/README.md CHANGED
@@ -2,18 +2,14 @@
2
2
 
3
3
  A CLI tool for build modern web application and libraries
4
4
 
5
- # 0.0.1-beta.161.1
5
+ # 0.0.1-beta.161
6
6
 
7
- - **Features :-**
8
- - feature added for pre process logic
9
- - tailer made requirement for preprocess, just write node js file
10
- - mention file in `"react-cli" => "preprocess" => "runner"`
11
- - option parse logic added for react-cli (exprimental)
7
+ - @zohodesk/datetimejs package updated to beta.8
12
8
 
13
9
  # 0.0.1-beta.161
14
10
 
15
11
  - **Features :-**
16
- - feature added for efc `templateFilePath` in `package.json` option palce is `"react-cli" => "efc" `
12
+ - feature added for efc `templateFilePath` in `paakage.json` option palce is `"react-cli" => "efc" `
17
13
  - `(('publicPath'))` this placeholder will be replace as publicPath string `publicPath`
18
14
  - `(('getInitalAssets'))` this placeholder will be replace as function `getInitalAssets`
19
15
  - `getInitalAssets` this function has two arguments `assetsType`, `lang`
@@ -28,7 +24,7 @@ A CLI tool for build modern web application and libraries
28
24
  # 0.0.1-exp.161.2
29
25
 
30
26
  - Features
31
- - feature added for efc `templateFilePath` in `package.json` option palce is `"react-cli" => "efc" `
27
+ - feature added for efc `templateFilePath` in `paakage.json` option palce is `"react-cli" => "efc" `
32
28
  - `(('publicPath'))` this placeholder will be replace as publicPath string `publicPath`
33
29
  - `(('getInitalAssets'))` this placeholder will be replace as function `getInitalAssets`
34
30
  - `getInitalAssets` this function has two arguments `assetsType`, `lang`
package/bin/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  let path = require('path');
4
4
  let os = require('os');
5
- let { spawnSync, spawn } = require('child_process');
5
+ let { spawnSync } = require('child_process');
6
6
  let { getOptions } = require('../lib/utils/index.js');
7
7
 
8
8
  let { log } = require('../lib/utils');
@@ -42,51 +42,8 @@ let babel = getCliPath('babel');
42
42
  let propertyToJson = getCliPath('propertyToJson');
43
43
  let esLint = getCliPath('eslint');
44
44
 
45
- let preprocesserPath = options.preprocessor.runner
46
- ? path.join(process.cwd(), options.preprocessor.runner)
47
- : '';
48
- console.log(
49
- 'options.app.preprocessor',
50
- options.preprocessor.runner,
51
- preprocesserPath
52
- );
53
-
54
- // eslint-disable-next-line default-case
55
- switch (option) {
56
- case 'start':
57
- case 'docs':
58
- spawn(nodemon, [preprocesserPath], {
59
- stdio: 'inherit',
60
- cwd: preprocesserPath.slice(0, preprocesserPath.lastIndexOf('/') + 1)
61
- });
62
- // NOTE: it's ok if we not close this here
63
- // Because when node server stops this program willbe closed So this nodemon will be killed as well
64
- break;
65
- case 'nowatchstart':
66
- case 'build:library:es':
67
- case 'build:component:es':
68
- case 'build:library:cmjs':
69
- case 'build:component:cmjs':
70
- spawnSync('node', [preprocesserPath], {
71
- stdio: 'inherit',
72
- cwd: preprocesserPath.slice(0, preprocesserPath.lastIndexOf('/') + 1)
73
- });
74
- break;
75
- }
76
-
77
45
  let result;
78
46
  switch (option) {
79
- case 'preprocessor':
80
- if (preprocesserPath) {
81
- result = spawnSync(nodemon, [preprocesserPath], {
82
- stdio: 'inherit',
83
- cwd: preprocesserPath.slice(0, preprocesserPath.lastIndexOf('/') + 1)
84
- });
85
- process.exit(result.status);
86
- } else {
87
- console.error('preProcessor not exists ');
88
- }
89
- break;
90
47
  case 'lint-setup': {
91
48
  result = spawnSync(
92
49
  'node',
@@ -3,22 +3,22 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "getEntries", {
6
+ Object.defineProperty(exports, "splitChunks", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _getEntries.default;
9
+ return _splitChunks.default;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "getPublicPathConfig", {
12
+ Object.defineProperty(exports, "getEntries", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _getPublicPathConfig.default;
15
+ return _getEntries.default;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "splitChunks", {
18
+ Object.defineProperty(exports, "getPublicPathConfig", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _splitChunks.default;
21
+ return _getPublicPathConfig.default;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "templateParameters", {
@@ -57,9 +57,6 @@ module.exports = {
57
57
  entry: (0, _common.getEntries)(options, 'dev'),
58
58
  devtool: sourcemap,
59
59
  mode: 'development',
60
- watchOptions: {
61
- ignored: /node_modules.(?!@zohodesk)/
62
- },
63
60
  output,
64
61
  stats: options.app.disableWatch ? 'errors-only' : {
65
62
  children: false
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "getCSSLoaders", {
6
+ Object.defineProperty(exports, "getDevJsLoaders", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _getCSSLoaders.default;
9
+ return _getDevJsLoaders.default;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "getDevJsLoaders", {
12
+ Object.defineProperty(exports, "getCSSLoaders", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _getDevJsLoaders.default;
15
+ return _getCSSLoaders.default;
16
16
  }
17
17
  });
18
18
 
@@ -9,22 +9,16 @@ Object.defineProperty(exports, "getDevPlugins", {
9
9
  return _getDevPlugins.default;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "getDocsPlugins", {
13
- enumerable: true,
14
- get: function () {
15
- return _getDocsPlugins.default;
16
- }
17
- });
18
- Object.defineProperty(exports, "getLibraryPlugins", {
12
+ Object.defineProperty(exports, "getProdPlugins", {
19
13
  enumerable: true,
20
14
  get: function () {
21
- return _getLibraryPlugins.default;
15
+ return _getProdPlugins.default;
22
16
  }
23
17
  });
24
- Object.defineProperty(exports, "getProdPlugins", {
18
+ Object.defineProperty(exports, "getDocsPlugins", {
25
19
  enumerable: true,
26
20
  get: function () {
27
- return _getProdPlugins.default;
21
+ return _getDocsPlugins.default;
28
22
  }
29
23
  });
30
24
  Object.defineProperty(exports, "getServerPlugins", {
@@ -33,10 +27,10 @@ Object.defineProperty(exports, "getServerPlugins", {
33
27
  return _getServerPlugins.default;
34
28
  }
35
29
  });
36
- Object.defineProperty(exports, "getUMDCSSPlugins", {
30
+ Object.defineProperty(exports, "getLibraryPlugins", {
37
31
  enumerable: true,
38
32
  get: function () {
39
- return _getUMDCSSPlugins.default;
33
+ return _getLibraryPlugins.default;
40
34
  }
41
35
  });
42
36
  Object.defineProperty(exports, "getUMDComponentPlugins", {
@@ -45,6 +39,12 @@ Object.defineProperty(exports, "getUMDComponentPlugins", {
45
39
  return _getUMDComponentPlugins.default;
46
40
  }
47
41
  });
42
+ Object.defineProperty(exports, "getUMDCSSPlugins", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _getUMDCSSPlugins.default;
46
+ }
47
+ });
48
48
 
49
49
  var _getDevPlugins = _interopRequireDefault(require("./getDevPlugins"));
50
50
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.REGEXP_CONTENTHASH = void 0;
7
- exports.getShortI18nAssets = getShortI18nAssets;
8
6
  exports.hasContentHash = hasContentHash;
7
+ exports.getShortI18nAssets = getShortI18nAssets;
8
+ exports.REGEXP_CONTENTHASH = void 0;
9
9
 
10
10
  var _urlConcat = require("../../../utils/urlConcat");
11
11
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getAllI18n = getAllI18n;
7
6
  exports.getPropertiesAsJSON = getPropertiesAsJSON;
7
+ exports.getAllI18n = getAllI18n;
8
8
  exports.jsonToString = jsonToString;
9
9
 
10
10
  var _fs = require("fs");
@@ -3,112 +3,112 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "CdnChangePlugin", {
6
+ Object.defineProperty(exports, "ModuleStatsPlugin", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _CdnChangePlugin.default;
9
+ return _ModuleStatsPlugin.default;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "CleanUpStatsPlugin", {
12
+ Object.defineProperty(exports, "SourceMapHookPlugin", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _CleanupStatsPlugin.default;
15
+ return _SourceMapHookPlugin.default;
16
16
  }
17
17
  });
18
- Object.defineProperty(exports, "EFCPlugin", {
18
+ Object.defineProperty(exports, "UnusedFilesFindPlugin", {
19
19
  enumerable: true,
20
20
  get: function () {
21
- return _EFCPlugin.default;
21
+ return _UnusedFilesFindPlugin.default;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "I18NInjectIntoIndexPlugin", {
24
+ Object.defineProperty(exports, "ScriptInstrumentPlugin", {
25
25
  enumerable: true,
26
26
  get: function () {
27
- return _I18NInjectIntoIndexPlugin.default;
27
+ return _ScriptInstrumentPlugin.default;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "ManifestPlugin", {
30
+ Object.defineProperty(exports, "PublicPathChangePlugin", {
31
31
  enumerable: true,
32
32
  get: function () {
33
- return _ManifestPlugin.default;
33
+ return _PublicPathChangePlugin.default;
34
34
  }
35
35
  });
36
- Object.defineProperty(exports, "ModuleStatsPlugin", {
36
+ Object.defineProperty(exports, "OptimizeJSPlugin", {
37
37
  enumerable: true,
38
38
  get: function () {
39
- return _ModuleStatsPlugin.default;
39
+ return _OptimizeJSPlugin.default;
40
40
  }
41
41
  });
42
- Object.defineProperty(exports, "OptimizeJSPlugin", {
42
+ Object.defineProperty(exports, "ResourceHintsPlugin", {
43
43
  enumerable: true,
44
44
  get: function () {
45
- return _OptimizeJSPlugin.default;
45
+ return _ResourceHintsPlugin.default;
46
46
  }
47
47
  });
48
- Object.defineProperty(exports, "PublicPathCallbackPlugin", {
48
+ Object.defineProperty(exports, "UglifyCSSPlugin", {
49
49
  enumerable: true,
50
50
  get: function () {
51
- return _PublicPathCallbackPlugin.default;
51
+ return _UglifyCSSPlugin.default;
52
52
  }
53
53
  });
54
- Object.defineProperty(exports, "PublicPathChangePlugin", {
54
+ Object.defineProperty(exports, "ManifestPlugin", {
55
55
  enumerable: true,
56
56
  get: function () {
57
- return _PublicPathChangePlugin.default;
57
+ return _ManifestPlugin.default;
58
58
  }
59
59
  });
60
- Object.defineProperty(exports, "ReportGeneratePlugin", {
60
+ Object.defineProperty(exports, "CleanUpStatsPlugin", {
61
61
  enumerable: true,
62
62
  get: function () {
63
- return _ReportGeneratePlugin.default;
63
+ return _CleanupStatsPlugin.default;
64
64
  }
65
65
  });
66
- Object.defineProperty(exports, "ResourceHintsPlugin", {
66
+ Object.defineProperty(exports, "EFCPlugin", {
67
67
  enumerable: true,
68
68
  get: function () {
69
- return _ResourceHintsPlugin.default;
69
+ return _EFCPlugin.default;
70
70
  }
71
71
  });
72
- Object.defineProperty(exports, "ScriptInstrumentPlugin", {
72
+ Object.defineProperty(exports, "PublicPathCallbackPlugin", {
73
73
  enumerable: true,
74
74
  get: function () {
75
- return _ScriptInstrumentPlugin.default;
75
+ return _PublicPathCallbackPlugin.default;
76
76
  }
77
77
  });
78
- Object.defineProperty(exports, "ServiceWorkerPlugin", {
78
+ Object.defineProperty(exports, "I18NInjectIntoIndexPlugin", {
79
79
  enumerable: true,
80
80
  get: function () {
81
- return _ServiceWorkerPlugin.default;
81
+ return _I18NInjectIntoIndexPlugin.default;
82
82
  }
83
83
  });
84
- Object.defineProperty(exports, "ShadowDOMSupportPlugin", {
84
+ Object.defineProperty(exports, "ReportGeneratePlugin", {
85
85
  enumerable: true,
86
86
  get: function () {
87
- return _ShadowDOMSupportPlugin.default;
87
+ return _ReportGeneratePlugin.default;
88
88
  }
89
89
  });
90
- Object.defineProperty(exports, "SourceMapHookPlugin", {
90
+ Object.defineProperty(exports, "ShadowDOMSupportPlugin", {
91
91
  enumerable: true,
92
92
  get: function () {
93
- return _SourceMapHookPlugin.default;
93
+ return _ShadowDOMSupportPlugin.default;
94
94
  }
95
95
  });
96
- Object.defineProperty(exports, "TPHashMappingPlugin", {
96
+ Object.defineProperty(exports, "ServiceWorkerPlugin", {
97
97
  enumerable: true,
98
98
  get: function () {
99
- return _TPHashMappingPlugin.default;
99
+ return _ServiceWorkerPlugin.default;
100
100
  }
101
101
  });
102
- Object.defineProperty(exports, "UglifyCSSPlugin", {
102
+ Object.defineProperty(exports, "TPHashMappingPlugin", {
103
103
  enumerable: true,
104
104
  get: function () {
105
- return _UglifyCSSPlugin.default;
105
+ return _TPHashMappingPlugin.default;
106
106
  }
107
107
  });
108
- Object.defineProperty(exports, "UnusedFilesFindPlugin", {
108
+ Object.defineProperty(exports, "CdnChangePlugin", {
109
109
  enumerable: true,
110
110
  get: function () {
111
- return _UnusedFilesFindPlugin.default;
111
+ return _CdnChangePlugin.default;
112
112
  }
113
113
  });
114
114
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.separateRtlAndLtr = separateRtlAndLtr;
7
6
  exports.separateSingleDir = separateSingleDir;
7
+ exports.separateRtlAndLtr = separateRtlAndLtr;
8
8
 
9
9
  var postcss = _interopRequireWildcard(require("postcss"));
10
10
 
@@ -18,12 +18,6 @@ var _default = {
18
18
  value: null,
19
19
  cli: 'ssl_cert_url'
20
20
  },
21
- preprocessor: {
22
- runner: {
23
- value: '',
24
- cli: 'preprocessor'
25
- }
26
- },
27
21
  i18n: {
28
22
  chunkSplitEnable: {
29
23
  value: false,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.htmlTemplate = exports.endTag = void 0;
6
+ exports.endTag = exports.htmlTemplate = void 0;
7
7
  const htmlTemplate = '<!DOCTYPE html><html> <head> <title>Eslint Security Rule</title> <style type="text/css"> body{margin: 0; font: 93.75%/1.6 -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif;}body, html{width: 100%; height: 100%;}.pkCont{}.pkEmpty{height: 300px;display: flex;align-items: center;justify-content: center;font-size: 20px;}.pkUl{margin: 0; padding: 0; list-style-type: none;}.pkLi{}.pkRow{display: flex; padding: 12px 16px;}.pkArrowCont{cursor: pointer; width: 50px; display: flex; align-items: center; justify-content: center; background-color: #f4f5f5; border-radius: 4px;}.pkArrow{width: 1px; height: 1px; border: 5px solid; border-color: #000 transparent transparent; margin-top: 7px;}.pkDetailsOpen .pkArrow{margin: 0 0 7px; border-color: transparent transparent #000;}.pkFileName{font-weight: 600; margin: 0 8px;}.pkUrl{flex: 1; min-width: 0; min-height: 0; word-break: break-word; word-wrap: break-word; color: blue;}.pkDetails{margin-left: 66px; display: none;}.pkDetailsOpen .pkDetails{display: block;}.pkDetailsHead{font-weight: 600; display: flex; border: 1px solid #e5e5e5; padding: 3px 8px;}.pkDetailsBody{max-height: 400px; overflow: auto;}.pkDetailsRow{display: flex; padding: 10px 8px;}.pkDetailsRow:nth-child(even){background-color: #f4f5f5;}.pkDetailsCol{word-break: break-word; word-wrap: break-word;}.pkError{color: red;}.pkDetailsCol:nth-child(1){width: 10%;}.pkDetailsCol:nth-child(2){width: 10%;}.pkDetailsCol:nth-child(3){width: 40%;}.pkDetailsCol:nth-child(4){width: 40%;}</style> <script>function toggleWrapper(element){var classArray=element.parentElement.parentElement.className; if (classArray.includes("pkDetailsOpen")){element.parentElement.parentElement.className="pkLi";}else{element.parentElement.parentElement.className="pkLi pkDetailsOpen";}}</script> </head> <body> <div class="pkCont">';
8
8
  exports.htmlTemplate = htmlTemplate;
9
9
  const endTag = '</div></body></html>';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getUrls = exports.getFileType = exports.cssUrlReplacer = void 0;
6
+ exports.cssUrlReplacer = exports.getUrls = exports.getFileType = void 0;
7
7
 
8
8
  var _fs = _interopRequireDefault(require("fs"));
9
9
 
@@ -5,20 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- var _child_process = require("child_process");
9
-
10
8
  var _fs = _interopRequireDefault(require("fs"));
11
9
 
12
10
  var _path = _interopRequireDefault(require("path"));
13
11
 
14
- var _process = require("process");
15
-
16
12
  var _schemas = _interopRequireDefault(require("../schemas"));
17
13
 
18
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
15
 
20
- let args = process.argv.slice(2);
21
- console.log('argv', _process.argv);
22
16
  const NPM_CONFIG_PREFIX = 'npm_config_'; // TODO: we have to do option parse logic little better
23
17
  // if user use react-cli stritly without using npm scripts options won't work,
24
18
  // So we have to write our own option parse logic or some other library
@@ -43,51 +37,6 @@ keysWithColon.forEach(key => {
43
37
  processEnv[nkey] = processEnv[key];
44
38
  });
45
39
 
46
- function getNpmVersion() {
47
- // require("child_process").
48
- let vers = '6';
49
-
50
- try {
51
- [vers] = (0, _child_process.execSync)('npm -v').toString().trim().split('.');
52
- } catch (error) {
53
- console.log(error);
54
- }
55
-
56
- return vers;
57
- }
58
-
59
- function getCWD() {
60
- // require("child_process").
61
- let cwd = process.cwd();
62
-
63
- try {
64
- let ress = (0, _child_process.execSync)('npm bin').toString();
65
- let i = ress.lastIndexOf('node_modules');
66
- cwd = i === -1 ? cwd : ress.slice(0, ress.lastIndexOf('node_modules'));
67
- } catch (error) {
68
- console.log(error);
69
- }
70
-
71
- return cwd;
72
- }
73
-
74
- args.forEach(option => {
75
- if (/^--./.test(option)) {
76
- let equIndex = option.indexOf('='); // equIndex = equIndex === -1 ? option.length : equIndex;
77
-
78
- let key = option.slice(2, equIndex);
79
- let value = option.slice(equIndex + 1);
80
-
81
- if (equIndex === -1) {
82
- key = option.slice(2);
83
- value = true;
84
- }
85
-
86
- key = key.replace(/-/g, '_').replace(/:/g, '_');
87
- processEnv[key] = value;
88
- }
89
- });
90
-
91
40
  let defaulter = (target, source) => {
92
41
  let defaultObject = {};
93
42
  Object.keys(target).forEach(key => {
@@ -139,8 +88,6 @@ let getOptions = () => {
139
88
  }
140
89
 
141
90
  let options = defaulter(_schemas.default, userSchemas || {});
142
- options.npmVersion = getNpmVersion();
143
- options.cwd = getCWD();
144
91
  options.packageVersion = process.env.npm_package_version;
145
92
  global.reactCLIOptions = options;
146
93
  return options;
@@ -21,16 +21,22 @@ var _exportNames = {
21
21
  getComponents: true,
22
22
  ssTestHack: true
23
23
  };
24
+ Object.defineProperty(exports, "getOptions", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _getOptions.default;
28
+ }
29
+ });
24
30
  Object.defineProperty(exports, "createEventStream", {
25
31
  enumerable: true,
26
32
  get: function () {
27
33
  return _createEventStream.default;
28
34
  }
29
35
  });
30
- Object.defineProperty(exports, "getComponents", {
36
+ Object.defineProperty(exports, "getServerURL", {
31
37
  enumerable: true,
32
38
  get: function () {
33
- return _getComponents.default;
39
+ return _getServerURL.default;
34
40
  }
35
41
  });
36
42
  Object.defineProperty(exports, "getCurrentBranch", {
@@ -39,23 +45,22 @@ Object.defineProperty(exports, "getCurrentBranch", {
39
45
  return _getCurrentBranch.default;
40
46
  }
41
47
  });
42
- Object.defineProperty(exports, "getDependenciesImpactList", {
48
+ Object.defineProperty(exports, "switchBranch", {
43
49
  enumerable: true,
44
50
  get: function () {
45
- return _getDependenciesImpactList.default;
51
+ return _switchBranch.default;
46
52
  }
47
53
  });
48
- exports.getLibraryConflict = exports.getInfoFromPublicPaths = void 0;
49
- Object.defineProperty(exports, "getOptions", {
54
+ Object.defineProperty(exports, "pullOrigin", {
50
55
  enumerable: true,
51
56
  get: function () {
52
- return _getOptions.default;
57
+ return _pullOrigin.default;
53
58
  }
54
59
  });
55
- Object.defineProperty(exports, "getServerURL", {
60
+ Object.defineProperty(exports, "request", {
56
61
  enumerable: true,
57
62
  get: function () {
58
- return _getServerURL.default;
63
+ return _request.default;
59
64
  }
60
65
  });
61
66
  Object.defineProperty(exports, "jsonHelper", {
@@ -64,17 +69,16 @@ Object.defineProperty(exports, "jsonHelper", {
64
69
  return _jsonHelper.default;
65
70
  }
66
71
  });
67
- exports.makeDir = exports.log = void 0;
68
- Object.defineProperty(exports, "pullOrigin", {
72
+ Object.defineProperty(exports, "getDependenciesImpactList", {
69
73
  enumerable: true,
70
74
  get: function () {
71
- return _pullOrigin.default;
75
+ return _getDependenciesImpactList.default;
72
76
  }
73
77
  });
74
- Object.defineProperty(exports, "request", {
78
+ Object.defineProperty(exports, "getComponents", {
75
79
  enumerable: true,
76
80
  get: function () {
77
- return _request.default;
81
+ return _getComponents.default;
78
82
  }
79
83
  });
80
84
  Object.defineProperty(exports, "ssTestHack", {
@@ -83,13 +87,7 @@ Object.defineProperty(exports, "ssTestHack", {
83
87
  return _ssTestHack.default;
84
88
  }
85
89
  });
86
- Object.defineProperty(exports, "switchBranch", {
87
- enumerable: true,
88
- get: function () {
89
- return _switchBranch.default;
90
- }
91
- });
92
- exports.writeFile = void 0;
90
+ exports.getLibraryConflict = exports.getInfoFromPublicPaths = exports.makeDir = exports.writeFile = exports.log = void 0;
93
91
 
94
92
  var _stream = require("stream");
95
93
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.setTestInfoStatus = exports.jsonHelper = exports.jsonConcate = exports.getRunnerDetail = exports.fileHandler = void 0;
6
+ exports.setTestInfoStatus = exports.jsonHelper = exports.jsonConcate = exports.fileHandler = exports.getRunnerDetail = void 0;
7
7
 
8
8
  let fs = require('fs');
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.reinstallDependencies1 = exports.reinstallDependencies = exports.collectPackageDiff = void 0;
6
+ exports.reinstallDependencies = exports.reinstallDependencies1 = exports.collectPackageDiff = void 0;
7
7
 
8
8
  var _fs = _interopRequireDefault(require("fs"));
9
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/react-cli",
3
- "version": "0.0.1-beta.161.1",
3
+ "version": "0.0.1-beta.162",
4
4
  "description": "A CLI tool for build modern web application and libraries",
5
5
  "scripts": {
6
6
  "init": "node ./lib/utils/init.js",
@@ -35,7 +35,7 @@
35
35
  "@babel/preset-env": "7.11.0",
36
36
  "@babel/preset-react": "7.10.4",
37
37
  "@babel/runtime": "7.11.2",
38
- "@zohodesk/datetimejs": "1.0.0-beta.7",
38
+ "@zohodesk/datetimejs": "1.0.0-beta.8",
39
39
  "@zohodesk/eslint-plugin-react-performance": "1.0.3",
40
40
  "@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
41
41
  "@zohodesk/normalizer": "1.0.2",
package/c.sh DELETED
@@ -1,46 +0,0 @@
1
- #!/bin/bash
2
-
3
-
4
- # s_time= `echo 1640321666`
5
- # e_time= 1640121666
6
- # r_time= s_time - e_time
7
- # echo `((r_time/60000)) min`
8
- # s_time= e_time
9
- # e_time= 1639384489
10
- # r_time= s_time - e_time
11
- # echo `((r_time/60000)) min`
12
-
13
-
14
- main() {
15
-
16
- s_time=`date +%s`
17
- npm run build --app_mode=build
18
- # sleep 2
19
- # e_time=`date +%s`
20
- # r_time=$(($s_time - $e_time))
21
- # echo $s_time
22
- # echo $e_time
23
- # echo "$(($r_time/60)) min $(($r_time%60)) sec"
24
-
25
- printTime() {
26
- e_time=`date +%s`
27
- r_time=$(($e_time-$s_time))
28
- echo "$r_time $s_time $e_time"
29
- echo "$1 Time: $(($r_time/60)) min $(($r_time%60)) sec"
30
- s_time=$e_time
31
- }
32
- printTime "React-Cli installation"
33
- sleep 3
34
- printTime "React-Cli installation1"
35
- sleep 1
36
- printTime "React-Cli installation2"
37
- echo finished
38
- # echo `(($r_time/60)) min`
39
- # s_time= e_time
40
- # e_time= 1639384489
41
- # r_time= s_time - e_time
42
- # echo `((r_time/60000)) min
43
-
44
- }
45
- main 773
46
- echo "function call finished"
package/eslint/NOTES.md DELETED
@@ -1,3 +0,0 @@
1
- Suggestions :
2
-
3
- 1. 'lint-setup', 'add-lint-scripts' not need to exposed
@@ -1,18 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
- <title>mock api</title>
7
- </head>
8
- <body>
9
- <h1>We are going to see how to use mock api</h1>
10
- <ul>
11
- <li>
12
- Step 1:-
13
- you need to start the app with "react-cli"."app"."server"."hasMock" as "true" in package.json
14
- <code>npm run start --app-port=9090</code>
15
- </li>
16
- </ul>
17
- </body>
18
- </html>
package/eslint/mockapi.md DELETED
@@ -1,5 +0,0 @@
1
- # We are going to see how to use `Mock api`
2
-
3
- - Step 1:-
4
- you need to start the app with **"react-cli"."app"."server"."hasMock"** as `true` and **"react-cli"."app"."server"."hasMock"** as `true` in package.json <code>npm run start --app-port=9090</code>
5
- - Step 2:- you need to start the app with **"react-cli"."app"."server"."hasMock"** as `true` in package.json <code>npm run start --app-port=9090</code>
package/t.js DELETED
@@ -1,8 +0,0 @@
1
- setTimeout(() => {
2
- console.log('its working');
3
- }, 2000);
4
-
5
- console.log('will it work ?');
6
-
7
- let child_process = require('child_process');
8
- child_process.spawn('ssss', []);