@zohodesk/client_build_tool 0.0.6-exp.42 → 0.0.6-exp.44

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
@@ -86,154 +86,6 @@ For more [Details](ConfigurationDocumentation.md)
86
86
 
87
87
 
88
88
 
89
- **Feature:-**
90
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
91
- - to use externals, we use the following pattern in `app > externals` :
92
-
93
- For example
94
- ```
95
- externals: {
96
- <key> : <value>
97
- }
98
- ```
99
-
100
- ## v0.0.6 (4-09-2023)
101
-
102
- **Feature:-**
103
- - 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`.
104
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
105
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
106
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
107
- - added support for glob pattern for custom chunks split logic.
108
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
109
-
110
- **Change:-**
111
- - i18n name not generated issue fix.
112
- - public path not correctly set issue fix.
113
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
114
- ## v0.0.5 (6-08-2023)
115
-
116
- **Changes:--**
117
- - Typo fix in i18nRuntimeDealerPlugin.js
118
- - fixing some bugs in resolvers.js file
119
-
120
- ## v0.0.3 (1-08-2023)
121
-
122
- **Changes:--**
123
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
124
- - unwanted files deleted from build
125
-
126
- **Issue Fix:--**
127
- - The issue with the source map not being created in the build has been fixed."
128
-
129
-
130
- ## v0.0.2 (28-04-2023)
131
-
132
- **Features:-**
133
-
134
- - `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)
135
- - `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)
136
- - `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.
137
- - `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.
138
- - `enableChunkHash` renamed as `enableFileNameHashing`
139
-
140
- - `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`)
141
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
142
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
143
- - `removePropTypes` support for remove the prop types package in the output build.
144
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
145
- - `manifestJson` default value set as false.
146
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
147
-
148
-
149
- ## v0.0.1 (18-04-2023)
150
-
151
- First Release
152
- **Features:-**
153
-
154
- - 'start' command to run react app
155
- - 'build' command to create build for react app
156
- - 'build:lib' command to create lib for react library
157
- - 'build:es' command to create es for react library
158
- - 'templates' command to create es for react library
159
- # Changelog and Release Notes
160
-
161
-
162
-
163
- **Feature:-**
164
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
165
- - to use externals, we use the following pattern in `app > externals` :
166
-
167
- For example
168
- ```
169
- externals: {
170
- <key> : <value>
171
- }
172
- ```
173
-
174
- ## v0.0.6 (4-09-2023)
175
-
176
- **Feature:-**
177
- - 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`.
178
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
179
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
180
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
181
- - added support for glob pattern for custom chunks split logic.
182
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
183
-
184
- **Change:-**
185
- - i18n name not generated issue fix.
186
- - public path not correctly set issue fix.
187
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
188
- ## v0.0.5 (6-08-2023)
189
-
190
- **Changes:--**
191
- - Typo fix in i18nRuntimeDealerPlugin.js
192
- - fixing some bugs in resolvers.js file
193
-
194
- ## v0.0.3 (1-08-2023)
195
-
196
- **Changes:--**
197
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
198
- - unwanted files deleted from build
199
-
200
- **Issue Fix:--**
201
- - The issue with the source map not being created in the build has been fixed."
202
-
203
-
204
- ## v0.0.2 (28-04-2023)
205
-
206
- **Features:-**
207
-
208
- - `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)
209
- - `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)
210
- - `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.
211
- - `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.
212
- - `enableChunkHash` renamed as `enableFileNameHashing`
213
-
214
- - `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`)
215
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
216
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
217
- - `removePropTypes` support for remove the prop types package in the output build.
218
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
219
- - `manifestJson` default value set as false.
220
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
221
-
222
-
223
- ## v0.0.1 (18-04-2023)
224
-
225
- First Release
226
- **Features:-**
227
-
228
- - 'start' command to run react app
229
- - 'build' command to create build for react app
230
- - 'build:lib' command to create lib for react library
231
- - 'build:es' command to create es for react library
232
- - 'templates' command to create es for react library
233
- # Changelog and Release Notes
234
-
235
-
236
-
237
89
  **Feature:-**
238
90
  - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
239
91
  - to use externals, we use the following pattern in `app > externals` :
package/README_backup.md CHANGED
@@ -82,151 +82,3 @@ The following commands are available options for the `cbt` (Client Build Tool) C
82
82
  These commands provide flexibility and control over your client-side build process, allowing you to start the development server, build your application, transpile libraries, create templates, run a mock API server, and more.
83
83
 
84
84
  For more [Details](ConfigurationDocumentation.md)
