diff --git a/Gruntfile.js b/Gruntfile.js index dc851b7..5782b55 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -181,9 +181,22 @@ grunt.initConfig({ // -- Grid Units Config ---------------------------------------------------- - grid_units: { - dest : 'build/grids-units.css', - units: [5, 24] + pure_grids: { + main: { + dest : 'build/grids-units.css', + units: [5, 24] + }, + responsive: { + dest: 'build/grids-responsive.css', + options: { + mediaQueries: { + sm : 'screen and (min-width: 35.5em)', // 568px + md: 'screen and (min-width: 48em)', // 768px + lg: 'screen and (min-width: 64em)', // 1024px + xl : 'screen and (min-width: 75em)' // 1200px + } + } + } }, // -- CSS Selectors Config ------------------------------------------------- @@ -224,6 +237,8 @@ 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 +249,7 @@ grunt.registerTask('test', ['csslint']); grunt.registerTask('build', [ 'clean:build', 'copy:build', - 'grid_units', + 'pure_grids', 'concat:build', 'clean:build_res', 'css_selectors:base', diff --git a/tasks/grid_units.js b/tasks/grid_units.js deleted file mode 100644 index 0b8d45c..0000000 --- a/tasks/grid_units.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var rework = require('rework'), - pureGrids = require('rework-pure-grids'); - -module.exports = function (grunt) { - grunt.registerTask('grid_units', 'Generates grid units.', function (target) { - var config = grunt.config.get(this.name), - css = rework('').use(pureGrids.units(config.units)); - - grunt.file.write(config.dest, css.toString({indent: ' '})); - grunt.log.writeln('File "' + config.dest + '" created.'); - }); -};