@zohodesk/client_build_tool 0.0.11 → 0.0.12-exp.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ # v0.0.12 (14-08-2025)
4
+
5
+ - Fixed the initial i18n loading issue caused by using the same function in both the i18nRuntimeDealer plugin and decidePublicPath
6
+
7
+ # v0.0.11 (07-08-2025) (had an issue while enable i18n chunk split plugin)
3
8
  - remove babel-plugin-module-resolver dependencies
4
9
 
5
10
  **Adjustments:-**
@@ -12,9 +17,6 @@
12
17
  - Fixed the URL path generation issue that occurred while using context in the development setup.
13
18
 
14
19
 
15
-
16
- # v0.0.11
17
-
18
20
  # v0.0.10 (12-05-2025)
19
21
  **Feature:-**
20
22
  - `alias` support for `build:es` and `build:lib`
package/README.md CHANGED
@@ -190,6 +190,110 @@ For example
190
190
  - `customAttributes` support for add attributes to html, link , script tag in the output build.
191
191
 
192
192
 
193
+ ## v0.0.1 (18-04-2023)
194
+
195
+ First Release
196
+ **Features:-**
197
+
198
+ - 'start' command to run react app
199
+ - 'build' command to create build for react app
200
+ - 'build:lib' command to create lib for react library
201
+ - 'build:es' command to create es for react library
202
+ - 'templates' command to create es for react library
203
+ # Changelog and Release Notes
204
+
205
+ # v0.0.12 (14-08-2025)
206
+
207
+ - Fixed the initial i18n loading issue caused by using the same function in both the i18nRuntimeDealer plugin and decidePublicPath
208
+
209
+ # v0.0.11 (07-08-2025) (had an issue while enable i18n chunk split plugin)
210
+ - remove babel-plugin-module-resolver dependencies
211
+
212
+ **Adjustments:-**
213
+ - Public Folder configuration is separated for development and production
214
+
215
+ **Bug Fix:-**
216
+ - Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
217
+ - Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
218
+ - Fixed the issue where a space in the variable name causes it to return an undefined value.
219
+ - Fixed the URL path generation issue that occurred while using context in the development setup.
220
+
221
+
222
+ # v0.0.10 (12-05-2025)
223
+ **Feature:-**
224
+ - `alias` support for `build:es` and `build:lib`
225
+ - Add babel-plugin-module-resolver dependencies
226
+ - Modify getBabelPlugin to include module resolver with aliases
227
+
228
+ **Bug Fix:-**
229
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
230
+ - Update mockApiHandler to ensure mock function is called correctly
231
+
232
+ **Change:-**
233
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
234
+
235
+ ## v0.0.9
236
+
237
+ **Feature:-**
238
+ - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
239
+ - to use externals, we use the following pattern in `app > externals` :
240
+
241
+ For example
242
+ ```
243
+ externals: {
244
+ <key> : <value>
245
+ }
246
+ ```
247
+
248
+ ## v0.0.6 (4-09-2023)
249
+
250
+ **Feature:-**
251
+ - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
252
+ - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
253
+ - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
254
+ only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
255
+ - added support for glob pattern for custom chunks split logic.
256
+ - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
257
+
258
+ **Change:-**
259
+ - i18n name not generated issue fix.
260
+ - public path not correctly set issue fix.
261
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
262
+ ## v0.0.5 (6-08-2023)
263
+
264
+ **Changes:--**
265
+ - Typo fix in i18nRuntimeDealerPlugin.js
266
+ - fixing some bugs in resolvers.js file
267
+
268
+ ## v0.0.3 (1-08-2023)
269
+
270
+ **Changes:--**
271
+ - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
272
+ - unwanted files deleted from build
273
+
274
+ **Issue Fix:--**
275
+ - The issue with the source map not being created in the build has been fixed."
276
+
277
+
278
+ ## v0.0.2 (28-04-2023)
279
+
280
+ **Features:-**
281
+
282
+ - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
283
+ - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
284
+ - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
285
+ - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
286
+ - `enableChunkHash` renamed as `enableFileNameHashing`
287
+
288
+ - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
289
+ - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
290
+ - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
291
+ - `removePropTypes` support for remove the prop types package in the output build.
292
+ - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
293
+ - `manifestJson` default value set as false.
294
+ - `customAttributes` support for add attributes to html, link , script tag in the output build.
295
+
296
+
193
297
  ## v0.0.1 (18-04-2023)
