@zohodesk/react-cli 0.0.1-exp.169.2 → 0.0.1-exp.175.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. package/.eslintignore +7 -7
  2. package/.eslintrc.js +180 -179
  3. package/.prettierrc +6 -6
  4. package/{CHANGELOG.md → CHANGELOG-fz.md} +0 -0
  5. package/Changelog.md +1019 -0
  6. package/README.md +27 -951
  7. package/bin/cli.js +483 -483
  8. package/docs/CustomChunks.md +26 -26
  9. package/docs/DevStart.md +18 -18
  10. package/docs/HoverActive.md +12 -12
  11. package/docs/InstallNode.md +28 -28
  12. package/docs/TODOS.md +10 -10
  13. package/docs/ValueReplacer.md +60 -60
  14. package/docs/VariableConversion.md +678 -0
  15. package/docs/warnings_while_install.txt +35 -35
  16. package/files/eslintrc.js +62 -62
  17. package/files/prettierrc.js +3 -3
  18. package/lib/configs/jest.config.js +8 -12
  19. package/lib/configs/libAlias.js +10 -3
  20. package/lib/configs/resolvers.js +38 -0
  21. package/lib/configs/webpack.css.umd.config.js +4 -4
  22. package/lib/configs/webpack.dev.config.js +17 -22
  23. package/lib/configs/webpack.docs.config.js +10 -15
  24. package/lib/configs/webpack.impact.config.js +11 -11
  25. package/lib/configs/webpack.prod.config.js +22 -24
  26. package/lib/constants.js +31 -0
  27. package/lib/jest/preProcessors/cssPreprocessor.js +16 -7
  28. package/lib/loaderUtils/configsAssetsLoaders.js +33 -33
  29. package/lib/loaderUtils/getCSSLoaders.js +42 -22
  30. package/lib/loaders/workerLoader.js +9 -9
  31. package/lib/pluginUtils/configHtmlWebpackPlugins.js +59 -0
  32. package/lib/pluginUtils/getDevPlugins.js +19 -39
  33. package/lib/pluginUtils/getProdPlugins.js +29 -47
  34. package/lib/plugins/EFCPlugin.md +6 -6
  35. package/lib/plugins/I18NInjectIntoIndexPlugin.js +4 -4
  36. package/lib/plugins/I18nSplitPlugin/I18nDownlodLogic.js +38 -38
  37. package/lib/plugins/I18nSplitPlugin/I18nFilesEmitter.js +30 -30
  38. package/lib/plugins/I18nSplitPlugin/I18nKeysIdentifer.js +8 -8
  39. package/lib/plugins/I18nSplitPlugin/I18nSplit.md +95 -95
  40. package/lib/plugins/I18nSplitPlugin/README.md +25 -25
  41. package/lib/plugins/I18nSplitPlugin/index.js +57 -57
  42. package/lib/plugins/ResourceHintsPlugin.js +17 -17
  43. package/lib/plugins/RtlSplitPlugin/RtlCssPlugin.js +16 -24
  44. package/lib/plugins/RtlSplitPlugin/RtrSplit.md +30 -30
  45. package/lib/plugins/ServiceWorkerPlugin.js +9 -9
  46. package/lib/plugins/TPHashMappingPlugin.js +4 -4
  47. package/lib/postcss-plugins/RTLSplitPlugin.js +10 -10
  48. package/lib/postcss-plugins/__test__/test1Input.css +38 -38
  49. package/lib/postcss-plugins/__test__/test1Output.css +38 -38
  50. package/lib/postcss-plugins/hoverActivePlugin.js +54 -30
  51. package/lib/postcss-plugins/variableModificationPlugin/ErrorHandler.js +37 -0
  52. package/lib/postcss-plugins/variableModificationPlugin/index.js +248 -0
  53. package/lib/postcss-plugins/variableModifier.js +1 -0
  54. package/lib/schemas/index.js +36 -8
  55. package/lib/servers/docsServerCore.js +13 -12
  56. package/lib/servers/getCliPath.js +1 -1
  57. package/lib/servers/httpsOptions.js +40 -9
  58. package/lib/servers/nowatchserver.js +12 -11
  59. package/lib/servers/server.js +14 -13
  60. package/lib/sh/pre-commit.sh +34 -34
  61. package/lib/sh/reportPublish.sh +45 -45
  62. package/lib/utils/buildstats.html +148 -148
  63. package/lib/utils/getOptions.js +42 -14
  64. package/lib/utils/resultSchema.json +73 -73
  65. package/npm8.md +9 -9
  66. package/package.json +119 -148
  67. package/postpublish.js +8 -6
  68. package/templates/app/.eslintrc.js +140 -140
  69. package/templates/app/README.md +12 -12
  70. package/templates/app/app/index.html +24 -24
  71. package/templates/app/app/properties/ApplicationResources_en_US.properties +1 -1
  72. package/templates/app/app/properties/i18nkeys.json +3 -3
  73. package/templates/app/docs/all.html +69 -69
  74. package/templates/app/mockapi/index.js +18 -18
  75. package/templates/app/package.json +37 -37
  76. package/templates/app/src/actions/SampleActions/index.js +37 -37
  77. package/templates/app/src/actions/index.js +65 -65
  78. package/templates/app/src/appUrls.js +19 -19
  79. package/templates/app/src/components/Alert/Alert.js +134 -134
  80. package/templates/app/src/components/Alert/Alert.module.css +79 -79
  81. package/templates/app/src/components/FreezeLayer/FreezeLayer.css +37 -37
  82. package/templates/app/src/components/FreezeLayer/FreezeLayer.js +84 -84
  83. package/templates/app/src/components/Sample/Sample.module.css +11 -11
  84. package/templates/app/src/components/Sample/SampleList.js +61 -61
  85. package/templates/app/src/components/Slider/Slider.css +41 -41
  86. package/templates/app/src/components/Slider/Slider.js +55 -55
  87. package/templates/app/src/containers/AlertContainer/index.js +15 -15
  88. package/templates/app/src/containers/AppContainer/index.js +96 -96
  89. package/templates/app/src/containers/AppContainer/index.module.css +27 -27
  90. package/templates/app/src/containers/CustomMatch/index.js +65 -65
  91. package/templates/app/src/containers/DevTools/index.js +10 -10
  92. package/templates/app/src/containers/Header/index.js +67 -67
  93. package/templates/app/src/containers/Header/index.module.css +43 -43
  94. package/templates/app/src/containers/Redirect/index.js +63 -63
  95. package/templates/app/src/containers/Redirector/index.js +47 -47
  96. package/templates/app/src/containers/SampleListContainer/ListContainer.js +42 -42
  97. package/templates/app/src/containers/SampleListContainer/ListContainer.module.css +3 -3
  98. package/templates/app/src/historyChange.js +5 -5
  99. package/templates/app/src/index.html +10 -10
  100. package/templates/app/src/index.js +24 -24
  101. package/templates/app/src/middleware/PromiseMiddleware.js +59 -59
  102. package/templates/app/src/reducers/alertData.js +11 -11
  103. package/templates/app/src/reducers/index.js +6 -6
  104. package/templates/app/src/reducers/samples.js +19 -19
  105. package/templates/app/src/store/configureStore.dev.js +51 -51
  106. package/templates/app/src/store/configureStore.js +5 -5
  107. package/templates/app/src/store/configureStore.prod.js +26 -26
  108. package/templates/app/src/util/Common.js +5 -5
  109. package/templates/app/src/util/RequestAPI.js +132 -132
  110. package/templates/docs/all.html +249 -249
  111. package/templates/docs/component.html +178 -178
  112. package/templates/docs/components.html +221 -221
  113. package/templates/docs/css/b.min.css +6 -6
  114. package/templates/docs/css/component.css +42 -42
  115. package/templates/docs/css/componentTest.css +6 -6
  116. package/templates/docs/css/hopscotch.css +585 -585
  117. package/templates/docs/css/style.css +1022 -1022
  118. package/templates/docs/impactReportTemplate.html +154 -154
  119. package/templates/docs/index.html +1501 -1493
  120. package/templates/docs/js/active-line.js +72 -72
  121. package/templates/docs/js/b.min.js +7 -7
  122. package/templates/docs/js/codemirror.js +9680 -9680
  123. package/templates/docs/js/designTokens.js +334 -334
  124. package/templates/docs/js/j.min.js +4 -4
  125. package/templates/docs/js/javascript.js +874 -874
  126. package/templates/docs/js/matchbrackets.js +145 -145
  127. package/cert/Tsicsezwild-22-23.crt +0 -37
  128. package/cert/Tsicsezwild-22-23.key +0 -27
