Skip to content

Commit

Permalink
Fix exclude of node_modules and vendor not working
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMayerhofer committed Mar 12, 2019
1 parent a1a0aba commit 3fc8280
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module.exports = function(grunt) {
files_std: [
// Standard file match
'**/*.php',
'!node_modules/**',
'!vendor/**',
'!./node_modules/**/*.php',
'!./vendor/**/*.php',
],
files: '<%= paths.php.files_std %>', // Dynamic file match
},
Expand All @@ -38,7 +38,6 @@ module.exports = function(grunt) {
'<%= paths.js.files %>',
'<%= paths.sass.files %>',
'<%= paths.json.files %>',
'!node_modules/**',
],
files: '<%= paths.prettier.files_std %>', // Dynamic file match
},
Expand Down Expand Up @@ -89,11 +88,12 @@ module.exports = function(grunt) {
files_std: [
// Standard file match
'<%= paths.json.src %>/**/*.json',
'!node_modules/**',
'!vendor/**',
'.eslintrc',
'.prettierrc',
'.stylelintrc.json',
'!./package-lock.json',
'!./node_modules/**/*.json',
'!./vendor/**/*.json',
],
files: '<%= paths.json.files_std %>', // Dynamic file match
},
Expand All @@ -104,8 +104,8 @@ module.exports = function(grunt) {
files_std: [
// Standard file match
'<%= paths.html.src %>/**/*.{html,htm}',
'!node_modules/**',
'!vendor/**',
'!./node_modules/**/*.{html,htm}',
'!./vendor/**/*.{html,htm}',
],
files: '<%= paths.html.files_std %>', // Dynamic file match
},
Expand Down

0 comments on commit 3fc8280

Please sign in to comment.