1
mirror of https://github.com/pure-css/pure synced 2024-12-25 05:23:43 +01:00

Checkin Normalize.css' bower.json so its version can be determined

This allows the Normalize.css version number to be determined
programmatically to be used in the license banner.
This commit is contained in:
Eric Ferraiuolo 2013-05-23 14:44:48 +01:00
parent 7ddd0dc7ce
commit db11feeff7
2 changed files with 29 additions and 5 deletions

View File

@ -6,7 +6,8 @@ module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
pkg : grunt.file.readJSON('package.json'),
normalize: grunt.file.readJSON('src/base/bower.json'),
// -- Constants ------------------------------------------------------------
@ -18,7 +19,7 @@ grunt.initConfig({
build : ['build/'],
build_res: ['build/*-r.css'],
release : ['release/<%= pkg.version %>/'],
base : ['src/base/css/', 'src/base/LICENSE.md']
base : ['src/base/css/', 'src/base/bower.json', 'src/base/LICENSE.md']
},
// -- Copy Config ----------------------------------------------------------
@ -41,7 +42,7 @@ grunt.initConfig({
expand : true,
flatten: true,
cwd : 'bower_components/normalize-css/',
src : '{LICENSE.md,normalize.css}',
src : '{bower.json,LICENSE.md,normalize.css}',
dest : 'src/base/',
rename: function (dest, file) {
@ -170,7 +171,7 @@ grunt.initConfig({
options: {
banner: [
'/*!',
'normalize.css v1.1.1 | MIT License | git.io/normalize',
'normalize.css v<%= normalize.version %> | MIT License | git.io/normalize',
'Copyright (c) Nicolas Gallagher and Jonathan Neal',
'*/\n'
].join('\n')
@ -185,7 +186,7 @@ grunt.initConfig({
options: {
banner: [
'/*!',
'Pure <%= pkg.version %>',
'Pure v<%= pkg.version %>',
'Copyright 2013 Yahoo! Inc. All rights reserved.',
'Licensed under the BSD License.',
'https://github.com/yui/pure/blob/master/LICENSE.md',

23
src/base/bower.json Normal file
View File

@ -0,0 +1,23 @@
{
"name": "normalize-css",
"version": "1.1.2",
"main": "normalize.css",
"author": {
"name": "Nicolas Gallagher"
},
"ignore": [
"CHANGELOG.md",
"CONTRIBUTING.md",
"component.json",
"test.html"
],
"gitHead": "223bec90d51f76d81a58a6ba8c0133b87d0f4ffc",
"readme": "# normalize.css v1\n\nNormalize.css is a customisable CSS file that makes browsers render all\nelements more consistently and in line with modern standards. We researched the\ndifferences between default browser styles in order to precisely target only\nthe styles that need normalizing.\n\n[Check out the demo](http://necolas.github.io/normalize.css/1.1.0/test.html)\n\n## What does it do?\n\n* Preserves useful defaults, unlike many CSS resets.\n* Normalizes styles for a wide range of elements.\n* Corrects bugs and common browser inconsistencies.\n* Improves usability with subtle improvements.\n* Explains what code does using detailed comments.\n\n## How to use it\n\nNormalize.css is intended to be used as an alternative to CSS resets.\n\nIt's suggested that you read the `normalize.css` file and consider customising\nit to meet your needs. Alternatively, include the file in your project and\noverride the defaults later in your CSS.\n\n## Browser support\n\n* Google Chrome\n* Mozilla Firefox 3+\n* Apple Safari 4+\n* Opera 10+\n* Internet Explorer 6+\n\n## Contribute\n\nPlease read the CONTRIBUTING.md\n\n## Acknowledgements\n\nNormalize.css is a project by [Nicolas Gallagher](https://github.com/necolas),\nco-created with [Jonathan Neal](https://github.com/jonathantneal).\n",
"readmeFilename": "README.md",
"_id": "normalize-css@1.1.2",
"description": "Normalize.css is a customisable CSS file that makes browsers render all elements more consistently and in line with modern standards. We researched the differences between default browser styles in order to precisely target only the styles that need normalizing.",
"repository": {
"type": "git",
"url": "git://github.com/necolas/normalize.css.git"
}
}