Skip to content

Commit 6c74b1a

Browse files
committed
cleanUpClean
1 parent cdc7b22 commit 6c74b1a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,12 @@ 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');
291-
});
288+
for (var filePattern of ['inter-*', '*min.js*']) {
289+
for (var file of grunt.file.expand(filePattern)) {
290+
grunt.file.delete(file);
291+
grunt.log.writeln('File ' + file + ' removed');
292+
}
293+
}
292294
});
293295

294296
grunt.task.registerTask('default', ['web-animations', 'web-animations-next', 'web-animations-next-lite', 'gjslint']);

0 commit comments

Comments
 (0)