Skip to content

Commit

Permalink
ENGCOM-6344: #25739: fixed issue "grunt clean does not clean generate…
Browse files Browse the repository at this point in the history
…d folder" #25765
  • Loading branch information
VladimirZaets authored Dec 8, 2019
2 parents de759c7 + 5186bf7 commit 4645b50
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions dev/tools/grunt/configs/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ var cleanOptions = {
"dot": true,
"src": [
"<%= path.tmp %>/cache/**/*",
"<%= path.tmp %>/generation/**/*",
"<%= path.tmp %>/log/**/*",
"<%= path.tmp %>/maps/**/*",
"<%= path.tmp %>/page_cache/**/*",
Expand Down Expand Up @@ -89,7 +88,6 @@ var cleanOptions = {
"dot": true,
"src": [
"<%= path.tmp %>/cache/**/*",
"<%= path.tmp %>/generation/**/*",
"<%= path.tmp %>/view_preprocessed/html/**/*",
"<%= path.tmp %>/page_cache/**/*"
]
Expand All @@ -110,6 +108,19 @@ var cleanOptions = {
]
}
]
},
"generation": {
"force": true,
"files": [
{
"force": true,
"dot": true,
"src": [
"<%= path.generation %>code/**/*",
"<%= path.generation %>metadata/**/*"
]
}
]
}
};

Expand Down
3 changes: 2 additions & 1 deletion dev/tools/grunt/configs/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ module.exports = {
whitelist: 'dev/tests/static/testsuite/Magento/Test/Js/_files/whitelist/',
blacklist: 'dev/tests/static/testsuite/Magento/Test/Js/_files/blacklist/',
tmp: 'validation-files.txt'
}
},
generation: 'generated/'
};

0 comments on commit 4645b50

Please sign in to comment.