@@ -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,148 +1,119 @@
1
- {
2
- "name": "@zohodesk/react-cli",
3
- "version": "0.0.1-exp.169.2",
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
- "lint": "eslint src ./bin/cli.js",
13
- "postpublish": "node postpublish.js",
14
- "expublish": "npm publish --tag experimental-version"
15
- },
16
- "engines": {
17
- "node": ">=8.15.1"
18
- },
19
- "private": false,
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://git.csez.zohocorpin.com/zohodesk/react-cli.git"
23
- },
24
- "author": "zohodesk",
25
- "license": "ISC",
26
- "bugs": {
27
- "url": "https://git.csez.zohocorpin.com/zohodesk/react-cli/issues"
28
- },
29
- "homepage": "https://git.csez.zohocorpin.com/zohodesk/react-cli/blob/2.0.0/README.md",
30
- "dependencies": {
31
- "@babel/cli": "7.10.5",
32
- "@babel/core": "7.11.1",
33
- "@babel/plugin-proposal-object-rest-spread": "7.11.0",
34
- "@babel/plugin-syntax-dynamic-import": "7.8.3",
35
- "@babel/plugin-transform-runtime": "7.11.0",
36
- "@babel/preset-env": "7.11.0",
37
- "@babel/preset-react": "7.10.4",
38
- "@babel/runtime": "7.11.2",
39
- "@zohodesk/datetimejs": "1.0.0-beta.8",
40
- "@zohodesk/eslint-plugin-react-performance": "1.0.3",
41
- "@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
42
- "@zohodesk/normalizer": "1.0.2",
43
- "@zohodesk/postcss-rtl": "1.5.2",
44
- "@zohodesk/propertytojson": "1.0.1",
45
- "@zohodesk/screenshot-test": "0.0.1-beta.20",
46
- "babel-eslint": "10.1.0",
47
- "babel-jest": "26.3.0",
48
- "babel-loader": "8.1.0",
49
- "babel-plugin-lodash": "3.3.4",
50
- "babel-plugin-transform-define": "2.0.0",
51
- "babel-plugin-transform-dynamic-import": "2.1.0",
52
- "babel-plugin-transform-react-remove-prop-types": "0.4.24",
53
- "babel-plugin-transform-remove-console": "6.9.4",
54
- "case-sensitive-paths-webpack-plugin": "2.3.0",
55
- "compression": "1.7.4",
56
- "copy-webpack-plugin": "5.1.2",
57
- "core-js": "3.6.5",
58
- "css-loader": "4.2.1",
59
- "debug": "4.3.3",
60
- "escodegen": "2.0.0",
61
- "eslint": "7.6.0",
62
- "eslint-html-reporter": "0.7.4",
63
- "eslint-loader": "4.0.2",
64
- "eslint-plugin-css-modules": "2.11.0",
65
- "eslint-plugin-react": "7.20.6",
66
- "esprima": "4.0.1",
67
- "expect": "26.4.0",
68
- "express": "4.17.1",
69
- "file-loader": "6.0.0",
70
- "fz-i18n": "1.2.0-beta.15",
71
- "fz-layout": "1.0.0-beta.8",
72
- "fz-permission": "0.0.2",
73
- "git-root-dir": "1.0.2",
74
- "gitlab": "14.2.2",
75
- "history": "4.9.0",
76
- "hoist-non-react-statics": "3.3.2",
77
- "html-loader": "1.1.0",
78
- "html-webpack-inject-attributes-plugin": "1.0.6",
79
- "html-webpack-plugin": "4.3.0",
80
- "http-proxy-middleware": "1.0.5",
81
- "identity-obj-proxy": "3.0.0",
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-import": "14.1.0",
97
- "postcss-loader": "3.0.0",
98
- "postcss-mobile-hover": "1.0.2",
99
- "postcss-selector-replace": "1.0.2",
100
- "prop-types": "15.7.2",
101
- "react": "16.13.1",
102
- "react-dom": "16.13.1",
103
- "react-error-overlay": "6.0.7",
104
- "react-redux": "7.2.1",
105
- "react-router": "5.2.0",
106
- "react-router-redux": "4.0.8",
107
- "react-test-renderer": "16.13.1",
108
- "react-transition-group": "2.7.1",
109
- "redis": "3.0.2",
110
- "redux": "4.0.5",
111
- "redux-logger": "3.0.6",
112
- "redux-mock-store": "1.5.4",
113
- "redux-router-middleware": "1.0.0-beta.22",
114
- "redux-thunk": "2.3.0",
115
- "reselect": "4.0.0",
116
- "rimraf": "3.0.2",
117
- "script-loader": "0.7.2",
118
- "selectn": "1.1.2",
119
- "simple-normalizr": "1.2.5",
120
- "uglifycss": "0.0.29",
121
- "url-loader": "4.1.0",
122
- "velocity-react": "1.4.3",
123
- "webpack": "4.44.1",
124
- "webpack-bundle-analyzer": "4.5.0",
125
- "webpack-cli": "3.3.12",
126
- "webpack-core": "0.6.9",
127
- "webpack-dev-middleware": "3.7.2",
128
- "ws": "7.3.1",
129
- "xhr2": "0.2.0",
130
- "xmlhttprequest": "1.8.0"
131
- },
132
- "bin": {
133
- "react-cli": "bin/cli.js"
134
- },
135
- "babel": {
136
- "presets": [
137
- [
138
- "@babel/env",
139
- {
140
- "targets": {
141
- "node": "8.15.1"
142
- }
143
- }
144
- ],
145
- "@babel/react"
146
- ]
147
- }
148
- }
1
+ {
2
+ "name": "@zohodesk/react-cli",
3
+ "version": "0.0.1-exp.175.0",
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
+ "lint": "eslint src ./bin/cli.js",
13
+ "postpublish": "node postpublish.js",
14
+ "expublish": "npm publish --tag experimental-version"
15
+ },
16
+ "engines": {
17
+ "node": ">=8.15.1"
18
+ },
19
+ "private": false,
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://git.csez.zohocorpin.com/zohodesk/react-cli.git"
23
+ },
24
+ "author": "zohodesk",
25
+ "license": "ISC",
26
+ "bugs": {
27
+ "url": "https://git.csez.zohocorpin.com/zohodesk/react-cli/issues"
28
+ },
29
+ "homepage": "https://git.csez.zohocorpin.com/zohodesk/react-cli/blob/2.0.0/README.md",
30
+ "bin": {
31
+ "react-cli": "bin/cli.js"
32
+ },
33
+ "dependencies": {
34
+ "@babel/cli": "7.10.5",
35
+ "@babel/core": "7.11.1",
36
+ "@babel/plugin-proposal-object-rest-spread": "7.11.0",
37
+ "@babel/plugin-syntax-dynamic-import": "7.8.3",
38
+ "@babel/plugin-transform-runtime": "7.11.0",
39
+ "@babel/preset-env": "7.11.0",
40
+ "@babel/preset-react": "7.10.4",
41
+ "@babel/runtime": "7.11.2",
42
+ "@zohodesk/eslint-plugin-react-performance": "1.0.3",
43
+ "@zohodesk/eslint-plugin-zsecurity": "0.0.1-beta.4",
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
+ "css-loader": "4.2.1",
59
+ "escodegen": "2.0.0",
60
+ "eslint": "7.6.0",
61
+ "eslint-html-reporter": "0.7.4",
62
+ "eslint-loader": "4.0.2",
63
+ "eslint-plugin-css-modules": "2.11.0",
64
+ "eslint-plugin-react": "7.20.6",
65
+ "esprima": "4.0.1",
66
+ "expect": "26.4.0",
67
+ "express": "4.17.1",
68
+ "file-loader": "6.0.0",
69
+ "git-root-dir": "1.0.2",
70
+ "gitlab": "14.2.2",
71
+ "html-loader": "1.1.0",
72
+ "html-webpack-inject-attributes-plugin": "1.0.6",
73
+ "html-webpack-plugin": "4.3.0",
74
+ "http-proxy-middleware": "1.0.5",
75
+ "jest": "26.4.0",
76
+ "jsdom": "16.4.0",
77
+ "loader-utils": "2.0.0",
78
+ "lodash-webpack-plugin": "0.11.5",
79
+ "mini-css-extract-plugin": "0.10.0",
80
+ "nock": "13.2.9",
81
+ "nodemailer": "6.4.11",
82
+ "nodemon": "2.0.4",
83
+ "optimize-js": "1.0.3",
84
+ "postcss": "7.0.32",
85
+ "postcss-combine-media-query": "1.0.1",
86
+ "postcss-hash-classname": "0.4.0",
87
+ "postcss-loader": "3.0.0",
88
+ "postcss-mobile-hover": "1.0.2",
89
+ "postcss-selector-replace": "1.0.2",
90
+ "react-test-renderer": "16.13.1",
91
+ "redis": "3.0.2",
92
+ "redux-mock-store": "1.5.4",
93
+ "rimraf": "3.0.2",
94
+ "script-loader": "0.7.2",
95
+ "uglifycss": "0.0.29",
96
+ "url-loader": "4.1.0",
97
+ "webpack": "4.44.1",
98
+ "webpack-bundle-analyzer": "4.5.0",
99
+ "webpack-cli": "3.3.12",
100
+ "webpack-core": "0.6.9",
101
+ "webpack-dev-middleware": "3.7.2",
102
+ "ws": "7.3.1",
103
+ "xhr2": "0.2.0",
104
+ "xmlhttprequest": "1.8.0"
105
+ },
106
+ "babel": {
107
+ "presets": [
108
+ [
109
+ "@babel/env",
110
+ {
111
+ "targets": {
112
+ "node": "8.15.1"
113
+ }
114
+ }
115
+ ],
116
+ "@babel/react"
117
+ ]
118
+ }
119
+ }
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' });