@zohodesk/client_build_tool 0.0.5-exp.1 → 0.0.5-exp.3

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,9 @@
1
1
  # Changelog and Release Notes
2
2
 
3
+ ## v0.0.5-exp.3 (11-09-2023)
4
+
5
+ **changes:--**
6
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
3
7
  ## v0.0.5 (6-08-2023)
4
8
 
5
9
  **Changes:--**
package/README.md CHANGED
@@ -84,194 +84,10 @@ These commands provide flexibility and control over your client-side build proce
84
84
  For more [Details](ConfigurationDocumentation.md)
85
85
  # Changelog and Release Notes
86
86
 
87
- ## v0.0.5 (6-08-2023)
88
-
89
- **Changes:--**
90
- - Typo fix in i18nRuntimeDealerPlugin.js
91
- - fixing some bugs in resolvers.js file
92
-
93
- ## v0.0.3 (1-08-2023)
94
-
95
- **Changes:--**
96
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
97
- - unwanted files deleted from build
98
-
99
- **Issue Fix:--**
100
- - The issue with the source map not being created in the build has been fixed."
101
-
102
-
103
- ## v0.0.2 (28-04-2023)
104
-
105
- **Features:-**
106
-
107
- - `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)
108
- - `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)
109
- - `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.
110
- - `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.
111
- - `enableChunkHash` renamed as `enableFileNameHashing`
112
-
113
- - `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`)
114
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
115
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
116
- - `removePropTypes` support for remove the prop types package in the output build.
117
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
118
- - `manifestJson` default value set as false.
119
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
120
-
121
-
122
- ## v0.0.1 (18-04-2023)
123
-
124
- First Release
125
- **Features:-**
126
-
127
- - 'start' command to run react app
128
- - 'build' command to create build for react app
129
- - 'build:lib' command to create lib for react library
130
- - 'build:es' command to create es for react library
131
- - 'templates' command to create es for react library
132
- # Changelog and Release Notes
133
-
134
- ## v0.0.5 (6-08-2023)
135
-
136
- **Changes:--**
137
- - Typo fix in i18nRuntimeDealerPlugin.js
138
- - fixing some bugs in resolvers.js file
139
-
140
- ## v0.0.3 (1-08-2023)
141
-
142
- **Changes:--**
143
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
144
- - unwanted files deleted from build
145
-
146
- **Issue Fix:--**
147
- - The issue with the source map not being created in the build has been fixed."
148
-
149
-
150
- ## v0.0.2 (28-04-2023)
151
-
152
- **Features:-**
153
-
154
- - `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)
155
- - `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)
156
- - `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.
157
- - `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.
158
- - `enableChunkHash` renamed as `enableFileNameHashing`
159
-
160
- - `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`)
161
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
162
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
163
- - `removePropTypes` support for remove the prop types package in the output build.
164
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
165
- - `manifestJson` default value set as false.
166
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
167
-
168
-
169
- ## v0.0.1 (18-04-2023)
170
-
171
- First Release
172
- **Features:-**
173
-
174
- - 'start' command to run react app
175
- - 'build' command to create build for react app
176
- - 'build:lib' command to create lib for react library
177
- - 'build:es' command to create es for react library
178
- - 'templates' command to create es for react library
179
- # Changelog and Release Notes
180
-
181
- ## v0.0.5 (6-08-2023)
182
-
183
- **Changes:--**
184
- - Typo fix in i18nRuntimeDealerPlugin.js
185
- - fixing some bugs in resolvers.js file
186
-
187
- ## v0.0.3 (1-08-2023)
188
-
189
- **Changes:--**
190
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
191
- - unwanted files deleted from build
192
-
193
- **Issue Fix:--**
194
- - The issue with the source map not being created in the build has been fixed."
195
-
196
-
197
- ## v0.0.2 (28-04-2023)
198
-
199
- **Features:-**
200
-
201
- - `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)
202
- - `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)
203
- - `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.
204
- - `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.
205
- - `enableChunkHash` renamed as `enableFileNameHashing`
206
-
207
- - `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`)
208
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
209
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
210
- - `removePropTypes` support for remove the prop types package in the output build.
211
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
212
- - `manifestJson` default value set as false.
213
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
214
-
215
-
216
- ## v0.0.1 (18-04-2023)
217
-
218
- First Release
219
- **Features:-**
220
-
221
- - 'start' command to run react app
222
- - 'build' command to create build for react app
223
- - 'build:lib' command to create lib for react library
224
- - 'build:es' command to create es for react library
225
- - 'templates' command to create es for react library
226
- # Changelog and Release Notes
227
-
228
- ## v0.0.5 (6-08-2023)
229
-
230
- **Changes:--**
231
- - Typo fix in i18nRuntimeDealerPlugin.js
232
- - fixing some bugs in resolvers.js file
233
-
234
- ## v0.0.3 (1-08-2023)
235
-
236
- **Changes:--**
237
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
238
- - unwanted files deleted from build
239
-
240
- **Issue Fix:--**
241
- - The issue with the source map not being created in the build has been fixed."
242
-
243
-
244
- ## v0.0.2 (28-04-2023)
245
-
246
- **Features:-**
247
-
248
- - `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)
249
- - `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)
250
- - `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.
251
- - `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.
252
- - `enableChunkHash` renamed as `enableFileNameHashing`
253
-
254
- - `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`)
255
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
256
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
257
- - `removePropTypes` support for remove the prop types package in the output build.
258
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
259
- - `manifestJson` default value set as false.
260
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
261
-
262
-
263
- ## v0.0.1 (18-04-2023)
264
-
265
- First Release
266
- **Features:-**
267
-
268
- - 'start' command to run react app
269
- - 'build' command to create build for react app
270
- - 'build:lib' command to create lib for react library
271
- - 'build:es' command to create es for react library
272
- - 'templates' command to create es for react library
273
- # Changelog and Release Notes
87
+ ## v0.0.5-exp.3 (11-09-2023)
274
88
 
