@zohodesk/client_build_tool 0.0.12-exp.4 → 0.0.12-exp.6

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/README.md CHANGED
@@ -294,6 +294,110 @@ For example
294
294
  - `customAttributes` support for add attributes to html, link , script tag in the output build.
295
295
 
296
296
 
297
+ ## v0.0.1 (18-04-2023)
298
+
299
+ First Release
300
+ **Features:-**
301
+
302
+ - 'start' command to run react app
303
+ - 'build' command to create build for react app
304
+ - 'build:lib' command to create lib for react library
305
+ - 'build:es' command to create es for react library
306
+ - 'templates' command to create es for react library
307
+ # Changelog and Release Notes
308
+
309
+ # v0.0.12 (14-08-2025)
310
+
311
+ - Fixed the initial i18n loading issue caused by using the same function in both the i18nRuntimeDealer plugin and decidePublicPath
312
+
313
+ # v0.0.11 (07-08-2025) (had an issue while enable i18n chunk split plugin)
314
+ - remove babel-plugin-module-resolver dependencies
315
+
316
+ **Adjustments:-**
317
+ - Public Folder configuration is separated for development and production
318
+
319
+ **Bug Fix:-**
320
+ - 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`.
321
+ - Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
322
+ - Fixed the issue where a space in the variable name causes it to return an undefined value.
323
+ - Fixed the URL path generation issue that occurred while using context in the development setup.
324
+
325
+
326
+ # v0.0.10 (12-05-2025)
327
+ **Feature:-**
328
+ - `alias` support for `build:es` and `build:lib`
329
+ - Add babel-plugin-module-resolver dependencies
330
+ - Modify getBabelPlugin to include module resolver with aliases
331
+
332
+ **Bug Fix:-**
333
+ - Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
334
+ - Update mockApiHandler to ensure mock function is called correctly
335
+
336
+ **Change:-**
337
+ - Refactor defaultConfigValues.js to include cli options for enableRTLSplit
338
+
339
+ ## v0.0.9
340
+
341
+ **Feature:-**
342
+ - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
343
+ - to use externals, we use the following pattern in `app > externals` :
344
+
345
+ For example
346
+ ```
347
+ externals: {
348
+ <key> : <value>
349
+ }
350
+ ```
351
+
352
+ ## v0.0.6 (4-09-2023)
353
+
354
+ **Feature:-**
355
+ - 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`.
356
+ - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
357
+ - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
358
+ only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
359
+ - added support for glob pattern for custom chunks split logic.
360
+ - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
361
+
362
+ **Change:-**
363
+ - i18n name not generated issue fix.
364
+ - public path not correctly set issue fix.
365
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
366
+ ## v0.0.5 (6-08-2023)
367
+
368
+ **Changes:--**
369
+ - Typo fix in i18nRuntimeDealerPlugin.js
370
+ - fixing some bugs in resolvers.js file
371
+
372
+ ## v0.0.3 (1-08-2023)
373
+
374
+ **Changes:--**
375
+ - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
376
+ - unwanted files deleted from build
377
+
378
+ **Issue Fix:--**
379
+ - The issue with the source map not being created in the build has been fixed."
380
+
381
+
382
+ ## v0.0.2 (28-04-2023)
383
+
384
+ **Features:-**
385
+
386
+ - `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)
387
+ - `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)
388
+ - `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.
389
+ - `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.
390
+ - `enableChunkHash` renamed as `enableFileNameHashing`
391
+
392
+ - `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`)
393
+ - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
394
+ - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
395
+ - `removePropTypes` support for remove the prop types package in the output build.
396
+ - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
397
+ - `manifestJson` default value set as false.
398
+ - `customAttributes` support for add attributes to html, link , script tag in the output build.
399
+
400
+
297
401
  ## v0.0.1 (18-04-2023)
298
402
 
299
403
  First Release
package/README_backup.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
@@ -72,7 +72,8 @@ class CdnChangePlugin {
72
72
  const {
73
73
  createSeparateSMap,
74
74
  mode
75
- } = this; // eslint-disable-next-line no-param-reassign
75
+ } = this;
76
+ console.log(data.assets, 'jd'); // eslint-disable-next-line no-param-reassign
76
77
 
77
78
  data.assets = { ...data.assets,
78
79
  css: data.assets.css.map(css => `${this.cssTemplate}${css}`),
@@ -19,6 +19,8 @@ class MurphyInjectorPlugin {
19
19
  constructor(entries = [], options) {
20
20
  this.entries = entries;
21
21
  this.options = options;
22
+ this.jsTemplate = options.cdnMapping.jsTemplate || '{{__JS_CDN__}}';
23
+ this.cdnMapping = options.cdnMapping;
22
24
  }
23
25
 
24
26
  apply(compiler) {
@@ -54,6 +56,8 @@ class MurphyInjectorPlugin {
54
56
  const childChunks = childCompilation.chunks;
55
57
 
56
58
  _htmlWebpackPlugin.default.getHooks(compilation).alterAssetTags.tapAsync(pluginName, (data, cb) => {
59
+ data.assets = { ...data.assets
60
+ };
57
61
  let fileName = "";
58
62
  childChunks.forEach(chunk => {
59
63
  fileName = compilation.getPath((0, _nameTemplates.nameTemplates)("js", this.options), {
@@ -61,6 +65,12 @@ class MurphyInjectorPlugin {
61
65
  contentHashType: "javascript"
62
66
  }); // ✅ Use Webpack's getPath to resolve your template properly
63
67
  });
68
+
69
+ if (this.cdnMapping.isCdnEnabled) {
70
+ fileName = `${this.jsTemplate}${fileName}`;
71
+ }
72
+
73
+ ;
64
74
  data.assetTags.scripts.unshift({
65
75
  tagName: "script",
66
76
  voidTag: false,
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.ConfigMurphyInjectorPlugin = ConfigMurphyInjectorPlugin;
6
+ exports.configMurphyInjectorPlugin = configMurphyInjectorPlugin;
7
7
 
8
8
  var _constants = require("../../../constants");
9
9
 
@@ -13,7 +13,7 @@ var _path = _interopRequireDefault(require("path"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- function ConfigMurphyInjectorPlugin(options) {
16
+ function configMurphyInjectorPlugin(options) {
17
17
  return new _MurphyInjectorPlugin.default([{
18
18
  name: "murphy",
19
19
  file: _path.default.join(_constants.appPath, "./src/library/murphy/initial_html/index.js")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.12-exp.4",
3
+ "version": "0.0.12-exp.6",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {