@zohodesk/client_build_tool 0.0.3 → 0.0.5-exp.1
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 +7 -1
- package/README.md +194 -0
- package/README_backup.md +188 -0
- package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nRuntimeDealerPlugin.js +6 -2
- package/lib/shared/bundler/webpack/resolvers.js +1 -1
- package/lib/shared/constants.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
# Changelog and Release Notes
|
|
2
2
|
|
|
3
|
-
## v0.0.
|
|
3
|
+
## v0.0.5 (6-08-2023)
|
|
4
|
+
|
|
5
|
+
**Changes:--**
|
|
6
|
+
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
7
|
+
- fixing some bugs in resolvers.js file
|
|
8
|
+
|
|
9
|
+
## v0.0.3 (1-08-2023)
|
|
4
10
|
|
|
5
11
|
**Changes:--**
|
|
6
12
|
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
package/README.md
CHANGED
|
@@ -84,8 +84,202 @@ 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
|
+
|
|
87
197
|
## v0.0.2 (28-04-2023)
|
|
88
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
|
|
274
|
+
|
|
275
|
+
## v0.0.5 (6-08-2023)
|
|
276
|
+
|
|
277
|
+
**Changes:--**
|
|
278
|
+
- Typo fix in i18nRuntimeDealerPlugin.js
|
|
279
|
+
- fixing some bugs in resolvers.js file
|
|
280
|
+
|
|
281
|
+
## v0.0.3 (1-08-2023)
|
|
282
|
+
|
|
89
283
|
**Changes:--**
|
|
90
284
|
- `devtool` default value changed from `hidden-cheap-source-map` to `source-map`
|
|
91
285
|
- unwanted files deleted from build
|
package/README_backup.md
CHANGED
|
@@ -82,3 +82,191 @@ 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
|
package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nRuntimeDealerPlugin.js
CHANGED
|
@@ -183,19 +183,23 @@ class I18nRuntimeDealerPlugin {
|
|
|
183
183
|
stage: _webpack.Compilation.PROCESS_ASSETS_STAGE_SUMMARIZE // additionalAssets: true
|
|
184
184
|
|
|
185
185
|
}, () => {
|
|
186
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
186
|
+
console.log('delete starts ==== '); // eslint-disable-next-line no-underscore-dangle
|
|
187
|
+
|
|
187
188
|
const entries = compilation._getChunkGraphEntries(); // eslint-disable-next-line no-restricted-syntax
|
|
188
189
|
|
|
189
190
|
|
|
190
191
|
for (const entryChunk of entries) {
|
|
191
192
|
const runtimeFileName = [...entryChunk.files][0] || '';
|
|
193
|
+
console.log(runtimeFileName, 'runtimeFile==');
|
|
192
194
|
|
|
193
|
-
if (runtimeFileName.includes('runtime') && runtimeFileName.includes('[
|
|
195
|
+
if (runtimeFileName.includes('runtime') && runtimeFileName.includes('[locale]')) {
|
|
194
196
|
(0, _logger.verboseLogger)('deleteAsset', runtimeFileName);
|
|
197
|
+
console.log('deleted successuly====');
|
|
195
198
|
compilation.deleteAsset(runtimeFileName);
|
|
196
199
|
}
|
|
197
200
|
}
|
|
198
201
|
});
|
|
202
|
+
console.log('completed ====');
|
|
199
203
|
}
|
|
200
204
|
}
|
|
201
205
|
|
|
@@ -77,5 +77,5 @@ function loaderResolver(options) {
|
|
|
77
77
|
|
|
78
78
|
function useAppNodeModulesAsPreferred(preferLocalFirst = false, paths = []) {
|
|
79
79
|
const filteredPaths = paths.filter(Boolean);
|
|
80
|
-
return preferLocalFirst ? ['node_modules', ...filteredPaths] : [...filteredPaths, 'node_modules'];
|
|
80
|
+
return preferLocalFirst ? ['node_modules', ...filteredPaths, _constants.appNodeModules] : [...filteredPaths, 'node_modules', _constants.appNodeModules];
|
|
81
81
|
}
|
package/lib/shared/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.cliRootPath = exports.cliNodeModulesPath = exports.babelrcPath = exports.appPath = exports.CONFIG_ROOT = exports.BASE_CONFIG_KEY = void 0;
|
|
6
|
+
exports.cliRootPath = exports.cliNodeModulesPath = exports.babelrcPath = exports.appPath = exports.appNodeModules = exports.CONFIG_ROOT = exports.BASE_CONFIG_KEY = void 0;
|
|
7
7
|
exports.getTemplatePath = getTemplatePath;
|
|
8
8
|
exports.joinWithAppPath = joinWithAppPath;
|
|
9
9
|
exports.templatesPath = void 0;
|
|
@@ -36,6 +36,9 @@ function joinWithAppPath(filePath) {
|
|
|
36
36
|
return (0, _path.join)(appPath, filePath);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
;
|
|
40
|
+
const appNodeModules = joinWithAppPath('node_modules');
|
|
41
|
+
exports.appNodeModules = appNodeModules;
|
|
39
42
|
const templatesPath = (0, _path.join)(__dirname, '..', '..', 'templates');
|
|
40
43
|
exports.templatesPath = templatesPath;
|
|
41
44
|
|