mirror of
https://github.com/pure-css/pure.git
synced 2024-11-07 21:34:24 +00:00
remove grid_units grunt task, add pure_grids task
This commit is contained in:
parent
d1ab35aaff
commit
e91b2bef4c
23
Gruntfile.js
23
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',
|
||||
|
@ -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.');
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue
Block a user