194
298
 
195
299
  First Release
package/README_backup.md CHANGED
@@ -98,3 +98,105 @@ fixes :-
98
98
 
99
99
  - preload plc undefined url fixed
100
100
 
101
+ # Changelog and Release Notes
102
+
103
+ - remove babel-plugin-module-resolver dependencies
104
+
105
+ **Adjustments:-**
106
+ - Public Folder configuration is separated for development and production
107
+
108
+ **Bug Fix:-**
109
+ - Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
110
+ - Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
111
+ - Fixed the issue where a space in the variable name causes it to return an undefined value.
112
+ - Fixed the URL path generation issue that occurred while using context in the development setup.
113
+
114
+
115
+
116
+ # v0.0.11
117
+
118
+ # v0.0.10 (12-05-2025)
119
+ **Feature:-**
120
+ - `alias` support for `build:es` and `build:lib`
121
+ - Add babel-plugin-module-resolver dependencies
122
+ - Modify getBabelPlugin to include module resolver with aliases
123
+
124
+ **Bug Fix:-**
125
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
126
+ - Update mockApiHandler to ensure mock function is called correctly
127
+
128
+ **Change:-**
129
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
130
+
131
+ ## v0.0.9
132
+
133
+ **Feature:-**
134
+ - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
135
+ - to use externals, we use the following pattern in `app > externals` :
136
+
137
+ For example
138
+ ```
139
+ externals: {
140
+ <key> : <value>
141
+ }
142
+ ```
143
+
144
+ ## v0.0.6 (4-09-2023)
145
+
146
+ **Feature:-**
147
+ - Generating bundle integrity report json file for the build assets only in production mode. To use this feature we need to add `stats > enable` or cli flags `enable_stats`.
148
+ - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
149
+ - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
150
+ only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
151
+ - added support for glob pattern for custom chunks split logic.
152
+ - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
153
+
154
+ **Change:-**
155
+ - i18n name not generated issue fix.
156
+ - public path not correctly set issue fix.
157
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
158
+ ## v0.0.5 (6-08-2023)
159
+
160
+ **Changes:--**
161
+ - Typo fix in i18nRuntimeDealerPlugin.js
162
+ - fixing some bugs in resolvers.js file
163
+
164
+ ## v0.0.3 (1-08-2023)
165
+
166
+ **Changes:--**
167
+ - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
168
+ - unwanted files deleted from build
169
+
170
+ **Issue Fix:--**
171
+ - The issue with the source map not being created in the build has been fixed."
172
+
173
+
174
+ ## v0.0.2 (28-04-2023)
175
+
176
+ **Features:-**
177
+
178
+ - `devModeContentHashAllowedTypes` support added for some project there will be a need for hash even though they run dev mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devModeContentHashAllowedTypes)
179
+ - `devLikeHash` support for disable content hash for file names in production mode. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#devLikeHash)
180
+ - `disableReactDevWarning` disable react dev warning such as prop-type warnings will be removed in dev mode build or server. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#disableReactDevWarning) can be enabled via `--disable_react_dev_warning` too.
181
+ - `statsLogConfig` support to customize default webpack log after build finished. for details [details](https://zgit.csez.zohocorpin.com/zohodesk/react-cli/-/blob/3.0.0/packages/client_build_tool/ConfigurationDocumentation.md#statsLogConfig) can be enabled via `--disable_react_dev_warning` too.
182
+ - `enableChunkHash` renamed as `enableFileNameHashing`
183
+
184
+ - `pre_processor` command to run the preprocessor.js file.preProcessor runs in build, start, buildEs, buildLib commands bu default. and we have watch mode support as well with the option (`-w`)
185
+ - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
186
+ - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
187
+ - `removePropTypes` support for remove the prop types package in the output build.
188
+ - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
189
+ - `manifestJson` default value set as false.
190
+ - `customAttributes` support for add attributes to html, link , script tag in the output build.
191
+
192
+
193
+ ## v0.0.1 (18-04-2023)
194
+
195
+ First Release
196
+ **Features:-**
197
+
198
+ - 'start' command to run react app
199
+ - 'build' command to create build for react app
200
+ - 'build:lib' command to create lib for react library
201
+ - 'build:es' command to create es for react library
202
+ - 'templates' command to create es for react library
@@ -50,8 +50,8 @@ function modifiedServerOptions(options) {
50
50
  contextURL,
51
51
  httpsPort: port,
52
52
  httpPort,
53
- httpsUrl: (0, _urlConcat.urlConcat)(httpsUrl, contextURL),
54
- httpUrl: (0, _urlConcat.urlConcat)(httpUrl, contextURL),
53
+ httpsUrl: (0, _urlConcat.serverPathConcat)(httpsUrl, contextURL),
54
+ httpUrl: (0, _urlConcat.serverPathConcat)(httpUrl, contextURL),
55
55
  isHttps: !!httpsOptions
56
56
  };
57
57
  }
