@zohodesk/react-cli 1.0.1 → 1.0.2-exp.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.eslintignore +7 -7
- package/.eslintrc.js +180 -180
- package/.prettierrc +6 -6
- package/Changelog.md +1019 -1019
- package/README.md +1165 -1160
- package/bin/cli.js +483 -483
- package/docs/CustomChunks.md +26 -26
- package/docs/DevServerPort.md +39 -39
- package/docs/DevStart.md +18 -18
- package/docs/HoverActive.md +12 -12
- package/docs/InstallNode.md +28 -28
- package/docs/SelectorWeight.md +8 -8
- package/docs/TODOS.md +10 -10
- package/docs/ValueReplacer.md +60 -60
- package/docs/VariableConversion.md +729 -729
- package/docs/warnings_while_install.txt +35 -35
- package/files/eslintrc.js +62 -62
- package/files/prettierrc.js +3 -3
- package/lib/configs/webpack.css.umd.config.js +4 -4
- package/lib/configs/webpack.dev.config.js +6 -0
- package/lib/configs/webpack.docs.config.js +4 -0
- package/lib/configs/webpack.impact.config.js +4 -0
- package/lib/configs/webpack.prod.config.js +6 -0
- package/lib/loaderUtils/configsAssetsLoaders.js +33 -33
- package/lib/loaderUtils/getCSSLoaders.js +79 -50
- package/lib/loaderUtils/tests/windowsModification.test.js +10 -0
- package/lib/loaderUtils/windowsModification.js +6 -1
- package/lib/loaders/composeLoader.js +175 -0
- package/lib/loaders/workerLoader.js +9 -9
- package/lib/pluginUtils/getDevPlugins.js +18 -7
- package/lib/pluginUtils/getProdPlugins.js +6 -6
- package/lib/pluginUtils/getUMDCSSPlugins.js +1 -1
- package/lib/pluginUtils/getUMDComponentPlugins.js +1 -1
- package/lib/plugins/EFCPlugin.md +6 -6
- package/lib/plugins/I18NInjectIntoIndexPlugin.js +4 -4
- package/lib/plugins/I18nSplitPlugin/I18nDownlodLogic.js +38 -38
- package/lib/plugins/I18nSplitPlugin/I18nFilesEmitter.js +30 -30
- package/lib/plugins/I18nSplitPlugin/I18nKeysIdentifer.js +8 -8
- package/lib/plugins/I18nSplitPlugin/I18nSplit.md +95 -95
- package/lib/plugins/I18nSplitPlugin/README.md +25 -25
- package/lib/plugins/I18nSplitPlugin/index.js +57 -57
- package/lib/plugins/{UglifyCSSPlugin.js → MinifyPlugin.js} +3 -3
- package/lib/plugins/ResourceHintsPlugin.js +17 -17
- package/lib/plugins/RtlSplitPlugin/RtlCssPlugin.js +6 -6
- package/lib/plugins/RtlSplitPlugin/RtrSplit.md +30 -30
- package/lib/plugins/SelectorPlugin.js +56 -45
- package/lib/plugins/ServiceWorkerPlugin.js +9 -9
- package/lib/plugins/TPHashMappingPlugin.js +4 -4
- package/lib/plugins/VariableConversionCollector.js +93 -84
- package/lib/plugins/index.js +7 -7
- package/lib/plugins/utils/classHandling.js +20 -0
- package/lib/plugins/utils/fileHandling.js +92 -0
- package/lib/plugins/utils/tests/fileHandling.test.js +30 -0
- package/lib/postcss-plugins/EmptyPlugin.js +8 -0
- package/lib/postcss-plugins/ExcludePlugin.js +1 -1
- package/lib/postcss-plugins/RTLSplitPlugin.js +10 -10
- package/lib/postcss-plugins/SelectorReplace.js +80 -0
- package/lib/postcss-plugins/ValueReplacer.js +2 -13
- package/lib/postcss-plugins/__test__/selectorReplace.test.js +28 -0
- package/lib/postcss-plugins/__test__/test1Input.css +38 -38
- package/lib/postcss-plugins/__test__/test1Output.css +38 -38
- package/lib/postcss-plugins/hoverActivePlugin.js +3 -3
- package/lib/postcss-plugins/variableModificationPlugin/index.js +1 -19
- package/lib/postcss-plugins/variableModifier.js +1 -1
- package/lib/schemas/index.js +34 -3
- package/lib/servers/server.js +2 -2
- package/lib/sh/pre-commit.sh +34 -34
- package/lib/sh/reportPublish.sh +45 -45
- package/lib/utils/buildstats.html +148 -148
- package/lib/utils/cssClassNameGenerate.js +35 -7
- package/lib/utils/resultSchema.json +73 -73
- package/npm8.md +9 -9
- package/package.json +122 -121
- package/postpublish.js +8 -8
- package/templates/app/.eslintrc.js +140 -140
- package/templates/app/README.md +12 -12
- package/templates/app/app/index.html +24 -24
- package/templates/app/app/properties/ApplicationResources_en_US.properties +1 -1
- package/templates/app/app/properties/i18nkeys.json +3 -3
- package/templates/app/docs/all.html +69 -69
- package/templates/app/mockapi/index.js +18 -18
- package/templates/app/package.json +37 -37
- package/templates/app/src/actions/SampleActions/index.js +37 -37
- package/templates/app/src/actions/index.js +65 -65
- package/templates/app/src/appUrls.js +19 -19
- package/templates/app/src/components/Alert/Alert.js +134 -134
- package/templates/app/src/components/Alert/Alert.module.css +79 -79
- package/templates/app/src/components/FreezeLayer/FreezeLayer.css +37 -37
- package/templates/app/src/components/FreezeLayer/FreezeLayer.js +84 -84
- package/templates/app/src/components/Sample/Sample.module.css +11 -11
- package/templates/app/src/components/Sample/SampleList.js +61 -61
- package/templates/app/src/components/Slider/Slider.css +41 -41
- package/templates/app/src/components/Slider/Slider.js +55 -55
- package/templates/app/src/containers/AlertContainer/index.js +15 -15
- package/templates/app/src/containers/AppContainer/index.js +96 -96
- package/templates/app/src/containers/AppContainer/index.module.css +27 -27
- package/templates/app/src/containers/CustomMatch/index.js +65 -65
- package/templates/app/src/containers/DevTools/index.js +10 -10
- package/templates/app/src/containers/Header/index.js +67 -67
- package/templates/app/src/containers/Header/index.module.css +43 -43
- package/templates/app/src/containers/Redirect/index.js +63 -63
- package/templates/app/src/containers/Redirector/index.js +47 -47
- package/templates/app/src/containers/SampleListContainer/ListContainer.js +42 -42
- package/templates/app/src/containers/SampleListContainer/ListContainer.module.css +3 -3
- package/templates/app/src/historyChange.js +5 -5
- package/templates/app/src/index.html +10 -10
- package/templates/app/src/index.js +24 -24
- package/templates/app/src/middleware/PromiseMiddleware.js +59 -59
- package/templates/app/src/reducers/alertData.js +11 -11
- package/templates/app/src/reducers/index.js +6 -6
- package/templates/app/src/reducers/samples.js +19 -19
- package/templates/app/src/store/configureStore.dev.js +51 -51
- package/templates/app/src/store/configureStore.js +5 -5
- package/templates/app/src/store/configureStore.prod.js +26 -26
- package/templates/app/src/util/Common.js +5 -5
- package/templates/app/src/util/RequestAPI.js +132 -132
- package/templates/docs/all.html +249 -249
- package/templates/docs/component.html +178 -178
- package/templates/docs/components.html +221 -221
- package/templates/docs/css/b.min.css +6 -6
- package/templates/docs/css/component.css +42 -42
- package/templates/docs/css/componentTest.css +6 -6
- package/templates/docs/css/hopscotch.css +585 -585
- package/templates/docs/css/style.css +1022 -1022
- package/templates/docs/impactReportTemplate.html +154 -154
- package/templates/docs/index.html +1501 -1501
- package/templates/docs/js/active-line.js +72 -72
- package/templates/docs/js/b.min.js +7 -7
- package/templates/docs/js/codemirror.js +9680 -9680
- package/templates/docs/js/designTokens.js +334 -334
- package/templates/docs/js/j.min.js +4 -4
- package/templates/docs/js/javascript.js +874 -874
- package/templates/docs/js/matchbrackets.js +145 -145
- package/.vscode/settings.json +0 -11
- package/lib/plugins/composeCommonPlugin.js +0 -30
- package/result.json +0 -1
- package/unittest/index.html +0 -37
@@ -1,148 +1,148 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
|
5
|
-
<style>
|
6
|
-
#file {
|
7
|
-
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
|
8
|
-
border-collapse: collapse;
|
9
|
-
width: 100%;
|
10
|
-
}
|
11
|
-
#redTd {
|
12
|
-
color: red;
|
13
|
-
}
|
14
|
-
#greenTD {
|
15
|
-
color: green;
|
16
|
-
}
|
17
|
-
#file td,
|
18
|
-
#file th {
|
19
|
-
border: 1px solid #ddd;
|
20
|
-
padding: 8px;
|
21
|
-
text-align: center;
|
22
|
-
}
|
23
|
-
|
24
|
-
#file tr:nth-child(even) {
|
25
|
-
background-color: #f2f2f2;
|
26
|
-
}
|
27
|
-
|
28
|
-
#file tr:hover {
|
29
|
-
background-color: #ddd;
|
30
|
-
}
|
31
|
-
|
32
|
-
#file th {
|
33
|
-
padding-top: 12px;
|
34
|
-
padding-bottom: 12px;
|
35
|
-
background-color: #2a2d36;
|
36
|
-
color: white;
|
37
|
-
}
|
38
|
-
#sizeTable {
|
39
|
-
float: left;
|
40
|
-
width: 50%;
|
41
|
-
}
|
42
|
-
#hashTable {
|
43
|
-
display: inline-block;
|
44
|
-
width: 50%;
|
45
|
-
}
|
46
|
-
</style>
|
47
|
-
<script type="text/javascript" src="./buildtrack.js"></script>
|
48
|
-
</head>
|
49
|
-
<body>
|
50
|
-
<div>
|
51
|
-
<div style="float: left;margin-right: 10px;">Branch Name:</div>
|
52
|
-
<h4 id="h4" style="margin: 0px;"></h4>
|
53
|
-
</div>
|
54
|
-
<div id="sizeTable">
|
55
|
-
<div>
|
56
|
-
<h3>Size changes</h3>
|
57
|
-
<h3></h3>
|
58
|
-
</div>
|
59
|
-
<table id="file" class="table table-bordered table-hover table-condensed">
|
60
|
-
<thead>
|
61
|
-
<tr>
|
62
|
-
<th title="Field #1">Name</th>
|
63
|
-
<th title="Field #2">Size / Diff</th>
|
64
|
-
<th title="Field #3">Size / Old</th>
|
65
|
-
<th title="Field #4">Size / New</th>
|
66
|
-
</tr>
|
67
|
-
</thead>
|
68
|
-
<tbody id="sizeTbody"></tbody>
|
69
|
-
</table>
|
70
|
-
</div>
|
71
|
-
<div id="hashTable">
|
72
|
-
<div>
|
73
|
-
<h3>Hash changes</h3>
|
74
|
-
<h3></h3>
|
75
|
-
</div>
|
76
|
-
<table id="file" class="table table-bordered table-hover table-condensed">
|
77
|
-
<thead>
|
78
|
-
<tr>
|
79
|
-
<th style="background-color: #4CAF50;" title="Field #1">Name</th>
|
80
|
-
<th style="background-color: #4CAF50;" title="Field #2">
|
81
|
-
Hash / Old
|
82
|
-
</th>
|
83
|
-
<th style="background-color: #4CAF50;" title="Field #3">
|
84
|
-
Hash / New
|
85
|
-
</th>
|
86
|
-
</tr>
|
87
|
-
</thead>
|
88
|
-
<tbody id="hashTbody"></tbody>
|
89
|
-
</table>
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<script type="text/javascript">
|
93
|
-
function load() {
|
94
|
-
if (statsJson) {
|
95
|
-
var tdStringSize = '';
|
96
|
-
var tdStringHash = '';
|
97
|
-
if (statsJson.increased.length > 0) {
|
98
|
-
statsJson.increased.forEach(fileObj => {
|
99
|
-
let colorTD = '</td><td>';
|
100
|
-
if (fileObj.size.diff.split(' ').length > 2) {
|
101
|
-
colorTD = '</td><td id="greenTd">';
|
102
|
-
} else {
|
103
|
-
colorTD = '</td><td id="redTd">';
|
104
|
-
}
|
105
|
-
|
106
|
-
tdStringSize =
|
107
|
-
tdStringSize +
|
108
|
-
'<tr><td>' +
|
109
|
-
fileObj.name +
|
110
|
-
colorTD +
|
111
|
-
fileObj.size.diff +
|
112
|
-
'</td><td>' +
|
113
|
-
fileObj.size.old +
|
114
|
-
'</td><td>' +
|
115
|
-
fileObj.size.new +
|
116
|
-
'</td><tr>';
|
117
|
-
});
|
118
|
-
} else {
|
119
|
-
tdStringSize = '<tr><td></td><td></td><td></td></tr>';
|
120
|
-
}
|
121
|
-
document.getElementById('sizeTbody').innerHTML = tdStringSize;
|
122
|
-
if (statsJson.hashChanged.length > 0) {
|
123
|
-
statsJson.hashChanged.forEach(fileObj => {
|
124
|
-
tdStringHash =
|
125
|
-
tdStringHash +
|
126
|
-
'<tr><td>' +
|
127
|
-
fileObj.name +
|
128
|
-
'</td><td>' +
|
129
|
-
fileObj.hash.old +
|
130
|
-
'</td><td>' +
|
131
|
-
fileObj.hash.new +
|
132
|
-
'</td><tr>';
|
133
|
-
});
|
134
|
-
} else {
|
135
|
-
tdStringHash = '<tr><td></td><td></td><td></td></tr>';
|
136
|
-
}
|
137
|
-
document.getElementById('hashTbody').innerHTML = tdStringHash;
|
138
|
-
if (statsJson.branchName) {
|
139
|
-
document.getElementById('h4').innerHTML = statsJson.branchName;
|
140
|
-
} else {
|
141
|
-
document.getElementById('h4').innerHTML = 'Not specified';
|
142
|
-
}
|
143
|
-
}
|
144
|
-
}
|
145
|
-
load();
|
146
|
-
</script>
|
147
|
-
</body>
|
148
|
-
</html>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
|
5
|
+
<style>
|
6
|
+
#file {
|
7
|
+
font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif;
|
8
|
+
border-collapse: collapse;
|
9
|
+
width: 100%;
|
10
|
+
}
|
11
|
+
#redTd {
|
12
|
+
color: red;
|
13
|
+
}
|
14
|
+
#greenTD {
|
15
|
+
color: green;
|
16
|
+
}
|
17
|
+
#file td,
|
18
|
+
#file th {
|
19
|
+
border: 1px solid #ddd;
|
20
|
+
padding: 8px;
|
21
|
+
text-align: center;
|
22
|
+
}
|
23
|
+
|
24
|
+
#file tr:nth-child(even) {
|
25
|
+
background-color: #f2f2f2;
|
26
|
+
}
|
27
|
+
|
28
|
+
#file tr:hover {
|
29
|
+
background-color: #ddd;
|
30
|
+
}
|
31
|
+
|
32
|
+
#file th {
|
33
|
+
padding-top: 12px;
|
34
|
+
padding-bottom: 12px;
|
35
|
+
background-color: #2a2d36;
|
36
|
+
color: white;
|
37
|
+
}
|
38
|
+
#sizeTable {
|
39
|
+
float: left;
|
40
|
+
width: 50%;
|
41
|
+
}
|
42
|
+
#hashTable {
|
43
|
+
display: inline-block;
|
44
|
+
width: 50%;
|
45
|
+
}
|
46
|
+
</style>
|
47
|
+
<script type="text/javascript" src="./buildtrack.js"></script>
|
48
|
+
</head>
|
49
|
+
<body>
|
50
|
+
<div>
|
51
|
+
<div style="float: left;margin-right: 10px;">Branch Name:</div>
|
52
|
+
<h4 id="h4" style="margin: 0px;"></h4>
|
53
|
+
</div>
|
54
|
+
<div id="sizeTable">
|
55
|
+
<div>
|
56
|
+
<h3>Size changes</h3>
|
57
|
+
<h3></h3>
|
58
|
+
</div>
|
59
|
+
<table id="file" class="table table-bordered table-hover table-condensed">
|
60
|
+
<thead>
|
61
|
+
<tr>
|
62
|
+
<th title="Field #1">Name</th>
|
63
|
+
<th title="Field #2">Size / Diff</th>
|
64
|
+
<th title="Field #3">Size / Old</th>
|
65
|
+
<th title="Field #4">Size / New</th>
|
66
|
+
</tr>
|
67
|
+
</thead>
|
68
|
+
<tbody id="sizeTbody"></tbody>
|
69
|
+
</table>
|
70
|
+
</div>
|
71
|
+
<div id="hashTable">
|
72
|
+
<div>
|
73
|
+
<h3>Hash changes</h3>
|
74
|
+
<h3></h3>
|
75
|
+
</div>
|
76
|
+
<table id="file" class="table table-bordered table-hover table-condensed">
|
77
|
+
<thead>
|
78
|
+
<tr>
|
79
|
+
<th style="background-color: #4CAF50;" title="Field #1">Name</th>
|
80
|
+
<th style="background-color: #4CAF50;" title="Field #2">
|
81
|
+
Hash / Old
|
82
|
+
</th>
|
83
|
+
<th style="background-color: #4CAF50;" title="Field #3">
|
84
|
+
Hash / New
|
85
|
+
</th>
|
86
|
+
</tr>
|
87
|
+
</thead>
|
88
|
+
<tbody id="hashTbody"></tbody>
|
89
|
+
</table>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<script type="text/javascript">
|
93
|
+
function load() {
|
94
|
+
if (statsJson) {
|
95
|
+
var tdStringSize = '';
|
96
|
+
var tdStringHash = '';
|
97
|
+
if (statsJson.increased.length > 0) {
|
98
|
+
statsJson.increased.forEach(fileObj => {
|
99
|
+
let colorTD = '</td><td>';
|
100
|
+
if (fileObj.size.diff.split(' ').length > 2) {
|
101
|
+
colorTD = '</td><td id="greenTd">';
|
102
|
+
} else {
|
103
|
+
colorTD = '</td><td id="redTd">';
|
104
|
+
}
|
105
|
+
|
106
|
+
tdStringSize =
|
107
|
+
tdStringSize +
|
108
|
+
'<tr><td>' +
|
109
|
+
fileObj.name +
|
110
|
+
colorTD +
|
111
|
+
fileObj.size.diff +
|
112
|
+
'</td><td>' +
|
113
|
+
fileObj.size.old +
|
114
|
+
'</td><td>' +
|
115
|
+
fileObj.size.new +
|
116
|
+
'</td><tr>';
|
117
|
+
});
|
118
|
+
} else {
|
119
|
+
tdStringSize = '<tr><td></td><td></td><td></td></tr>';
|
120
|
+
}
|
121
|
+
document.getElementById('sizeTbody').innerHTML = tdStringSize;
|
122
|
+
if (statsJson.hashChanged.length > 0) {
|
123
|
+
statsJson.hashChanged.forEach(fileObj => {
|
124
|
+
tdStringHash =
|
125
|
+
tdStringHash +
|
126
|
+
'<tr><td>' +
|
127
|
+
fileObj.name +
|
128
|
+
'</td><td>' +
|
129
|
+
fileObj.hash.old +
|
130
|
+
'</td><td>' +
|
131
|
+
fileObj.hash.new +
|
132
|
+
'</td><tr>';
|
133
|
+
});
|
134
|
+
} else {
|
135
|
+
tdStringHash = '<tr><td></td><td></td><td></td></tr>';
|
136
|
+
}
|
137
|
+
document.getElementById('hashTbody').innerHTML = tdStringHash;
|
138
|
+
if (statsJson.branchName) {
|
139
|
+
document.getElementById('h4').innerHTML = statsJson.branchName;
|
140
|
+
} else {
|
141
|
+
document.getElementById('h4').innerHTML = 'Not specified';
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
load();
|
146
|
+
</script>
|
147
|
+
</body>
|
148
|
+
</html>
|
@@ -9,6 +9,8 @@ var _os = _interopRequireDefault(require("os"));
|
|
9
9
|
|
10
10
|
var _path = _interopRequireDefault(require("path"));
|
11
11
|
|
12
|
+
var _fileHandling = require("../plugins/utils/fileHandling");
|
13
|
+
|
12
14
|
var _getHash = _interopRequireDefault(require("./getHash"));
|
13
15
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
@@ -39,17 +41,47 @@ let isSelectorPackage = (resourcePath, packages) => {
|
|
39
41
|
var _default = (unique = true, {
|
40
42
|
filenames,
|
41
43
|
packages
|
42
|
-
}, classNamePrefix) => (context, localIdentName, localName) => {
|
44
|
+
}, classNamePrefix, patterns, rootDir) => (context, localIdentName, localName) => {
|
45
|
+
// console.log(patterns, context.resourcePath);
|
43
46
|
// NOTE: in build macine we use date as folder path.
|
44
47
|
// So every time we create new build there is path will alway different
|
45
48
|
// in order to minmaze that problem we try in relative path;
|
46
49
|
// console.log('context.resourcePath', context.resourcePath, context);
|
47
50
|
// let contextResourcePath = context.resourcePath;
|
51
|
+
let filePaths = context.resourcePath.split(_path.default.sep);
|
52
|
+
let fileName = filePaths[filePaths.length - 1];
|
53
|
+
let [fileNameWithoutExt] = fileName.split('.');
|
54
|
+
let cleanFileName = fileNameWithoutExt.replace(/-/g, '_').toLowerCase();
|
55
|
+
|
48
56
|
let relativePath = _path.default.relative(context.rootContext, context.resourcePath);
|
57
|
+
/*
|
58
|
+
input :
|
59
|
+
context.resourcePath : 'D:/MyWork/..../desk_client_app/supportapp/src/components/Avatar/Avatar.module.css,
|
60
|
+
|
61
|
+
patterns.cssVariableReplacement:
|
62
|
+
// include src folder, include deskapp folder, exclude node modules
|
63
|
+
"cssUniqueness": [
|
64
|
+
"src",
|
65
|
+
"deskapp",
|
66
|
+
"!node_modules"
|
67
|
+
]
|
68
|
+
rootDir : patternsRootDir : 'supportapp'
|
69
|
+
output :
|
70
|
+
true or false
|
71
|
+
*/
|
72
|
+
|
49
73
|
|
50
74
|
if (context.resourcePath.endsWith('.plain.css')) {
|
51
75
|
return localName;
|
52
76
|
}
|
77
|
+
|
78
|
+
if (!(0, _fileHandling.isFileNameMatchingPluginPattern)({
|
79
|
+
filename: context.resourcePath,
|
80
|
+
filterArr: patterns.cssUniqueness,
|
81
|
+
rootDir
|
82
|
+
})) {
|
83
|
+
return `${classNamePrefix}-${cleanFileName}-${localName}`;
|
84
|
+
}
|
53
85
|
/* old production mode start without breaking so added. may be removed in future*/
|
54
86
|
|
55
87
|
|
@@ -58,14 +90,10 @@ var _default = (unique = true, {
|
|
58
90
|
return `${classNamePrefix}${h}`;
|
59
91
|
}
|
60
92
|
/* old production mode end*/
|
61
|
-
|
62
|
-
|
63
|
-
let filePaths = context.resourcePath.split(_path.default.sep);
|
64
|
-
let fileName = filePaths[filePaths.length - 1];
|
65
|
-
let [fileNameWithoutExt] = fileName.split('.');
|
66
|
-
let cleanFileName = fileNameWithoutExt.replace(/-/g, '_').toLowerCase(); //css file has casesensitive selector issue so can't toLowerCase
|
93
|
+
//css file has casesensitive selector issue so can't toLowerCase
|
67
94
|
//let local = localName.toLowerCase()
|
68
95
|
|
96
|
+
|
69
97
|
if (isSelectorPackage(context.resourcePath, packages) || filenames.indexOf(cleanFileName) !== -1) {
|
70
98
|
let h = (0, _getHash.default)(`${relativePath}-${localName}`, 10);
|
71
99
|
return `${classNamePrefix}${h}`;
|
@@ -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 (`_`)
|