@zohodesk/client_build_tool 0.0.6-exp.4 → 0.0.6-exp.41

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.
Files changed (74) hide show
  1. package/coverage/coverage-final.json +1 -3
  2. package/coverage/coverage-summary.json +2 -4
  3. package/coverage/index.html +21 -51
  4. package/coverage/{bundler/webpack/custom_postcss_plugins/HoverActivePlugin/specialCases.js.html → updateArrayWithDefault.js.html} +67 -55
  5. package/lib/commands/buildEs/commandExecutor.js +7 -2
  6. package/lib/commands/buildLib/commandExecutor.js +7 -2
  7. package/lib/schemas/defaultConfigValues.js +17 -1
  8. package/lib/shared/babel/babelWebConfig.js +4 -1
  9. package/lib/shared/babel/runBabelForTsFile.js +1 -2
  10. package/lib/shared/bundler/webpack/common/decidePublicPath.js +5 -0
  11. package/lib/shared/bundler/webpack/common/nameTemplates.js +13 -9
  12. package/lib/shared/bundler/webpack/custom_plugins/{CdnChangePlugin.js → CdnChangePlugin/index.js} +25 -5
  13. package/lib/shared/bundler/webpack/custom_plugins/CdnChangePlugin/webpackCustomJsUrlLoader.js +46 -0
  14. package/lib/shared/bundler/webpack/custom_plugins/CustomScriptLoadingPlugin.js +110 -0
  15. package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/getI18nLoadingRuntimeModule.js +1 -1
  16. package/lib/shared/bundler/webpack/custom_plugins/InitialHtmlPlugin.js +4 -0
  17. package/lib/shared/bundler/webpack/custom_plugins/ManifestJsonPlugin/addFilesNamesToManifestJson.js +8 -2
  18. package/lib/shared/bundler/webpack/custom_plugins/ManifestJsonPlugin/createInitialEntries.js +7 -1
  19. package/lib/shared/bundler/webpack/custom_plugins/ManifestJsonPlugin/createManifestJson.js +1 -1
  20. package/lib/shared/bundler/webpack/custom_plugins/ResourceHintsPlugin.js +1 -0
  21. package/lib/shared/bundler/webpack/custom_plugins/ServiceWorkerPlugin.js +5 -1
  22. package/lib/shared/bundler/webpack/custom_plugins/ServiceWorkerPluginUtils.js +13 -0
  23. package/lib/shared/bundler/webpack/custom_plugins/SourceMapPlugin/index.js +16 -1
  24. package/lib/shared/bundler/webpack/custom_plugins/TPHashMappingPlugin/index.js +1 -1
  25. package/lib/shared/bundler/webpack/custom_plugins/getInitialAssetsFuncTemplate.js +4 -4
  26. package/lib/shared/bundler/webpack/devtoolConfig.js +4 -1
  27. package/lib/shared/bundler/webpack/loaderConfigs/cssClassNameGenerate.js +6 -1
  28. package/lib/shared/bundler/webpack/optimizationConfig.js +14 -1
  29. package/lib/shared/bundler/webpack/pluginConfigs/configCSSMinifierPlugin.js +5 -1
  30. package/lib/shared/bundler/webpack/pluginConfigs/configCustomScriptLoadingStrategyPlugin.js +76 -0
  31. package/lib/shared/bundler/webpack/pluginConfigs/configManifestJsonPlugin.js +25 -13
  32. package/lib/shared/bundler/webpack/pluginConfigs/configMiniCSSExtractPlugin.js +2 -1
  33. package/lib/shared/bundler/webpack/plugins.js +3 -1
  34. package/lib/shared/bundler/webpack/resolvers.js +2 -1
  35. package/lib/shared/bundler/webpack/tsLoaders.js +7 -14
  36. package/lib/shared/bundler/webpack/utils/index.js +6 -1
  37. package/lib/shared/fileUtils/watchRun.js +1 -1
  38. package/lib/shared/server/getServerURL.js +9 -2
  39. package/npm-shrinkwrap.json +412 -7328
  40. package/package.json +1 -1
  41. package/result.json +1 -1
  42. package/unittest/index.html +35 -33
  43. package/coverage/addFilesNamesToManifestJson.js.html +0 -148
  44. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/addFilesNamesToManifestJson.js.html +0 -148
  45. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/createInitialEntries.js.html +0 -136
  46. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/createManifestJson.js.html +0 -181
  47. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/findInitialFileNames.js.html +0 -133
  48. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/index.html +0 -146
  49. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/index.js.html +0 -199
  50. package/coverage/bundler/webpack/custom_plugins/AddManifestJson/removeHashFromFileName.js.html +0 -127
  51. package/coverage/bundler/webpack/custom_plugins/VariableConversionCollector/ErrorHandler.js.html +0 -346
  52. package/coverage/bundler/webpack/custom_plugins/VariableConversionCollector/index.html +0 -116
  53. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/constants.js.html +0 -94
  54. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/handleIgnores.js.html +0 -259
  55. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/index.html +0 -236
  56. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/index.js.html +0 -442
  57. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/insertBefore.js.html +0 -154
  58. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/isPreviouslyProcessed.js.html +0 -142
  59. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/replaceUtils.js.html +0 -127
  60. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/separateHoveredSelectorAndNormalSelector.js.html +0 -139
  61. package/coverage/bundler/webpack/custom_postcss_plugins/HoverActivePlugin/typeCheckUtils.js.html +0 -193
  62. package/coverage/bundler/webpack/custom_postcss_plugins/SelectorReplace.js.html +0 -292
  63. package/coverage/bundler/webpack/custom_postcss_plugins/ValueReplacer.js.html +0 -223
  64. package/coverage/bundler/webpack/custom_postcss_plugins/VariableModificationPlugin/index.html +0 -116
  65. package/coverage/bundler/webpack/custom_postcss_plugins/VariableModificationPlugin/index.js.html +0 -1126
  66. package/coverage/bundler/webpack/custom_postcss_plugins/index.html +0 -131
  67. package/coverage/bundler/webpack/loaderConfigs/getSpecificPostCssPlugin.js.html +0 -247
  68. package/coverage/bundler/webpack/loaderConfigs/index.html +0 -116
  69. package/coverage/createInitialEntries.js.html +0 -136
  70. package/coverage/dummy.js.html +0 -238
  71. package/coverage/index.js.html +0 -169
  72. package/coverage/isObject.js.html +0 -94
  73. package/coverage/isValid.js.html +0 -106
  74. package/coverage/removeHashFromFileName.js.html +0 -127
