mirror of
https://github.com/espocrm/espocrm.git
synced 2026-03-03 02:27:01 +00:00
do not include js sources
This commit is contained in:
@@ -141,6 +141,9 @@ module.exports = grunt => {
|
||||
'!build/tmp/client/custom/modules',
|
||||
'build/tmp/client/custom/modules/*',
|
||||
'!build/tmp/client/custom/modules/dummy.txt',
|
||||
'build/tmp/client/modules/crm/src',
|
||||
'build/tmp/client/lib/original',
|
||||
'build/tmp/client/modules/crm/lib/original',
|
||||
'build/tmp/client/lib/original/espo.js',
|
||||
'build/tmp/client/lib/original/espo-*.js',
|
||||
'!build/tmp/client/lib/original/espo-funnel-chart.js',
|
||||
@@ -186,7 +189,6 @@ module.exports = grunt => {
|
||||
expand: true,
|
||||
cwd: 'client',
|
||||
src: [
|
||||
'src/**',
|
||||
'res/**',
|
||||
'fonts/**',
|
||||
'modules/**',
|
||||
|
||||
13
js/diff.js
13
js/diff.js
@@ -571,13 +571,13 @@ class Diff
|
||||
const resolveItemDest = item =>
|
||||
item.dest || 'client/lib/' + item.src.split('/').pop();
|
||||
|
||||
const resolveBundledItemDest = item => {
|
||||
/*const resolveBundledItemDest = item => {
|
||||
if (item.amdId) {
|
||||
return `client/lib/original/${item.amdId}.js`;
|
||||
}
|
||||
|
||||
return 'client/lib/original/' + item.src.split('/').pop();
|
||||
};
|
||||
};*/
|
||||
|
||||
const resolveItemName = item => {
|
||||
if (item.name) {
|
||||
@@ -760,7 +760,7 @@ class Diff
|
||||
|
||||
changedBundledList.push(name);
|
||||
|
||||
if (item.files) {
|
||||
/*if (item.files) {
|
||||
item.files.forEach(item =>
|
||||
data.filesToCopy.push(resolveBundledItemDest(item))
|
||||
);
|
||||
@@ -772,7 +772,7 @@ class Diff
|
||||
return;
|
||||
}
|
||||
|
||||
data.filesToCopy.push(resolveBundledItemDest(item));
|
||||
data.filesToCopy.push(resolveBundledItemDest(item));*/
|
||||
});
|
||||
|
||||
bundledOldDataList.forEach(item => {
|
||||
@@ -788,10 +788,11 @@ class Diff
|
||||
}
|
||||
|
||||
if (!toRemove) {
|
||||
// noinspection UnnecessaryReturnStatementJS
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.files) {
|
||||
/*if (item.files) {
|
||||
item.files.forEach(item =>
|
||||
data.filesToDelete.push(resolveBundledItemDest(item))
|
||||
);
|
||||
@@ -803,7 +804,7 @@ class Diff
|
||||
return;
|
||||
}
|
||||
|
||||
data.filesToDelete.push(resolveBundledItemDest(item));
|
||||
data.filesToDelete.push(resolveBundledItemDest(item));*/
|
||||
});
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user