@zohodesk/client_build_tool 0.0.11-exp.17 → 0.0.11-exp.18
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 +0 -28
- package/README.md +0 -28
- package/lib/schemas/defaultConfigValues.js +5 -5
- package/lib/schemas/defaultConfigValuesOnly.js +4 -4
- package/lib/shared/babel/getBabelPlugin.js +4 -3
- package/lib/shared/babel/runBabelForTsFile.js +1 -1
- package/lib/shared/bundler/webpack/pluginConfigs/configCopyPublicFolders.js +3 -2
- package/lib/shared/postcss/custom_postcss_plugins/VariableModificationPlugin/index.js +1 -1
- package/lib/shared/server/mockApiHandler.js +0 -7
- package/lib/shared/server/urlConcat.js +3 -4
- package/npm-shrinkwrap.json +32 -8225
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,6 @@
|
|
|
1
1
|
# Changelog and Release Notes
|
|
2
2
|
|
|
3
|
-
- remove babel-plugin-module-resolver dependencies
|
|
4
3
|
|
|
5
|
-
**Adjustments:-**
|
|
6
|
-
- Public Folder configuration is separated for development and production
|
|
7
|
-
|
|
8
|
-
**Bug Fix:-**
|
|
9
|
-
- Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
|
|
10
|
-
- Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
|
|
11
|
-
- Fixed the issue where a space in the variable name causes it to return an undefined value.
|
|
12
|
-
- Fixed the URL path generation issue that occurred while using context in the development setup.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
# v0.0.11
|
|
17
|
-
|
|
18
|
-
# v0.0.10 (12-05-2025)
|
|
19
|
-
**Feature:-**
|
|
20
|
-
- `alias` support for `build:es` and `build:lib`
|
|
21
|
-
- Add babel-plugin-module-resolver dependencies
|
|
22
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
23
|
-
|
|
24
|
-
**Bug Fix:-**
|
|
25
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
26
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
27
|
-
|
|
28
|
-
**Change:-**
|
|
29
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
30
|
-
|
|
31
|
-
## v0.0.9
|
|
32
4
|
|
|
33
5
|
**Feature:-**
|
|
34
6
|
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
package/README.md
CHANGED
|
@@ -100,35 +100,7 @@ fixes :-
|
|
|
100
100
|
|
|
101
101
|
# Changelog and Release Notes
|
|
102
102
|
|
|
103
|
-
- remove babel-plugin-module-resolver dependencies
|
|
104
103
|
|
|
105
|
-
**Adjustments:-**
|
|
106
|
-
- Public Folder configuration is separated for development and production
|
|
107
|
-
|
|
108
|
-
**Bug Fix:-**
|
|
109
|
-
- Fixed the issue where the build log was not visible when `stats (bundle integrity)` was enabled. The problem was resolved by adding an error check in the `bundleIntegrity plugin`.
|
|
110
|
-
- Removed the babel-plugin-module-resolver dependency to resolve the alias resolution issue in the application.
|
|
111
|
-
- Fixed the issue where a space in the variable name causes it to return an undefined value.
|
|
112
|
-
- Fixed the URL path generation issue that occurred while using context in the development setup.
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
# v0.0.11
|
|
117
|
-
|
|
118
|
-
# v0.0.10 (12-05-2025)
|
|
119
|
-
**Feature:-**
|
|
120
|
-
- `alias` support for `build:es` and `build:lib`
|
|
121
|
-
- Add babel-plugin-module-resolver dependencies
|
|
122
|
-
- Modify getBabelPlugin to include module resolver with aliases
|
|
123
|
-
|
|
124
|
-
**Bug Fix:-**
|
|
125
|
-
- Enhance runBabelForTSFile to handle both .tsx and .ts file extensions
|
|
126
|
-
- Update mockApiHandler to ensure mock function is called correctly
|
|
127
|
-
|
|
128
|
-
**Change:-**
|
|
129
|
-
- Refactor defaultConfigValues.js to include cli options for enableRTLSplit
|
|
130
|
-
|
|
131
|
-
## v0.0.9
|
|
132
104
|
|
|
133
105
|
**Feature:-**
|
|
134
106
|
- externals was added to Prevent bundling of certain imported packages and retrieve these external dependencies at runtime.
|
|
@@ -115,10 +115,7 @@ var _default = {
|
|
|
115
115
|
// Name Suggestions `customizations` this will be easier then `plugin` to understand for developers
|
|
116
116
|
plugins: {
|
|
117
117
|
rtlSplit: {
|
|
118
|
-
enableRTLSplit:
|
|
119
|
-
value: false,
|
|
120
|
-
cli: 'enable_rtl_split'
|
|
121
|
-
},
|
|
118
|
+
enableRTLSplit: false,
|
|
122
119
|
templateLabel: '{{--dir}}',
|
|
123
120
|
disableMinifySelector: false,
|
|
124
121
|
dirVarName: 'document.dir'
|
|
@@ -176,7 +173,10 @@ var _default = {
|
|
|
176
173
|
jsResource: null,
|
|
177
174
|
propertiesFolder: null
|
|
178
175
|
},
|
|
179
|
-
publicFolders:
|
|
176
|
+
publicFolders: {
|
|
177
|
+
dev: ['...'],
|
|
178
|
+
prod: ['...']
|
|
179
|
+
},
|
|
180
180
|
app: {
|
|
181
181
|
entryFile: {
|
|
182
182
|
value: 'src/index.js',
|
|
@@ -96,10 +96,10 @@ var _default = {
|
|
|
96
96
|
jsResource: null,
|
|
97
97
|
propertiesFolder: null
|
|
98
98
|
},
|
|
99
|
-
publicFolders: {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
},
|
|
99
|
+
publicFolders: ['...', {
|
|
100
|
+
source: './deskapp/tp/',
|
|
101
|
+
target: './tp/'
|
|
102
|
+
}],
|
|
103
103
|
app: {
|
|
104
104
|
entryFile: 'src/index.js',
|
|
105
105
|
tpFolder: null,
|
|
@@ -19,8 +19,7 @@ const babelPluginOrder = ['removeAttribute', 'removePropTypes', 'devConsoleExclu
|
|
|
19
19
|
function getBabelPlugin(options) {
|
|
20
20
|
const {
|
|
21
21
|
mode
|
|
22
|
-
} = options;
|
|
23
|
-
|
|
22
|
+
} = options;
|
|
24
23
|
let customPlugins = [];
|
|
25
24
|
const {
|
|
26
25
|
babelCustomizations
|
|
@@ -33,4 +32,6 @@ function getBabelPlugin(options) {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
return customPlugins.filter(Boolean);
|
|
36
|
-
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
;
|
|
@@ -25,6 +25,6 @@ function runBabelForTSFile({
|
|
|
25
25
|
// const jsSourceCode = readFileSync(filename).toString();
|
|
26
26
|
const babelConfig = (0, _babelWebConfig.babelWebConfig)(options, mode);
|
|
27
27
|
const result = (0, _core.transformFileSync)(filename, babelConfig);
|
|
28
|
-
(0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js')
|
|
28
|
+
(0, _copyFile.writeFile)(outputFile.replace('.tsx', '.js'), result.code);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -43,9 +43,10 @@ function folderPatterns(publicFolders) {
|
|
|
43
43
|
|
|
44
44
|
function configCopyPublicFolders(options) {
|
|
45
45
|
let {
|
|
46
|
-
publicFolders
|
|
46
|
+
publicFolders,
|
|
47
|
+
mode = 'dev'
|
|
47
48
|
} = options;
|
|
48
|
-
publicFolders = (0, _updateArrayWithDefault.updateArrayWithDefault)(publicFolders, defaultPublicFolders);
|
|
49
|
+
publicFolders = (0, _updateArrayWithDefault.updateArrayWithDefault)(publicFolders[mode], defaultPublicFolders);
|
|
49
50
|
|
|
50
51
|
if (publicFolders.length === 0) {
|
|
51
52
|
return null;
|
|
@@ -259,7 +259,7 @@ var _default = ({
|
|
|
259
259
|
if (range) {
|
|
260
260
|
// console.log('multiple :', decl.value)
|
|
261
261
|
let newVal = '';
|
|
262
|
-
decl.value.split(' ').
|
|
262
|
+
decl.value.split(' ').forEach(singleVal => {
|
|
263
263
|
newVal += `${singleConvertor(singleVal, settings.replacements.px, {
|
|
264
264
|
decl,
|
|
265
265
|
filename,
|
|
@@ -44,13 +44,6 @@ function handleMockApi(mockEntryFile, app) {
|
|
|
44
44
|
const entryFilePath = (0, _constants.joinWithAppPath)(mockEntryFile); // eslint-disable-next-line no-use-before-define
|
|
45
45
|
|
|
46
46
|
const mockFunc = safeRequire(entryFilePath);
|
|
47
|
-
|
|
48
|
-
if (typeof mockFunc === 'function') {
|
|
49
|
-
// eslint-disable-next-line no-use-before-define
|
|
50
|
-
mockFunc(app);
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
47
|
mockFunc?.mockApi?.(app);
|
|
55
48
|
} // function handleMockApi(params) {
|
|
56
49
|
// }
|
|
@@ -17,11 +17,10 @@ function urlConcat(url, path) {
|
|
|
17
17
|
const slashRemovedPath = removeFrontSlash(path);
|
|
18
18
|
|
|
19
19
|
if (slashRemovedUrl === '') {
|
|
20
|
-
return
|
|
21
|
-
}
|
|
20
|
+
return path;
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
return `${[slashRemovedUrl, slashRemovedPath].filter(a => a).join('/')}/`;
|
|
23
|
+
return `${slashRemovedUrl}/${slashRemovedPath}`;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
function removeLastSlash(url) {
|