@@ -1,127 +0,0 @@
1
-
2
- <!doctype html>
3
- <html lang="en">
4
-
5
- <head>
6
- <title>Code coverage report for removeHashFromFileName.js</title>
7
- <meta charset="utf-8" />
8
- <link rel="stylesheet" href="prettify.css" />
9
- <link rel="stylesheet" href="base.css" />
10
- <link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
11
- <meta name="viewport" content="width=device-width, initial-scale=1" />
12
- <style type='text/css'>
13
- .coverage-summary .sorter {
14
- background-image: url(sort-arrow-sprite.png);
15
- }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <div class='wrapper'>
21
- <div class='pad1'>
22
- <h1><a href="index.html">All files</a> removeHashFromFileName.js</h1>
23
- <div class='clearfix'>
24
-
25
- <div class='fl pad1y space-right2'>
26
- <span class="strong">100% </span>
27
- <span class="quiet">Statements</span>
28
- <span class='fraction'>7/7</span>
29
- </div>
30
-
31
-
32
- <div class='fl pad1y space-right2'>
33
- <span class="strong">100% </span>
34
- <span class="quiet">Branches</span>
35
- <span class='fraction'>4/4</span>
36
- </div>
37
-
38
-
39
- <div class='fl pad1y space-right2'>
40
- <span class="strong">100% </span>
41
- <span class="quiet">Functions</span>
42
- <span class='fraction'>2/2</span>
43
- </div>
44
-
45
-
46
- <div class='fl pad1y space-right2'>
47
- <span class="strong">100% </span>
48
- <span class="quiet">Lines</span>
49
- <span class='fraction'>7/7</span>
50
- </div>
51
-
52
-
53
- </div>
54
- <p class="quiet">
55
- Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
- </p>
57
- <template id="filterTemplate">
58
- <div class="quiet">
59
- Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
61
- </div>
62
- </template>
63
- </div>
64
- <div class='status-line high'></div>
65
- <pre><table class="coverage">
66
- <tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
67
- <a name='L2'></a><a href='#L2'>2</a>
68
- <a name='L3'></a><a href='#L3'>3</a>
69
- <a name='L4'></a><a href='#L4'>4</a>
70
- <a name='L5'></a><a href='#L5'>5</a>
71
- <a name='L6'></a><a href='#L6'>6</a>
72
- <a name='L7'></a><a href='#L7'>7</a>
73
- <a name='L8'></a><a href='#L8'>8</a>
74
- <a name='L9'></a><a href='#L9'>9</a>
75
- <a name='L10'></a><a href='#L10'>10</a>
76
- <a name='L11'></a><a href='#L11'>11</a>
77
- <a name='L12'></a><a href='#L12'>12</a>
78
- <a name='L13'></a><a href='#L13'>13</a>
79
- <a name='L14'></a><a href='#L14'>14</a>
80
- <a name='L15'></a><a href='#L15'>15</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
81
- <span class="cline-any cline-neutral">&nbsp;</span>
82
- <span class="cline-any cline-neutral">&nbsp;</span>
83
- <span class="cline-any cline-yes">37x</span>
84
- <span class="cline-any cline-neutral">&nbsp;</span>
85
- <span class="cline-any cline-yes">37x</span>
86
- <span class="cline-any cline-yes">137x</span>
87
- <span class="cline-any cline-yes">37x</span>
88
- <span class="cline-any cline-yes">100x</span>
89
- <span class="cline-any cline-yes">63x</span>
90
- <span class="cline-any cline-neutral">&nbsp;</span>
91
- <span class="cline-any cline-neutral">&nbsp;</span>
92
- <span class="cline-any cline-neutral">&nbsp;</span>
93
- <span class="cline-any cline-yes">37x</span>
94
- <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&nbsp;
95
- &nbsp;
96
- export function removeHashFromFileName(fileName, hashDigestLength) {
97
- let outputFileName = '';
98
- &nbsp;
99
- fileName.split('.').forEach(iterateValue =&gt; {
100
- if (outputFileName === '') {
101
- outputFileName += iterateValue;
102
- } else if (iterateValue.length &lt; hashDigestLength) {
103
- outputFileName += `.${iterateValue}`;
104
- }
105
- });
106
- &nbsp;
107
- return outputFileName;
108
- }</pre></td></tr></table></pre>
109
-
110
- <div class='push'></div><!-- for sticky footer -->
111
- </div><!-- /wrapper -->
112
- <div class='footer quiet pad2 space-top1 center small'>
113
- Code coverage generated by
114
- <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
115
- at 2023-06-01T11:14:08.700Z
116
- </div>
117
- <script src="prettify.js"></script>
118
- <script>
119
- window.onload = function () {
120
- prettyPrint();
121
- };
122
- </script>
123
- <script src="sorter.js"></script>
124
- <script src="block-navigation.js"></script>
125
- </body>
126
- </html>
127
-