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

 - Merge Pull Request #25765 from andrewbess/magento2:issue-25739
 - Merged commits:
   1. b9ef877
  • Loading branch information
magento-engcom-team committed Nov 27, 2019
2 parents e3e85a1 + b9ef877 commit 5186bf7
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 5186bf7

Please sign in to comment.