Permalink
Browse files

Use grunt-pure-grids package

  • Loading branch information...
1 parent a5b2587 commit 3340b3371fd805f1e3f86933f040eb402aca3364 @ericf ericf committed Feb 18, 2014
Showing with 12 additions and 20 deletions.
  1. +11 −5 Gruntfile.js
  2. +1 −1 package.json
  3. +0 −14 tasks/grid_units.js
View
@@ -190,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 -------------------------------------------------
@@ -235,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/');
@@ -245,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',
View
@@ -18,6 +18,6 @@
"grunt-contrib-csslint": "~0.2.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-css-selectors": "~1.0.0",
- "rework-pure-grids": "~0.3.0"
+ "grunt-pure-grids": "0.0.1"
}
}
View
@@ -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.');
- });
-};

0 comments on commit 3340b33

Please sign in to comment.