89
+ **changes:--**
90
+ - changing plugin hook stages in i18nRuntimePlugin and sourceMapPlugin
275
91
  ## v0.0.5 (6-08-2023)
276
92
 
277
93
  **Changes:--**
package/README_backup.md CHANGED
@@ -82,191 +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
- ## v0.0.5 (6-08-2023)
88
-
89
- **Changes:--**
90
- - Typo fix in i18nRuntimeDealerPlugin.js
91
- - fixing some bugs in resolvers.js file
92
-
93
- ## v0.0.3 (1-08-2023)
94
-
95
- **Changes:--**
96
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
97
- - unwanted files deleted from build
98
-
99
- **Issue Fix:--**
100
- - The issue with the source map not being created in the build has been fixed."
101
-
102
-
103
- ## v0.0.2 (28-04-2023)
104
-
105
- **Features:-**
106
-
107
- - `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)
108
- - `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)
109
- - `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.
110
- - `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.
111
- - `enableChunkHash` renamed as `enableFileNameHashing`
112
-
113
- - `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`)
114
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
115
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
116
- - `removePropTypes` support for remove the prop types package in the output build.
117
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
118
- - `manifestJson` default value set as false.
119
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
120
-
121
-
122
- ## v0.0.1 (18-04-2023)
123
-
124
- First Release
125
- **Features:-**
126
-
127
- - 'start' command to run react app
128
- - 'build' command to create build for react app
129
- - 'build:lib' command to create lib for react library
130
- - 'build:es' command to create es for react library
131
- - 'templates' command to create es for react library
132
- # Changelog and Release Notes
133
-
134
- ## v0.0.5 (6-08-2023)
135
-
136
- **Changes:--**
137
- - Typo fix in i18nRuntimeDealerPlugin.js
138
- - fixing some bugs in resolvers.js file
139
-
140
- ## v0.0.3 (1-08-2023)
141
-
142
- **Changes:--**
143
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
144
- - unwanted files deleted from build
145
-
146
- **Issue Fix:--**
147
- - The issue with the source map not being created in the build has been fixed."
148
-
149
-
150
- ## v0.0.2 (28-04-2023)
151
-
152
- **Features:-**
153
-
154
- - `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)
155
- - `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)
156
- - `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.
157
- - `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.
158
- - `enableChunkHash` renamed as `enableFileNameHashing`
159
-
160
- - `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`)
161
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
162
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
163
- - `removePropTypes` support for remove the prop types package in the output build.
164
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
165
- - `manifestJson` default value set as false.
166
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
167
-
168
-
169
- ## v0.0.1 (18-04-2023)
170
-
171
- First Release
172
- **Features:-**
173
-
174
- - 'start' command to run react app
175
- - 'build' command to create build for react app
176
- - 'build:lib' command to create lib for react library
177
- - 'build:es' command to create es for react library
178
- - 'templates' command to create es for react library
179
- # Changelog and Release Notes
180
-
181
- ## v0.0.5 (6-08-2023)
182
-
183
- **Changes:--**
184
- - Typo fix in i18nRuntimeDealerPlugin.js
185
- - fixing some bugs in resolvers.js file
186
-
187
- ## v0.0.3 (1-08-2023)
188
-
189
- **Changes:--**
190
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
191
- - unwanted files deleted from build
192
-
193
- **Issue Fix:--**
194
- - The issue with the source map not being created in the build has been fixed."
195
-
196
-
197
- ## v0.0.2 (28-04-2023)
198
-
199
- **Features:-**
200
-
201
- - `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)
202
- - `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)
203
- - `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.
204
- - `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.
205
- - `enableChunkHash` renamed as `enableFileNameHashing`
206
-
207
- - `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`)
208
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
209
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
210
- - `removePropTypes` support for remove the prop types package in the output build.
211
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
212
- - `manifestJson` default value set as false.
213
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
214
-
215
-
216
- ## v0.0.1 (18-04-2023)
217
-
218
- First Release
219
- **Features:-**
220
-
221
- - 'start' command to run react app
222
- - 'build' command to create build for react app
223
- - 'build:lib' command to create lib for react library
224
- - 'build:es' command to create es for react library
225
- - 'templates' command to create es for react library
226
- # Changelog and Release Notes
227
-
228
- ## v0.0.5 (6-08-2023)
229
-
230
- **Changes:--**
231
- - Typo fix in i18nRuntimeDealerPlugin.js
232
- - fixing some bugs in resolvers.js file
233
-
234
- ## v0.0.3 (1-08-2023)
235
-
236
- **Changes:--**
237
- - `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
238
- - unwanted files deleted from build
239
-
240
- **Issue Fix:--**
241
- - The issue with the source map not being created in the build has been fixed."
242
-
243
-
244
- ## v0.0.2 (28-04-2023)
245
-
246
- **Features:-**
247
-
248
- - `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)
249
- - `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)
250
- - `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.
251
- - `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.
252
- - `enableChunkHash` renamed as `enableFileNameHashing`
253
-
254
- - `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`)
255
- - `createSeparateSmap` flag `source_map_enable` renamed as `enable_smap`
256
- - `removeAttribute` option changes as `babelCustomizations.removeAttribute`
257
- - `removePropTypes` support for remove the prop types package in the output build.
258
- - `devConsoleExclude` support for remove the _console statements_ such as _console.log_, _console.warn_ in the output build.
259
- - `manifestJson` default value set as false.
260
- - `customAttributes` support for add attributes to html, link , script tag in the output build.
261
-
262
-
263
- ## v0.0.1 (18-04-2023)
264
-
265
- First Release
266
- **Features:-**
267
-
268
- - 'start' command to run react app
269
- - 'build' command to create build for react app
270
- - 'build:lib' command to create lib for react library
271
- - 'build:es' command to create es for react library
272
- - 'templates' command to create es for react library
@@ -183,23 +183,19 @@ class I18nRuntimeDealerPlugin {
183
183
  stage: _webpack.Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE // additionalAssets: true
184
184
 
185
185
  }, () => {
186
- console.log('delete starts ==== '); // eslint-disable-next-line no-underscore-dangle
187
-
186
+ // eslint-disable-next-line no-underscore-dangle
188
187
  const entries = compilation._getChunkGraphEntries(); // eslint-disable-next-line no-restricted-syntax
189
188
 
190
189
 
191
190
  for (const entryChunk of entries) {
192
191
  const runtimeFileName = [...entryChunk.files][0] || '';
193
- console.log(runtimeFileName, 'runtimeFile==');
194
192
 
195
193
  if (runtimeFileName.includes('runtime') && runtimeFileName.includes('[locale]')) {
196
194
  (0, _logger.verboseLogger)('deleteAsset', runtimeFileName);
197
- console.log('deleted successuly====');
198
195
  compilation.deleteAsset(runtimeFileName);
199
196
  }
200
197
  }
201
198
  });
202
- console.log('completed ====');
203
199
  }
204
200
  }
205
201
 
@@ -8,7 +8,20 @@ exports.SourceMapPlugin = void 0;
8
8
  var _webpack = require("webpack");
9
9
 
10
10
  /* eslint-disable class-methods-use-this */
11
- const pluginName = 'SplitSourceMapPlugin';
11
+ function checkSmapFilePattern(assetName) {
12
+ return /\.js$/.test(assetName) && !/\.i18n\.js$/.test(assetName) || /\.js\.map$/.test(assetName) && !/\.i18n\.js\.map$/.test(assetName);
13
+ }
14
+
15
+ function skipRuntimeFiles(assetName) {
16
+ return !assetName.includes('runtime') || !assetName.includes('[locale]');
17
+ }
18
+
19
+ const pluginName = 'SplitSourceMapPlugin'; // Purpose:
20
+
21
+ /**
22
+ * we want build that can load files source map and without sourcemap at the same time,
23
+ * or can be mentioned as so single build need to support two different clients that one for fast load and one for debugging.
24
+ */
12
25
 
13
26
  class SourceMapPlugin {
14
27
  apply(compiler) {
@@ -23,7 +36,7 @@ class SourceMapPlugin {
23
36
  Object.keys(assets).forEach(assetName => {
24
37
  const assetCode = assets[assetName].source();
25
38
 
26
- if (/\.js$/.test(assetName) && !/\.i18n\.js$/.test(assetName) || /\.js\.map$/.test(assetName) && !/\.i18n\.js\.map$/.test(assetName)) {
39
+ if (checkSmapFilePattern(assetName) && skipRuntimeFiles(assetName)) {
27
40
  compilation.renameAsset(assetName, `smap/${assetName}`);
28
41
 
29
42
  if (!/\.map$/.test(assetName)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.5-exp.1",
3
+ "version": "0.0.5-exp.3",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -8,6 +8,7 @@
8
8
  "cbt": "cli.js"
9
9
  },
10
10
  "scripts": {
11
+ "exp:publish": "npm publish --tag exp",
11
12
  "start": "rm -r lib && npm run build -- -w",
12
13
  "prepare": "npm run build",
13
14
  "build": "babel src --out-dir lib --copy-files --config-file=./.babelrc",