@zohodesk/react-cli 0.0.1-beta.177 → 0.0.1-beta.179

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. package/.eslintignore +7 -7
  2. package/.eslintrc.js +180 -180
  3. package/.prettierrc +6 -6
  4. package/Changelog.md +1019 -0
  5. package/README.md +1153 -1100
  6. package/bin/cli.js +482 -482
  7. package/docs/CustomChunks.md +26 -26
  8. package/docs/DevServerPort.md +39 -0
  9. package/docs/DevStart.md +18 -18
  10. package/docs/HoverActive.md +12 -12
  11. package/docs/InstallNode.md +28 -28
  12. package/docs/SelectorWeight.md +6 -6
  13. package/docs/TODOS.md +10 -10
  14. package/docs/ValueReplacer.md +60 -60
  15. package/docs/VariableConversion.md +724 -724
  16. package/docs/warnings_while_install.txt +35 -35
  17. package/files/eslintrc.js +62 -62
  18. package/files/prettierrc.js +3 -3
  19. package/lib/configs/resolvers.js +40 -0
  20. package/lib/configs/webpack.css.umd.config.js +4 -4
  21. package/lib/configs/webpack.dev.config.js +4 -11
  22. package/lib/configs/webpack.docs.config.js +4 -11
  23. package/lib/configs/webpack.impact.config.js +5 -7
  24. package/lib/configs/webpack.prod.config.js +8 -12
  25. package/lib/constants.js +31 -0
  26. package/lib/loaderUtils/configsAssetsLoaders.js +35 -35
  27. package/lib/loaders/workerLoader.js +9 -9
  28. package/lib/pluginUtils/getDevPlugins.js +5 -5
  29. package/lib/pluginUtils/getProdPlugins.js +5 -5
  30. package/lib/plugins/EFCPlugin.md +6 -6
  31. package/lib/plugins/I18NInjectIntoIndexPlugin.js +4 -4
  32. package/lib/plugins/I18nSplitPlugin/I18nDownlodLogic.js +38 -38
  33. package/lib/plugins/I18nSplitPlugin/I18nFilesEmitter.js +30 -30
  34. package/lib/plugins/I18nSplitPlugin/I18nKeysIdentifer.js +8 -8
  35. package/lib/plugins/I18nSplitPlugin/I18nSplit.md +95 -95
  36. package/lib/plugins/I18nSplitPlugin/README.md +25 -25
  37. package/lib/plugins/I18nSplitPlugin/index.js +57 -57
  38. package/lib/plugins/ResourceHintsPlugin.js +17 -17
  39. package/lib/plugins/RtlSplitPlugin/RtlCssPlugin.js +6 -6
  40. package/lib/plugins/RtlSplitPlugin/RtrSplit.md +30 -30
  41. package/lib/plugins/ServiceWorkerPlugin.js +9 -9
  42. package/lib/plugins/TPHashMappingPlugin.js +4 -4
  43. package/lib/plugins/VariableConversionCollector.js +54 -54
  44. package/lib/postcss-plugins/RTLSplitPlugin.js +10 -10
  45. package/lib/postcss-plugins/__test__/test1Input.css +38 -38
  46. package/lib/postcss-plugins/__test__/test1Output.css +38 -38
  47. package/lib/postcss-plugins/hoverActivePlugin.js +3 -3
  48. package/lib/schemas/index.js +8 -0
  49. package/lib/servers/docsServerCore.js +13 -12
  50. package/lib/servers/httpsOptions.js +40 -9
  51. package/lib/servers/nowatchserver.js +12 -11
  52. package/lib/servers/server.js +23 -20
  53. package/lib/sh/pre-commit.sh +34 -34
  54. package/lib/sh/reportPublish.sh +45 -45
  55. package/lib/utils/buildstats.html +148 -148
  56. package/lib/utils/getFileType.js +2 -2
  57. package/lib/utils/getOptions.js +13 -13
  58. package/lib/utils/getServerURL.js +12 -3
  59. package/lib/utils/resultSchema.json +73 -73
  60. package/npm8.md +9 -9
  61. package/package.json +121 -147
  62. package/postpublish.js +8 -6
  63. package/templates/app/.eslintrc.js +140 -140
  64. package/templates/app/README.md +12 -12
  65. package/templates/app/app/index.html +24 -24
  66. package/templates/app/app/properties/ApplicationResources_en_US.properties +1 -1
  67. package/templates/app/app/properties/i18nkeys.json +3 -3
  68. package/templates/app/docs/all.html +69 -69
  69. package/templates/app/mockapi/index.js +18 -18
  70. package/templates/app/package.json +37 -37
  71. package/templates/app/src/actions/SampleActions/index.js +37 -37
  72. package/templates/app/src/actions/index.js +65 -65
  73. package/templates/app/src/appUrls.js +19 -19
  74. package/templates/app/src/components/Alert/Alert.js +134 -134
  75. package/templates/app/src/components/Alert/Alert.module.css +79 -79
  76. package/templates/app/src/components/FreezeLayer/FreezeLayer.css +37 -37
  77. package/templates/app/src/components/FreezeLayer/FreezeLayer.js +84 -84
  78. package/templates/app/src/components/Sample/Sample.module.css +11 -11
  79. package/templates/app/src/components/Sample/SampleList.js +61 -61
  80. package/templates/app/src/components/Slider/Slider.css +41 -41
  81. package/templates/app/src/components/Slider/Slider.js +55 -55
  82. package/templates/app/src/containers/AlertContainer/index.js +15 -15
  83. package/templates/app/src/containers/AppContainer/index.js +96 -96
  84. package/templates/app/src/containers/AppContainer/index.module.css +27 -27
  85. package/templates/app/src/containers/CustomMatch/index.js +65 -65
  86. package/templates/app/src/containers/DevTools/index.js +10 -10
  87. package/templates/app/src/containers/Header/index.js +67 -67
  88. package/templates/app/src/containers/Header/index.module.css +43 -43
  89. package/templates/app/src/containers/Redirect/index.js +63 -63
  90. package/templates/app/src/containers/Redirector/index.js +47 -47
  91. package/templates/app/src/containers/SampleListContainer/ListContainer.js +42 -42
  92. package/templates/app/src/containers/SampleListContainer/ListContainer.module.css +3 -3
  93. package/templates/app/src/historyChange.js +5 -5
  94. package/templates/app/src/index.html +10 -10
  95. package/templates/app/src/index.js +24 -24
  96. package/templates/app/src/middleware/PromiseMiddleware.js +59 -59
  97. package/templates/app/src/reducers/alertData.js +11 -11
  98. package/templates/app/src/reducers/index.js +6 -6
  99. package/templates/app/src/reducers/samples.js +19 -19
  100. package/templates/app/src/store/configureStore.dev.js +51 -51
  101. package/templates/app/src/store/configureStore.js +5 -5
  102. package/templates/app/src/store/configureStore.prod.js +26 -26
  103. package/templates/app/src/util/Common.js +5 -5
  104. package/templates/app/src/util/RequestAPI.js +132 -132
  105. package/templates/docs/all.html +249 -249
  106. package/templates/docs/component.html +178 -178
  107. package/templates/docs/components.html +221 -221
  108. package/templates/docs/css/b.min.css +6 -6
  109. package/templates/docs/css/component.css +42 -42
  110. package/templates/docs/css/componentTest.css +6 -6
  111. package/templates/docs/css/hopscotch.css +585 -585
  112. package/templates/docs/css/style.css +1022 -1022
  113. package/templates/docs/impactReportTemplate.html +154 -154
  114. package/templates/docs/index.html +1501 -1501
  115. package/templates/docs/js/active-line.js +72 -72
  116. package/templates/docs/js/b.min.js +7 -7
  117. package/templates/docs/js/codemirror.js +9680 -9680
  118. package/templates/docs/js/designTokens.js +334 -334
  119. package/templates/docs/js/j.min.js +4 -4
  120. package/templates/docs/js/javascript.js +874 -874
  121. package/templates/docs/js/matchbrackets.js +145 -145
  122. package/cert/Tsicsezwild-22-23.crt +0 -37
  123. package/cert/Tsicsezwild-22-23.key +0 -27
  124. /package/{CHANGELOG.md → CHANGELOG-fz.md} +0 -0
