-
Notifications
You must be signed in to change notification settings - Fork 29
/
gruntfile.js
70 lines (68 loc) · 1.94 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = function(grunt) {
require('jit-grunt')(grunt);
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.initConfig({
sass: {
development: {
options: { // Target options
style: 'expanded',
sourcemap: 'none'
},
files: {
"dist/paradeiser.css": "dev/paradeiser.scss" // destination file and source file
}
}
},
postcss: {
options: {
processors: [
require('autoprefixer-core')({browsers: ['last 5 versions', 'ie 8', 'ie 9']})
]
},
dist: {
src: ['dist/paradeiser.css'],
dest: 'dist/paradeiser.css'
}
},
cssmin: {
options: {
shorthandCompacting: false,
roundingPrecision: -1
},
target: {
files: {
'dist/min/paradeiser.min.css': ['dist/paradeiser.css']
}
}
},
csscomb:
{
options: {
// Task-specific options go here.
},
your_target: {
files: {
'dev/paradeiser.scss': ['dev/paradeiser.scss'],
}
}
},
watch: {
styles: {
files: ['dev/*.scss'], // which files to watch
tasks: ['sass', 'postcss'],
options: {
nospawn: true,
livereload: true
}
}
},
bump: {
options: {
files: ['package.json', 'bower.json'],
commitFiles: ['-a'],
pushTo: 'origin'
}
}
});
grunt.registerTask('default', ['sass', 'postcss', 'cssmin']);
};