@zohodesk/client_build_tool 0.0.1-0.exp.0.0.8 → 0.0.1-0.exp.1.0.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +0 -10
  2. package/README.md +0 -10
  3. package/lib/schemas/defaultConfigValues.js +14 -63
  4. package/lib/schemas/defaultConfigValuesOnly.js +6 -10
  5. package/lib/shared/babel/getBabelPlugin.js +4 -9
  6. package/lib/shared/babel/runBabelForTsFile.js +1 -1
  7. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexHtmlInjectorPlugin.js +14 -12
  8. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexPlugin.js +90 -426
  9. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/I18nNumericIndexPlugin_simplified.js +129 -0
  10. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/i18nDataLoader.js +134 -0
  11. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/utils/i18nDataLoader.js +113 -0
  12. package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/I18nFilesEmitPlugin.js +5 -66
  13. package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/optionsHandler.js +0 -3
  14. package/lib/shared/bundler/webpack/custom_plugins/I18nSplitPlugin/utils/collectAstKeys.js +4 -6
  15. package/lib/shared/bundler/webpack/custom_plugins/getInitialI18nAssetsArrayStr.js +1 -6
  16. package/lib/shared/bundler/webpack/jsLoaders.js +12 -7
  17. package/lib/shared/bundler/webpack/loaderConfigs/i18nIdReplaceLoaderConfig.js +37 -88
  18. package/lib/shared/bundler/webpack/loaders/i18nIdReplaceLoader.js +67 -191
  19. package/lib/shared/bundler/webpack/pluginConfigs/configI18nNumericIndexPlugin.js +27 -99
  20. package/lib/shared/bundler/webpack/pluginConfigs/configI18nSplitPlugin.js +1 -4
  21. package/lib/shared/bundler/webpack/plugins.js +3 -20
  22. package/lib/shared/bundler/webpack/utils/i18n/collectAstKeys.js +96 -0
  23. package/lib/shared/bundler/webpack/utils/propertiesParser.js +1 -1
  24. package/lib/shared/server/mockApiHandler.js +0 -7
  25. package/npm-shrinkwrap.json +32 -8225
  26. package/package.json +5 -6
  27. package/lib/shared/bundler/webpack/common/hashUtils.js +0 -20
  28. package/lib/shared/bundler/webpack/custom_plugins/I18nNumericIndexPlugin/CLAUDE.md +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zohodesk/client_build_tool",
3
- "version": "0.0.10.exp.0.0.8",
3
+ "version": "0.0.10.exp.1.0.3",
4
4
  "description": "A CLI tool to build web applications and client libraries",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -31,10 +31,8 @@
31
31
  "@babel/core": "7.18.5",
32
32
  "@babel/preset-env": "7.18.2",
33
33
  "@babel/preset-react": "7.17.12",
34
- "@babel/preset-typescript": "7.23.2",
35
34
  "@zohodesk/client_packages_group": "1.0.2",
36
35
  "babel-loader": "9.1.2",
37
- "babel-plugin-module-resolver": "5.0.2",
38
36
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
39
37
  "babel-plugin-transform-remove-console": "6.9.4",
40
38
  "copy-webpack-plugin": "11.0.0",
@@ -52,13 +50,14 @@
52
50
  "postcss": "8.4.21",
53
51
  "postcss-loader": "7.0.2",
54
52
  "postcss-rtl": "2.0.0",
55
- "ts-loader": "8.2.0",
56
- "typescript": "5.2.2",
57
53
  "uglifycss": "0.0.29",
58
54
  "watcher": "1.2.0",
59
55
  "webpack": "5.79.0",
60
56
  "webpack-bundle-analyzer": "4.8.0",
61
57
  "webpack-cli": "4.10.0",
62
- "webpack-dev-middleware": "6.1.1"
58
+ "webpack-dev-middleware": "6.1.1",
59
+ "typescript": "5.2.2",
60
+ "ts-loader": "8.2.0",
61
+ "@babel/preset-typescript": "7.23.2"
63
62
  }
64
63
  }
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.generateShortHash = generateShortHash;
7
-
8
- var _crypto = require("crypto");
9
-
10
- function generateShortHash(str, length = 8) {
11
- if (typeof str !== 'string' || str.length === 0) {
12
- return '';
13
- }
14
-
15
- try {
16
- return (0, _crypto.createHash)('md5').update(str).digest('hex').slice(0, length);
17
- } catch (error) {
18
- return '';
19
- }
20
- }