@@ -26,14 +26,14 @@ const NPM_CONFIG_PREFIX = 'npm_config_'; // TODO: we have to do option parse log
26
26
  // // clone:type
27
27
 
28
28
  const processEnv = {};
29
- let keysWithColon = [];
29
+ const keysWithColon = [];
30
30
  Object.keys(process.env).filter(key => key.startsWith(NPM_CONFIG_PREFIX)).forEach(key => {
31
- let nkey = key.slice(NPM_CONFIG_PREFIX.length);
31
+ const nkey = key.slice(NPM_CONFIG_PREFIX.length);
32
32
  processEnv[nkey] = process.env[key];
33
33
  nkey.includes(':') && keysWithColon.push(nkey);
34
34
  });
35
35
  keysWithColon.forEach(key => {
36
- let nkey = key.replace(/:/g, '_');
36
+ const nkey = key.replace(/:/g, '_');
37
37
 
38
38
  if (processEnv[nkey]) {
39
39
  throw Error('there is some options conflict', key, nkey);
@@ -60,8 +60,8 @@ function getCWD() {
60
60
  let cwd = process.cwd();
61
61
 
62
62
  try {
63
- let ress = (0, _child_process.execSync)('npm bin').toString();
64
- let i = ress.lastIndexOf('node_modules');
63
+ const ress = (0, _child_process.execSync)('npm bin').toString();
64
+ const i = ress.lastIndexOf('node_modules');
65
65
  cwd = i === -1 ? cwd : ress.slice(0, i);
66
66
  } catch (error) {
67
67
  console.log(error);
@@ -73,7 +73,7 @@ function getCWD() {
73
73
 
74
74
  args.forEach(option => {
75
75
  if (/^--./.test(option)) {
76
- let equIndex = option.indexOf('='); // equIndex = equIndex === -1 ? option.length : equIndex;
76
+ const equIndex = option.indexOf('='); // equIndex = equIndex === -1 ? option.length : equIndex;
77
77
 
78
78
  let key = option.slice(2, equIndex);
79
79
  let value = option.slice(equIndex + 1);
@@ -88,10 +88,10 @@ args.forEach(option => {
88
88
  }
89
89
  });
90
90
 
91
- let defaulter = (target, source) => {
92
- let defaultObject = {};
91
+ const defaulter = (target, source) => {
92
+ const defaultObject = {};
93
93
  Object.keys(target).forEach(key => {
94
- let data = target[key];
94
+ const data = target[key];
95
95
 
96
96
  if (data && typeof data === 'object') {
97
97
  if (Array.isArray(data)) {
@@ -151,21 +151,21 @@ function deprecationSupport(options) {
151
151
  }
152
152
  }
153
153
 
154
- let getOptions = () => {
154
+ const getOptions = () => {
155
155
  if (global.reactCLIOptions) {
156
156
  return global.reactCLIOptions;
157
157
  }
158
158
 
159
- let appPath = process.cwd();
159
+ const appPath = process.cwd();
160
160
  let userSchemas;
161
161
 
162
- let packagePath = _path.default.join(appPath, 'package.json');
162
+ const packagePath = _path.default.join(appPath, 'package.json');
163
163
 
164
164
  if (_fs.default.existsSync(packagePath)) {
165
165
  userSchemas = require(packagePath)['react-cli'] || {};
166
166
  }
167
167
 
168
- let options = defaulter(_schemas.default, userSchemas || {}); // for future may be for npm 8 edge cases
168
+ const options = defaulter(_schemas.default, userSchemas || {}); // for future may be for npm 8 edge cases
169
169
 
170
170
  options.npmVersion = getNpmVersion();
171
171
  options.cwd = getCWD();
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
- let getServerURL = (serverInfo, protocol) => {
8
+ const getServerURL = (serverInfo, protocol) => {
9
+ // eslint-disable-next-line prefer-const
9
10
  let {
10
11
  host,
11
12
  domain,
@@ -13,6 +14,10 @@ let getServerURL = (serverInfo, protocol) => {
13
14
  } = serverInfo;
14
15
 
15
16
  if (protocol) {
17
+ if (domain === 'kubernetes') {
18
+ return `${protocol ? `${protocol}:` : ''}//${host}`;
19
+ }
20
+
16
21
  if (protocol === 'ht' + 'tp') {
17
22
  port = Number(port) + 1;
18
23
 
@@ -20,12 +25,16 @@ let getServerURL = (serverInfo, protocol) => {
20
25
  return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com:${Number(port) + 1}`;
21
26
  }
22
27
 
23
- return `${protocol ? `${protocol}:` : ''}//${host}:${port}`;
28
+ return `${protocol ? `${protocol}:` : ''}//${host}:${Number(port) + 1}`;
24
29
  }
25
30
  }
26
31
 
32
+ if (domain === 'kubernetes') {
33
+ return `${protocol ? `${protocol}:` : ''}//${host}`;
34
+ }
35
+
27
36
  if (domain) {
28
- return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com:${port}`;
37
+ return `${protocol ? `${protocol}:` : ''}//${host}.${domain}.zohocorpin.com: ${port}`;
29
38
  }
30
39
 
31
40
  return `${protocol ? `${protocol}:` : ''}//${host}:${port}`;
@@ -1,73 +1,73 @@
1
- {
2
- "jobDetails": {
3
- "isTriggeredFromGit": true,
4
- "isCIPassed": true,
5
- "developerName": "GITLAB_USER_NAME",
6
- "jobID": "CI_PIPELINE_ID",
7
- "branchName": "CI_COMMIT_REF_NAME",
8
- "commitMessage": "CI_COMMIT_MESSAGE",
9
- "jobURL": "CI_JOB_URL",
10
- "isByManual": "CI_JOB_MANUAL",
11
- "commitID": "CI_COMMIT_SHA",
12
- "executionTime": "Date.now()-Date.now()",
13
- "hostName": "kathir-zt252"
14
- },
15
- "tests": {
16
- "unitCase": {
17
- "startTime": "123455",
18
- "endTime": "123446",
19
- "isExecuted": true,
20
- "numberOfSuccess": "",
21
- "numberOfFails": "",
22
- "numberOfCases": "",
23
- "numberOfSuites": "",
24
- "fileDetail": {
25
- "fileName": "sample.spec.js",
26
- "caseDetail": {
27
- "failedCaseLists": [],
28
- "passedCaseList": []
29
- }
30
- },
31
- "coverageDetail": {
32
- "codeCoveragePercentage": "",
33
- "fileCoveragePercentage": ""
34
- }
35
- },
36
- "modifiedFileUnitCase": {
37
- "hasChanges": "true",
38
- "startTime": "123455",
39
- "endTime": "123446",
40
- "isExecuted": true,
41
- "isPassed": true,
42
- "numberOfSuccess": "",
43
- "numberOfFails": "",
44
- "numberOfCases": "",
45
- "numberOfSuites": "",
46
- "fileDetail": {
47
- "fileName": "sample.spec.js",
48
- "caseDetail": {
49
- "failedCaseLists": [],
50
- "passedCaseList": []
51
- }
52
- },
53
- "coverageDetail": {
54
- "codeCoveragePercentage": "",
55
- "fileCoveragePercentage": ""
56
- }
57
- },
58
- "screenshotTest": {
59
- "message": "some",
60
- "startTime": "123455",
61
- "endTime": "123446",
62
- "isThisExecuted": true,
63
- "compareBranch": "master",
64
- "isPassed": true,
65
- "result": {
66
- "numberOfComponents": 200,
67
- "numberOfDiffFiles": 20,
68
- "improperDocsList": [],
69
- "erroredComponents": []
70
- }
71
- }
72
- }
73
- }
1
+ {
2
+ "jobDetails": {
3
+ "isTriggeredFromGit": true,
4
+ "isCIPassed": true,
5
+ "developerName": "GITLAB_USER_NAME",
6
+ "jobID": "CI_PIPELINE_ID",
7
+ "branchName": "CI_COMMIT_REF_NAME",
8
+ "commitMessage": "CI_COMMIT_MESSAGE",
9
+ "jobURL": "CI_JOB_URL",
10
+ "isByManual": "CI_JOB_MANUAL",
11
+ "commitID": "CI_COMMIT_SHA",
12
+ "executionTime": "Date.now()-Date.now()",
13
+ "hostName": "kathir-zt252"
14
+ },
15
+ "tests": {
16
+ "unitCase": {
17
+ "startTime": "123455",
18
+ "endTime": "123446",
19
+ "isExecuted": true,
20
+ "numberOfSuccess": "",
21
+ "numberOfFails": "",
22
+ "numberOfCases": "",
23
+ "numberOfSuites": "",
24
+ "fileDetail": {
25
+ "fileName": "sample.spec.js",
26
+ "caseDetail": {
27
+ "failedCaseLists": [],
28
+ "passedCaseList": []
29
+ }
30
+ },
31
+ "coverageDetail": {
32
+ "codeCoveragePercentage": "",
33
+ "fileCoveragePercentage": ""
34
+ }
35
+ },
36
+ "modifiedFileUnitCase": {
37
+ "hasChanges": "true",
38
+ "startTime": "123455",
39
+ "endTime": "123446",
40
+ "isExecuted": true,
41
+ "isPassed": true,
42
+ "numberOfSuccess": "",
43
+ "numberOfFails": "",
44
+ "numberOfCases": "",
45
+ "numberOfSuites": "",
46
+ "fileDetail": {
47
+ "fileName": "sample.spec.js",
48
+ "caseDetail": {
49
+ "failedCaseLists": [],
50
+ "passedCaseList": []
51
+ }
52
+ },
53
+ "coverageDetail": {
54
+ "codeCoveragePercentage": "",
55
+ "fileCoveragePercentage": ""
56
+ }
57
+ },
58
+ "screenshotTest": {
59
+ "message": "some",
60
+ "startTime": "123455",
61
+ "endTime": "123446",
62
+ "isThisExecuted": true,
63
+ "compareBranch": "master",
64
+ "isPassed": true,
65
+ "result": {
66
+ "numberOfComponents": 200,
67
+ "numberOfDiffFiles": 20,
68
+ "improperDocsList": [],
69
+ "erroredComponents": []
70
+ }
71
+ }
72
+ }
73
+ }
package/npm8.md CHANGED
@@ -1,9 +1,9 @@
1
- # npm 8 change related things
2
-
3
- 1. in npm run script config options `:` not working (properly|correctly), So we need to use `_` in the place of `:`
4
- For Example:
5
- - `--app:port` wouldn't work we have to do like this `--app_port`
6
- - `--clone:proj:name` wouldn't work we have to do like this `----clone_proj_name`
7
-
8
- @zohodes/react-cli or fz-react-cli regardless of what cli you use.
9
- So, we need to change all package.json script which is using this (`:`) we need to change as (`_`)
1
+ # npm 8 change related things
2
+
3
+ 1. in npm run script config options `:` not working (properly|correctly), So we need to use `_` in the place of `:`
4
+ For Example:
5
+ - `--app:port` wouldn't work we have to do like this `--app_port`
6
+ - `--clone:proj:name` wouldn't work we have to do like this `----clone_proj_name`
7
+
8
+ @zohodes/react-cli or fz-react-cli regardless of what cli you use.
9
+ So, we need to change all package.json script which is using this (`:`) we need to change as (`_`)
package/package.json CHANGED
@@ -1,147 +1,121 @@
1
- {
2
- "name": "@zohodesk/react-cli",
3
- "version": "0.0.1-beta.177",
4
- "description": "A CLI tool for build modern web application and libraries",
5
- "scripts": {
6
- "init": "node ./lib/utils/init.js",
7
- "clean": "rimraf lib coverage",
8
- "test": "jest",
9
- "start": "babel src -d lib -w --copy-files",
10
- "build": "babel src -d lib --copy-files",
11
- "prepare": "npm run clean && npm run build",
12
- "prepublish": "npm prune now",
13
- "lint": "eslint src ./bin/cli.js",
14
- "postpublish": "node postpublish.js",
15
- "expublish": "npm publish --tag experimental-version"
16
- },
17
- "engines": {
18
- "node": ">=8.15.1"
19
- },
20
- "private": false,
21
- "repository": {
22
- "type": "git",
23
- "url": "git+https://git.csez.zohocorpin.com/zohodesk/react-cli.git"
24
- },
25
- "author": "zohodesk",
26
- "license": "ISC",
27
- "bugs": {
28
- "url": "https://git.csez.zohocorpin.com/zohodesk/react-cli/issues"
29
- },
30
- "homepage": "https://git.csez.zohocorpin.com/zohodesk/react-cli/blob/2.0.0/README.md",
31
- "dependencies": {
32
- "@babel/cli": "7.10.5",
33
- "@babel/core": "7.11.1",
34
- "@babel/plugin-proposal-object-rest-spread": "7.11.0",
35
- "@babel/plugin-syntax-dynamic-import": "7.8.3",
36
- "@babel/plugin-transform-runtime": "7.11.0",
37
- "@babel/preset-env": "7.11.0",
38
- "@babel/preset-react": "7.10.4",
39
- "@babel/runtime": "7.11.2",
40
- "@zohodesk/datetimejs": "1.0.0-beta.8",
41
- "@zohodesk/eslint-plugin-react-performance": "1.0.3",
42
- "@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
43
- "@zohodesk/normalizer": "1.0.2",
44
- "@zohodesk/postcss-rtl": "1.5.2",
45
- "@zohodesk/propertytojson": "1.0.1",
46
- "@zohodesk/screenshot-test": "0.0.1-beta.20",
47
- "babel-eslint": "10.1.0",
48
- "babel-jest": "26.3.0",
49
- "babel-loader": "8.1.0",
50
- "babel-plugin-lodash": "3.3.4",
51
- "babel-plugin-transform-define": "2.0.0",
52
- "babel-plugin-transform-dynamic-import": "2.1.0",
53
- "babel-plugin-transform-react-remove-prop-types": "0.4.24",
54
- "babel-plugin-transform-remove-console": "6.9.4",
55
- "case-sensitive-paths-webpack-plugin": "2.3.0",
56
- "compression": "1.7.4",
57
- "copy-webpack-plugin": "5.1.2",
58
- "core-js": "3.6.5",
59
- "css-loader": "4.2.1",
60
- "debug": "4.3.3",
61
- "escodegen": "2.0.0",
62
- "eslint": "7.6.0",
63
- "eslint-html-reporter": "0.7.4",
64
- "eslint-loader": "4.0.2",
65
- "eslint-plugin-css-modules": "2.11.0",
66
- "eslint-plugin-react": "7.20.6",
67
- "esprima": "4.0.1",
68
- "expect": "26.4.0",
69
- "express": "4.17.1",
70
- "file-loader": "6.0.0",
71
- "fz-i18n": "1.2.0-beta.15",
72
- "fz-layout": "1.0.0-beta.8",
73
- "fz-permission": "0.0.2",
74
- "git-root-dir": "1.0.2",
75
- "gitlab": "14.2.2",
76
- "history": "4.9.0",
77
- "hoist-non-react-statics": "3.3.2",
78
- "html-loader": "1.1.0",
79
- "html-webpack-inject-attributes-plugin": "1.0.6",
80
- "html-webpack-plugin": "4.3.0",
81
- "http-proxy-middleware": "1.0.5",
82
- "jest": "26.4.0",
83
- "jsdom": "16.4.0",
84
- "loader-utils": "2.0.0",
85
- "lodash-webpack-plugin": "0.11.5",
86
- "mini-css-extract-plugin": "0.10.0",
87
- "moment": "2.29.1",
88
- "moment-timezone": "0.5.32",
89
- "nock": "13.0.4",
90
- "nodemailer": "6.4.11",
91
- "nodemon": "2.0.4",
92
- "optimize-js": "1.0.3",
93
- "postcss": "7.0.32",
94
- "postcss-combine-media-query": "1.0.1",
95
- "postcss-hash-classname": "0.4.0",
96
- "postcss-loader": "3.0.0",
97
- "postcss-mobile-hover": "1.0.2",
98
- "postcss-selector-replace": "1.0.2",
99
- "prop-types": "15.7.2",
100
- "react": "16.13.1",
101
- "react-dom": "16.13.1",
102
- "react-error-overlay": "6.0.7",
103
- "react-redux": "7.2.1",
104
- "react-router": "5.2.0",
105
- "react-router-redux": "4.0.8",
106
- "react-test-renderer": "16.13.1",
107
- "react-transition-group": "2.7.1",
108
- "redis": "3.0.2",
109
- "redux": "4.0.5",
110
- "redux-logger": "3.0.6",
111
- "redux-mock-store": "1.5.4",
112
- "redux-router-middleware": "1.0.0-beta.22",
113
- "redux-thunk": "2.3.0",
114
- "reselect": "4.0.0",
115
- "rimraf": "3.0.2",
116
- "script-loader": "0.7.2",
117
- "selectn": "1.1.2",
118
- "simple-normalizr": "1.2.5",
119
- "uglifycss": "0.0.29",
120
- "url-loader": "4.1.0",
121
- "velocity-react": "1.4.3",
122
- "webpack": "4.44.1",
123
- "webpack-bundle-analyzer": "4.5.0",
124
- "webpack-cli": "3.3.12",
125
- "webpack-core": "0.6.9",
126
- "webpack-dev-middleware": "3.7.2",
127
- "ws": "7.3.1",
128
- "xhr2": "0.2.0",
129
- "xmlhttprequest": "1.8.0"
130
- },
131
- "bin": {
132
- "react-cli": "bin/cli.js"
133
- },
134
- "babel": {
135
- "presets": [
136
- [
137
- "@babel/env",
138
- {
139
- "targets": {
140
- "node": "8.15.1"
141
- }
142
- }
143
- ],
144
- "@babel/react"
145
- ]
146
- }
147
- }
1
+ {
2
+ "name": "@zohodesk/react-cli",
3
+ "version": "0.0.1-beta.179",
4
+ "description": "A CLI tool for build modern web application and libraries",
5
+ "scripts": {
6
+ "init": "node ./lib/utils/init.js",
7
+ "clean": "rimraf lib coverage",
8
+ "test": "jest",
9
+ "start": "babel src -d lib -w --copy-files",
10
+ "build": "babel src -d lib --copy-files",
11
+ "prepare": "npm run clean && npm run build",
12
+ "prepublishOnly": "npm prune --production",
13
+ "lint": "eslint src ./bin/cli.js",
14
+ "postpublish": "node postpublish.js",
15
+ "expublish": "npm publish --tag experimental-version"
16
+ },
17
+ "engines": {
18
+ "node": ">=8.15.1"
19
+ },
20
+ "private": false,
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://git.csez.zohocorpin.com/zohodesk/react-cli.git"
24
+ },
25
+ "author": "zohodesk",
26
+ "license": "ISC",
27
+ "bugs": {
28
+ "url": "https://git.csez.zohocorpin.com/zohodesk/react-cli/issues"
29
+ },
30
+ "homepage": "https://git.csez.zohocorpin.com/zohodesk/react-cli/blob/2.0.0/README.md",
31
+ "bin": {
32
+ "react-cli": "bin/cli.js"
33
+ },
34
+ "dependencies": {
35
+ "@babel/cli": "7.10.5",
36
+ "@babel/core": "7.11.1",
37
+ "@babel/plugin-proposal-object-rest-spread": "7.11.0",
38
+ "@babel/plugin-syntax-dynamic-import": "7.8.3",
39
+ "@babel/plugin-transform-runtime": "7.11.0",
40
+ "@babel/preset-env": "7.11.0",
41
+ "@babel/preset-react": "7.10.4",
42
+ "@babel/runtime": "7.11.2",
43
+ "@zohodesk/client_packages_group": "1.0.1",
44
+ "@zohodesk/eslint-plugin-react-performance": "1.0.3",
45
+ "@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
46
+ "@zohodesk/postcss-rtl": "1.5.2",
47
+ "@zohodesk/propertytojson": "1.0.1",
48
+ "@zohodesk/screenshot-test": "0.0.1-beta.20",
49
+ "babel-eslint": "10.1.0",
50
+ "babel-jest": "26.3.0",
51
+ "babel-loader": "8.1.0",
52
+ "babel-plugin-lodash": "3.3.4",
53
+ "babel-plugin-transform-define": "2.0.0",
54
+ "babel-plugin-transform-dynamic-import": "2.1.0",
55
+ "babel-plugin-transform-react-remove-prop-types": "0.4.24",
56
+ "babel-plugin-transform-remove-console": "6.9.4",
57
+ "case-sensitive-paths-webpack-plugin": "2.3.0",
58
+ "compression": "1.7.4",
59
+ "copy-webpack-plugin": "5.1.2",
60
+ "css-loader": "4.2.1",
61
+ "escodegen": "2.0.0",
62
+ "eslint": "7.6.0",
63
+ "eslint-html-reporter": "0.7.4",
64
+ "eslint-loader": "4.0.2",
65
+ "eslint-plugin-css-modules": "2.11.0",
66
+ "eslint-plugin-react": "7.20.6",
67
+ "esprima": "4.0.1",
68
+ "expect": "26.4.0",
69
+ "express": "4.17.1",
70
+ "file-loader": "6.0.0",
71
+ "git-root-dir": "1.0.2",
72
+ "gitlab": "14.2.2",
73
+ "html-loader": "1.1.0",
74
+ "html-webpack-inject-attributes-plugin": "1.0.6",
75
+ "html-webpack-plugin": "4.3.0",
76
+ "http-proxy-middleware": "1.0.5",
77
+ "jest": "26.4.0",
78
+ "jsdom": "16.4.0",
79
+ "loader-utils": "2.0.0",
80
+ "lodash-webpack-plugin": "0.11.5",
81
+ "mini-css-extract-plugin": "0.10.0",
82
+ "nock": "13.2.9",
83
+ "nodemailer": "6.4.11",
84
+ "nodemon": "2.0.4",
85
+ "optimize-js": "1.0.3",
86
+ "postcss": "7.0.32",
87
+ "postcss-combine-media-query": "1.0.1",
88
+ "postcss-hash-classname": "0.4.0",
89
+ "postcss-loader": "3.0.0",
90
+ "postcss-mobile-hover": "1.0.2",
91
+ "postcss-selector-replace": "1.0.2",
92
+ "react-test-renderer": "16.13.1",
93
+ "redis": "3.0.2",
94
+ "redux-mock-store": "1.5.4",
95
+ "rimraf": "3.0.2",
96
+ "script-loader": "0.7.2",
97
+ "uglifycss": "0.0.29",
98
+ "url-loader": "4.1.0",
99
+ "webpack": "4.44.1",
100
+ "webpack-bundle-analyzer": "4.5.0",
101
+ "webpack-cli": "3.3.12",
102
+ "webpack-core": "0.6.9",
103
+ "webpack-dev-middleware": "3.7.2",
104
+ "ws": "7.3.1",
105
+ "xhr2": "0.2.0",
106
+ "xmlhttprequest": "1.8.0"
107
+ },
108
+ "babel": {
109
+ "presets": [
110
+ [
111
+ "@babel/env",
112
+ {
113
+ "targets": {
114
+ "node": "8.15.1"
115
+ }
116
+ }
117
+ ],
118
+ "@babel/react"
119
+ ]
120
+ }
121
+ }
package/postpublish.js CHANGED
@@ -1,6 +1,8 @@
1
- const { execSync } = require('child_process');
2
- const { version } = require('./package.json');
3
- console.log(`going to add git tag... v${version}`);
4
-
5
- execSync(`git tag -a v${version}`, { stdio: 'inherit' });
6
- execSync(`git push origin v${version}`, { stdio: 'inherit' });
1
+ const { execSync } = require('child_process');
2
+ const { version, name } = require('./package.json');
3
+ const tagName = `${name}@${version}`;
4
+ // const tagName = `${name.replace(/^@/g, "").replace(/\//g, "-")}-v-${version}}@${version}`;
5
+ console.log(`going to add git tag... ${tagName}`);
6
+
7
+ execSync(`git tag -a ${tagName}`, { stdio: 'inherit' });
8
+ execSync(`git push origin ${tagName}`, { stdio: 'inherit' });