@zohodesk/client_build_tool 0.0.1-0.exp.0.0.3 → 0.0.1-0.exp.0.0.8
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/lib/schemas/defaultConfigValues.js +39 -19
- package/lib/schemas/defaultConfigValuesOnly.js +14 -8
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/CLAUDE.md +0 -0
- package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexPlugin.js +382 -75
- package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nFilesEmitPlugin.js +66 -5
- package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/optionsHandler.js +3 -0
- package/lib/shared/bundler/webpack/custom_plugins/getInitialI18nAssetsArrayStr.js +6 -1
- package/lib/shared/bundler/webpack/loaderConfigs/i18nIdReplaceLoaderConfig.js +92 -61
- package/lib/shared/bundler/webpack/loaders/i18nIdReplaceLoader.js +151 -123
- package/lib/shared/bundler/webpack/pluginConfigs/configI18nNumericIndexPlugin.js +74 -45
- package/lib/shared/bundler/webpack/pluginConfigs/configI18nSplitPlugin.js +4 -1
- package/lib/shared/bundler/webpack/utils/propertiesParser.js +103 -0
- package/npm-shrinkwrap.json +8086 -21
- package/package.json +1 -1
|
@@ -174,25 +174,23 @@ var _default = {
|
|
|
174
174
|
localeVarName: 'document.documentElement.lang',
|
|
175
175
|
jsonpFunc: 'console.log',
|
|
176
176
|
jsResource: null,
|
|
177
|
-
propertiesFolder: null
|
|
177
|
+
propertiesFolder: null,
|
|
178
|
+
propertiesPattern: '',
|
|
179
|
+
// NEW OPTIONS FOR NUMERIC INDEXING IN CHUNK SPLIT
|
|
180
|
+
useNumericIndexing: {
|
|
181
|
+
value: false,
|
|
182
|
+
cli: 'i18n_split_use_numeric'
|
|
183
|
+
},
|
|
184
|
+
numericMapPath: {
|
|
185
|
+
value: './deskapp/properties/i18n-numeric-map.json',
|
|
186
|
+
cli: 'i18n_split_numeric_map_path'
|
|
187
|
+
}
|
|
178
188
|
},
|
|
179
189
|
i18nIndexing: {
|
|
180
190
|
enable: {
|
|
181
191
|
value: false,
|
|
182
192
|
cli: 'i18n_idx_enable'
|
|
183
193
|
},
|
|
184
|
-
disableDefaultMerge: {
|
|
185
|
-
value: false,
|
|
186
|
-
cli: 'i18n_idx_disable_default_merge'
|
|
187
|
-
},
|
|
188
|
-
htmlTemplateLabel: {
|
|
189
|
-
value: '{{--user-locale}}',
|
|
190
|
-
cli: 'i18n_idx_html_template_label'
|
|
191
|
-
},
|
|
192
|
-
localeVarName: {
|
|
193
|
-
value: 'window.userLangCode',
|
|
194
|
-
cli: 'i18n_idx_locale_var_name'
|
|
195
|
-
},
|
|
196
194
|
jsResourcePath: {
|
|
197
195
|
value: './deskapp/properties/JSResources.properties',
|
|
198
196
|
cli: 'i18n_idx_js_resource_path'
|
|
@@ -201,20 +199,42 @@ var _default = {
|
|
|
201
199
|
value: './deskapp/properties',
|
|
202
200
|
cli: 'i18n_idx_properties_folder_path'
|
|
203
201
|
},
|
|
204
|
-
propertiesPattern: {
|
|
205
|
-
value: ''
|
|
206
|
-
},
|
|
207
202
|
numericMapPath: {
|
|
208
203
|
value: './deskapp/properties/i18n-numeric-map.json',
|
|
209
204
|
cli: 'i18n_idx_numeric_map_path'
|
|
210
205
|
},
|
|
206
|
+
numericFilenameTemplate: {
|
|
207
|
+
value: 'i18n-chunks/[locale]/numeric.[contenthash].js',
|
|
208
|
+
cli: 'i18n_idx_numeric_filename_template'
|
|
209
|
+
},
|
|
210
|
+
dynamicFilenameTemplate: {
|
|
211
|
+
value: 'i18n-chunks/[locale]/dynamic.[contenthash].js',
|
|
212
|
+
cli: 'i18n_idx_dynamic_filename_template'
|
|
213
|
+
},
|
|
211
214
|
jsonpFunc: {
|
|
212
|
-
value: 'window.
|
|
215
|
+
value: 'window.loadI18nChunk',
|
|
213
216
|
cli: 'i18n_idx_jsonp_func'
|
|
214
217
|
},
|
|
215
|
-
|
|
218
|
+
htmlTemplateLabel: {
|
|
219
|
+
value: '{{--user-locale}}',
|
|
220
|
+
cli: 'i18n_idx_html_template_label'
|
|
221
|
+
},
|
|
222
|
+
localeVarName: {
|
|
223
|
+
value: 'window.userLangCode',
|
|
224
|
+
cli: 'i18n_idx_locale_var_name'
|
|
225
|
+
},
|
|
226
|
+
// NEW LOADER CONFIGURATION OPTIONS
|
|
227
|
+
retainLines: {
|
|
228
|
+
value: false,
|
|
229
|
+
cli: 'i18n_idx_retain_lines'
|
|
230
|
+
},
|
|
231
|
+
preserveComments: {
|
|
216
232
|
value: true,
|
|
217
|
-
cli: '
|
|
233
|
+
cli: 'i18n_idx_preserve_comments'
|
|
234
|
+
},
|
|
235
|
+
babelPlugins: {
|
|
236
|
+
value: null,
|
|
237
|
+
cli: 'i18n_idx_babel_plugins'
|
|
218
238
|
}
|
|
219
239
|
},
|
|
220
240
|
publicFolders: ['...'],
|
|
@@ -94,20 +94,26 @@ var _default = {
|
|
|
94
94
|
localeVarName: 'document.documentElement.lang',
|
|
95
95
|
jsonpFunc: 'console.log',
|
|
96
96
|
jsResource: null,
|
|
97
|
-
propertiesFolder: null
|
|
97
|
+
propertiesFolder: null,
|
|
98
|
+
propertiesPattern: '',
|
|
99
|
+
// NEW OPTIONS FOR NUMERIC INDEXING IN CHUNK SPLIT
|
|
100
|
+
useNumericIndexing: false,
|
|
101
|
+
numericMapPath: './deskapp/properties/i18n-numeric-map.json'
|
|
98
102
|
},
|
|
99
103
|
i18nIndexing: {
|
|
100
104
|
enable: false,
|
|
101
|
-
disableDefaultMerge: false,
|
|
102
|
-
htmlTemplateLabel: '{{--user-locale}}',
|
|
103
|
-
localeVarName: 'window.userLangCode',
|
|
104
105
|
jsResourcePath: './deskapp/properties/JSResources.properties',
|
|
105
106
|
propertiesFolderPath: './deskapp/properties',
|
|
106
|
-
propertiesPattern: '',
|
|
107
107
|
numericMapPath: './deskapp/properties/i18n-numeric-map.json',
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
numericFilenameTemplate: 'i18n-chunks/[locale]/numeric.[contenthash].js',
|
|
109
|
+
dynamicFilenameTemplate: 'i18n-chunks/[locale]/dynamic.[contenthash].js',
|
|
110
|
+
jsonpFunc: 'window.loadI18nChunk',
|
|
111
|
+
htmlTemplateLabel: '{{--user-locale}}',
|
|
112
|
+
localeVarName: 'window.userLangCode',
|
|
113
|
+
// NEW LOADER CONFIGURATION OPTIONS
|
|
114
|
+
retainLines: false,
|
|
115
|
+
preserveComments: true,
|
|
116
|
+
babelPlugins: null
|
|
111
117
|
},
|
|
112
118
|
publicFolders: ['...', {
|
|
113
119
|
source: './deskapp/tp/',
|
|
File without changes
|