forked from pure-css/pure-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
56 lines (45 loc) · 1.46 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
var path = require('path');
module.exports = function (grunt) {
grunt.initConfig({
broccoli_build: {
build: {
dest: 'build/'
}
},
clean: {
build: 'build/',
tmp : 'tmp/'
},
pure_grids: {
main: {
dest: 'public/css/main-grid.css',
options: {
selectorPrefix: '.u-',
mediaQueries: {
sm: 'screen and (min-width: 35.5em)', // 568px
md: 'screen and (min-width: 48em)', // 768px
lg: 'screen and (min-width: 58em)', // 928px
xl: 'screen and (min-width: 75em)' // 1200px
}
}
},
gallery: {
dest: 'public/css/layouts/gallery-grid.css',
options: {
selectorPrefix: '.u-',
units : 6,
mediaQueries: {
med : 'screen and (min-width: 30em)',
lrg : 'screen and (min-width: 48em)'
}
}
}
}
});
// npm tasks.
grunt.loadNpmTasks('grunt-broccoli-build');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-pure-grids');
grunt.registerTask('default', ['clean', 'broccoli_build', 'clean:tmp']);
};