85
- # Changelog and Release Notes
86
-
87
-
88
-
89
- **Feature:-**
90
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
91
- - to use externals, we use the following pattern in `app > externals` :
92
-
93
- For example
94
- ```
95
- externals: {
96
- <key> : <value>
97
- }
98
- ```
99
-
100
- ## v0.0.6 (4-09-2023)
101
-
102
- **Feature:-**
103
- - 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`.
104
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
105
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
106
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
107
- - added support for glob pattern for custom chunks split logic.
108
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
109
-
110
- **Change:-**
111
- - i18n name not generated issue fix.
112
- - public path not correctly set issue fix.
113
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
114
- ## v0.0.5 (6-08-2023)
115
-
116
- **Changes:--**
117
- - Typo fix in i18nRuntimeDealerPlugin.js
118
- - fixing some bugs in resolvers.js file
119
-
120
- ## v0.0.3 (1-08-2023)
121
-
122
- **Changes:--**
123
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
124
- - unwanted files deleted from build
125
-
126
- **Issue Fix:--**
127
- - The issue with the source map not being created in the build has been fixed."
128
-
129
-
130
- ## v0.0.2 (28-04-2023)
131
-
132
- **Features:-**
133
-
134
- - `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)
135
- - `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)
136
- - `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.
137
- - `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.
138
- - `enableChunkHash` renamed as `enableFileNameHashing`
139
-
140
- - `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`)
141
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
142
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
143
- - `removePropTypes` support for remove the prop types package in the output build.
144
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
145
- - `manifestJson` default value set as false.
146
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
147
-
148
-
149
- ## v0.0.1 (18-04-2023)
150
-
151
- First Release
152
- **Features:-**
153
-
154
- - 'start' command to run react app
155
- - 'build' command to create build for react app
156
- - 'build:lib' command to create lib for react library
157
- - 'build:es' command to create es for react library
158
- - 'templates' command to create es for react library
159
- # Changelog and Release Notes
160
-
161
-
162
-
163
- **Feature:-**
164
- - externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
165
- - to use externals, we use the following pattern in `app > externals` :
166
-
167
- For example
168
- ```
169
- externals: {
170
- <key> : <value>
171
- }
172
- ```
173
-
174
- ## v0.0.6 (4-09-2023)
175
-
176
- **Feature:-**
177
- - 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`.
178
- - Added Resource Cleanup plugin to cleanup resource retained by build tool. this plugin is controlled by efc flag resourcecleanup flag.
179
- - added support for using regex expression to get group of chunks chunkId via Resource Hint plugin prefetch/preload hook.
180
- only will be activate when `resourceHints` => `allowPrefetchingMultipleChunks` as `true`
181
- - added support for glob pattern for custom chunks split logic.
182
- - added options to split chunks base config in the key `app` => `customChunksBaseConfig` as object
183
-
184
- **Change:-**
185
- - i18n name not generated issue fix.
186
- - public path not correctly set issue fix.
187
- - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
188
- ## v0.0.5 (6-08-2023)
189
-
190
- **Changes:--**
191
- - Typo fix in i18nRuntimeDealerPlugin.js
192
- - fixing some bugs in resolvers.js file
193
-
194
- ## v0.0.3 (1-08-2023)
195
-
196
- **Changes:--**
197
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
198
- - unwanted files deleted from build
199
-
200
- **Issue Fix:--**
201
- - The issue with the source map not being created in the build has been fixed."
202
-
203
-
204
- ## v0.0.2 (28-04-2023)
205
-
206
- **Features:-**
207
-
208
- - `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)
209
- - `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)
210
- - `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.
211
- - `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.
212
- - `enableChunkHash` renamed as `enableFileNameHashing`
213
-
214
- - `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`)
215
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
216
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
217
- - `removePropTypes` support for remove the prop types package in the output build.
218
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
219
- - `manifestJson` default value set as false.
220
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
221
-
222
-
223
- ## v0.0.1 (18-04-2023)
224
-
225
- First Release
226
- **Features:-**
227
-
228
- - 'start' command to run react app
229
- - 'build' command to create build for react app
230
- - 'build:lib' command to create lib for react library
231
- - 'build:es' command to create es for react library
232
- - 'templates' command to create es for react library
@@ -98,7 +98,6 @@ class CustomScriptLoadingStrategyPlugin {
98
98
  compiler.hooks.compilation.tap(pluginName, compilation => {
99
99
  _htmlWebpackPlugin.default.getHooks(compilation).alterAssetTagGroups.tapAsync(pluginName, (data, callback) => {
100
100
  const tags = [...data.bodyTags, ...data.headTags];
101
- console.log(tags, 'dummy');
102
101
  this.matchAndApplyCustomLoadingStrategyToScripts(tags);
103
102
  callback(null, data);
104
103
  });
@@ -108,6 +108,10 @@ const singleConvertor = (value, changeVal, details, range) => {
108
108
  }
109
109
  }
110
110
 
111
+ if (value == '0px') {
112
+ value = value.replace('px', '');
113
+ }
114
+
111
115
  if (getNumericValue(value) >= range.start && getNumericValue(value) <= range.end || getNumericValue(value) === 0) {
112
116
  let retVal = value.replace(/(\d+)px/gi, changeVal.replace('$$', '$1'));
113
117
 
@@ -306,7 +310,7 @@ var _default = ({
306
310
  range
307
311
  } = settings;
308
312
  const convertedVals = valArr.map(val => {
309
- if (val.includes('px') && val.toString() !== '0') {
313
+ if (val.includes('px')) {
310
314
  const convertedVal = singleConvertor(val, settings.replacements.px, {
311
315
  decl,
312
316
  filename,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.6-exp.36",
3
+ "version": "0.0.6-exp.43",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.6-exp.42",
3
+ "version": "0.0.6-exp.44",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {