diff --git a/Gruntfile.js b/Gruntfile.js
index dc851b7..ad19f4a 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -1,5 +1,3 @@
-var path = require('path');
-
module.exports = function (grunt) {
// -- Config -------------------------------------------------------------------
@@ -9,6 +7,18 @@ grunt.initConfig({
pkg : grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json'),
+ // -- bower.json Config ---------------------------------------------------------
+
+ bower_json: {
+ release: {
+ values: {
+ main: 'pure.css'
+ },
+
+ dest: 'build/'
+ }
+ },
+
// -- Clean Config ---------------------------------------------------------
clean: {
@@ -25,6 +35,11 @@ grunt.initConfig({
dest : 'build/',
expand : true,
flatten: true
+ },
+
+ release: {
+ src : '{LICENSE.md,README.md,HISTORY.md}',
+ dest: 'build/'
}
},
@@ -115,7 +130,7 @@ grunt.initConfig({
cssmin: {
options: {
- // report: 'gzip'
+ noAdvanced: true
},
files: {
@@ -130,17 +145,13 @@ grunt.initConfig({
compress: {
release: {
options: {
- archive: 'release/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.zip'
+ archive: 'release/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz'
},
expand : true,
flatten: true,
- dest : '<%= pkg.name %>/<%= pkg.version %>/',
-
- src: [
- '{bower.json,LICENSE.md,README.md,HISTORY.md}',
- 'build/*.css'
- ]
+ src : 'build/*',
+ dest : '<%= pkg.name %>/<%= pkg.version %>/'
}
},
@@ -167,7 +178,7 @@ grunt.initConfig({
banner: [
'/*!',
'Pure v<%= pkg.version %>',
- 'Copyright 2013 Yahoo! Inc. All rights reserved.',
+ 'Copyright 2014 Yahoo! Inc. All rights reserved.',
'Licensed under the BSD License.',
'https://github.com/yui/pure/blob/master/LICENSE.md',
'*/\n'
@@ -179,11 +190,16 @@ grunt.initConfig({
}
},
- // -- Grid Units Config ----------------------------------------------------
+ // -- Pure Grids Units Config ----------------------------------------------
- grid_units: {
- dest : 'build/grids-units.css',
- units: [5, 24]
+ pure_grids: {
+ default_units: {
+ dest: 'build/grids-units.css',
+
+ options: {
+ units: [5, 24]
+ }
+ }
},
// -- CSS Selectors Config -------------------------------------------------
@@ -224,6 +240,7 @@ grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-css-selectors');
+grunt.loadNpmTasks('grunt-pure-grids');
// Local tasks.
grunt.loadTasks('tasks/');
@@ -234,7 +251,7 @@ grunt.registerTask('test', ['csslint']);
grunt.registerTask('build', [
'clean:build',
'copy:build',
- 'grid_units',
+ 'pure_grids',
'concat:build',
'clean:build_res',
'css_selectors:base',
@@ -249,6 +266,8 @@ grunt.registerTask('watch', ['default', 'observe']);
grunt.registerTask('release', [
'default',
'clean:release',
+ 'copy:release',
+ 'bower_json:release',
'compress:release'
]);
diff --git a/HISTORY.md b/HISTORY.md
index 1ff3533..f4290fd 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -4,6 +4,38 @@ Pure Change History
NEXT
----
+* Switched cell padding in Tables from `px` to `em` units, and also increased
+ the amount of padding to `padding: 0.5em 1em`.
+
+
+0.4.2 (2014-02-13)
+------------------
+
+* Added `main` to Pure's `bower.json` file to allow easier integration with
+ build processes and tooling. ([#286][] @stevenvachon)
+
+### Forms
+
+* Improved how `` elements look in Chrome by fixing
+ paddings. ([#283][] @jpetto)
+
+* Removed `font-size` rules from ``, `