From cd282987aa3635aed7c702305371f717f23f9d94 Mon Sep 17 00:00:00 2001 From: kingcody Date: Wed, 15 Jul 2015 22:51:06 -0400 Subject: [PATCH] feat(build): switch to grunt-filerev yeoman/grunt-filerev is a newer, more maintained module (than grunt-rev) that provides file revisioning funtionality in a grunt task --- app/templates/Gruntfile.js | 18 ++++++++---------- app/templates/_package.json | 2 +- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/app/templates/Gruntfile.js b/app/templates/Gruntfile.js index b75cb07f8..aec7692ed 100644 --- a/app/templates/Gruntfile.js +++ b/app/templates/Gruntfile.js @@ -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/*' + ] } }, @@ -969,7 +967,7 @@ module.exports = function (grunt) { 'cdnify', 'cssmin', 'uglify', - 'rev', + 'filerev', 'usemin' ]); diff --git a/app/templates/_package.json b/app/templates/_package.json index a8d021424..7e7bec125 100644 --- a/app/templates/_package.json +++ b/app/templates/_package.json @@ -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",