@@ -44,6 +44,18 @@ class SourceMapPlugin {
44
44
  }
45
45
  }
46
46
  });
47
+ });
48
+ compilation.hooks.processAssets.tap({
49
+ name: pluginName,
50
+ stage: _webpack.Compilation.PROCESS_ASSETS_STAGE_REPORT
51
+ }, assets => {
52
+ Object.keys(assets).forEach(assetName => {
53
+ const assetCode = assets[assetName].source();
54
+
55
+ if (/\.map$/.test(assetName)) {
56
+ compilation.emitAsset(assetName.split('smap/')[1], new RawSource(assetCode));
57
+ }
58
+ });
47
59
  }); // if contenthash enabled we need to add this to include the runtime files
48
60
  // compilation.hooks.processAssets.tap(
49
61
  // {
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.serverPathConcat = serverPathConcat;
6
7
  exports.urlConcat = urlConcat;
7
8
 
8
9
  /* eslint-disable no-use-before-define */
@@ -12,18 +13,28 @@ exports.urlConcat = urlConcat;
12
13
  * @param {String} url
13
14
  * @param {String} path
14
15
  */
15
- function urlConcat(url, path) {
16
+ function serverPathConcat(url, path) {
16
17
  const slashRemovedUrl = removeLastSlash(url);
17
18
  const slashRemovedPath = removeFrontSlash(path);
18
19
 
19
20
  if (slashRemovedUrl === '') {
20
21
  return `${path}/`;
21
- } //return `${slashRemovedUrl}/${slashRemovedPath}`;
22
-
22
+ }
23
23
 
24
24
  return `${[slashRemovedUrl, slashRemovedPath].filter(a => a).join('/')}/`;
25
25
  }
26
26
 
27
+ function urlConcat(url, path) {
28
+ const slashRemovedUrl = removeLastSlash(url);
29
+ const slashRemovedPath = removeFrontSlash(path);
30
+
31
+ if (slashRemovedUrl === '') {
32
+ return path;
33
+ }
34
+
35
+ return `${slashRemovedUrl}/${slashRemovedPath}`;
36
+ }
37
+
27
38
  function removeLastSlash(url) {
28
39
  return url.replace(/\/+$/, '');
29
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.11",
3
+ "version": "0.0.12-exp.2",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {