Skip to content

Commit

Permalink
feat(build): switch to grunt-filerev
Browse files Browse the repository at this point in the history
yeoman/grunt-filerev is a newer, more maintained module (than grunt-rev)
that provides file revisioning funtionality in a grunt task
  • Loading branch information
kingcody committed Jul 16, 2015
1 parent 02c656e commit cd28298
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions app/templates/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,16 +282,14 @@ module.exports = function (grunt) {
},

// Renames files for browser caching purposes
rev: {
filerev: {
dist: {
files: {
src: [
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js',
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css',
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%%= yeoman.dist %>/client/assets/fonts/*'
]
}
src: [
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.js',
'<%%= yeoman.dist %>/client/!(bower_components)/{,*/}*.css',
'<%%= yeoman.dist %>/client/assets/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
'<%%= yeoman.dist %>/client/assets/fonts/*'
]
}
},

Expand Down Expand Up @@ -969,7 +967,7 @@ module.exports = function (grunt) {
'cdnify',
'cssmin',
'uglify',
'rev',
'filerev',
'usemin'
]);

Expand Down
2 changes: 1 addition & 1 deletion app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"grunt-jscs": "~0.7.1",
"grunt-newer": "~0.7.0",
"grunt-ng-annotate": "^0.2.3",
"grunt-rev": "~0.1.0",
"grunt-filerev": "^2.3.1",
"grunt-svgmin": "~0.4.0",
"grunt-usemin": "~2.1.1",
"grunt-env": "~0.4.1",
Expand Down

0 comments on commit cd28298

Please sign in to comment.