mirror of
https://github.com/pure-css/pure.git
synced 2024-11-24 10:44:21 +00:00
15 lines
482 B
JavaScript
15 lines
482 B
JavaScript
|
'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.');
|
||
|
});
|
||
|
};
|