Skip to content

Commit 4645b50

Browse files
ENGCOM-6344: #25739: fixed issue "grunt clean does not clean generated folder" #25765
2 parents de759c7 + 5186bf7 commit 4645b50

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

dev/tools/grunt/configs/clean.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ var cleanOptions = {
3838
"dot": true,
3939
"src": [
4040
"<%= path.tmp %>/cache/**/*",
41-
"<%= path.tmp %>/generation/**/*",
4241
"<%= path.tmp %>/log/**/*",
4342
"<%= path.tmp %>/maps/**/*",
4443
"<%= path.tmp %>/page_cache/**/*",
@@ -89,7 +88,6 @@ var cleanOptions = {
8988
"dot": true,
9089
"src": [
9190
"<%= path.tmp %>/cache/**/*",
92-
"<%= path.tmp %>/generation/**/*",
9391
"<%= path.tmp %>/view_preprocessed/html/**/*",
9492
"<%= path.tmp %>/page_cache/**/*"
9593
]
@@ -110,6 +108,19 @@ var cleanOptions = {
110108
]
111109
}
112110
]
111+
},
112+
"generation": {
113+
"force": true,
114+
"files": [
115+
{
116+
"force": true,
117+
"dot": true,
118+
"src": [
119+
"<%= path.generation %>code/**/*",
120+
"<%= path.generation %>metadata/**/*"
121+
]
122+
}
123+
]
113124
}
114125
};
115126

dev/tools/grunt/configs/path.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ module.exports = {
3232
whitelist: 'dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/',
3333
blacklist: 'dev/tests/static/testsuite/Magento/Test/Js/_files/blacklist/',
3434
tmp: 'validation-files.txt'
35-
}
35+
},
36+
generation: 'generated/'
3637
};

0 commit comments

Comments
 (0)