Skip to content

Commit fc3b49b

Browse files
committed
Merge pull request #445 from alancutter/cleanUpClean
Make grunt clean not delete files checked into the repository
2 parents 6684423 + d6d1ff5 commit fc3b49b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ node_modules
44
!node_modules/mocha/LICENCE
55
!node_modules/chai/chai.js
66
!node_modules/chai-LICENCE
7-
web-animations-*.min.js
8-
web-animations-*.min.js.map
9-
web-animations.min.js
10-
web-animations.min.js.map
7+
118
inter-*
9+
*.min.js*
10+
1211
*~
1312
sauce_connect.log
1413
test.html

Gruntfile.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,11 @@ module.exports = function(grunt) {
285285
});
286286

287287
grunt.task.registerTask('clean', 'Remove files generated by grunt', function() {
288-
grunt.file.expand('web-animations*').concat(grunt.file.expand('test/runner-*.html')).concat(grunt.file.expand('inter-*')).forEach(function(file) {
289-
grunt.file.delete(file);
290-
grunt.log.writeln('File ' + file + ' removed');
288+
['inter-*', '*min.js*'].forEach(function(filePattern) {
289+
grunt.file.expand(filePattern).forEach(function(file) {
290+
grunt.file.delete(file);
291+
grunt.log.writeln('File ' + file + ' removed');
292+
});
291293
});
292294
});
293295

0 commit comments

Comments
 (0)