Use bower.json to get current Normalize.css version number

This commit is contained in:
Eric Ferraiuolo 2013-08-12 10:34:23 -04:00
parent f496042888
commit f9bbf6f694

View File

@ -7,6 +7,7 @@ module.exports = function (grunt) {
grunt.initConfig({ grunt.initConfig({
pkg : grunt.file.readJSON('package.json'), pkg : grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json'),
// -- Clean Config --------------------------------------------------------- // -- Clean Config ---------------------------------------------------------
@ -157,7 +158,7 @@ grunt.initConfig({
options: { options: {
banner: [ 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', 'Copyright (c) Nicolas Gallagher and Jonathan Neal',
'*/\n' '*/\n'
].join('\n') ].join('\n')
@ -266,7 +267,7 @@ grunt.registerTask('suppress', function () {
}); });
}); });
// -- Bower Task --------------------------------------------------------------- // -- Bower Tasks --------------------------------------------------------------
grunt.registerTask('bower-install', 'Installs Bower dependencies.', function () { grunt.registerTask('bower-install', 'Installs Bower dependencies.', function () {
var bower = require('bower'), var bower = require('bower'),