From f9bbf6f6942670972ac75ab00f700689c503f3cb Mon Sep 17 00:00:00 2001 From: Eric Ferraiuolo Date: Mon, 12 Aug 2013 10:34:23 -0400 Subject: [PATCH] Use bower.json to get current Normalize.css version number --- Gruntfile.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 93da278..e761cec 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -6,7 +6,8 @@ module.exports = function (grunt) { grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), + pkg : grunt.file.readJSON('package.json'), + bower: grunt.file.readJSON('bower.json'), // -- Clean Config --------------------------------------------------------- @@ -157,7 +158,7 @@ grunt.initConfig({ options: { banner: [ '/*!', - 'normalize.css v1.1.2 | MIT License | git.io/normalize', + 'normalize.css v<%= bower.devDependencies["normalize-css"] %> | MIT License | git.io/normalize', 'Copyright (c) Nicolas Gallagher and Jonathan Neal', '*/\n' ].join('\n') @@ -266,7 +267,7 @@ grunt.registerTask('suppress', function () { }); }); -// -- Bower Task --------------------------------------------------------------- +// -- Bower Tasks -------------------------------------------------------------- grunt.registerTask('bower-install', 'Installs Bower dependencies.', function () { var bower = require('bower'),