-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
54 lines (52 loc) · 1.73 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
module.exports = function(grunt) {
grunt.initConfig({
'copy': {
normalize: {
src: 'css/normalize.css/normalize.css',
dest: 'scss/normalize.scss'
}
},
'sass': {
development: {
options: {
style: 'expanded'
},
files: {
'css/vertebral.css': 'scss/vertebral.scss',
'css/vertebral-ios.css': 'scss/themes/ios.scss',
'css/vertebral-material.css': 'scss/themes/material.scss',
'css/vertebral-wp.css': 'scss/themes/wp.scss'
}
},
production: {
options: {
sourcemap: 'none',
style: 'compressed'
},
files: {
'css/vertebral.min.css': 'scss/vertebral.scss',
'css/vertebral-ios.min.css': 'scss/themes/ios.scss',
'css/vertebral-material.min.css': 'scss/themes/material.scss',
'css/vertebral-wp.min.css': 'scss/themes/wp.scss'
}
}
},
'watch': {
options: {
livereload: false,
},
sass: {
files: ['scss/**/*.scss'],
tasks: ['compile'],
options: {
nospawn: true
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('compile', ['copy:normalize', 'sass']);
grunt.registerTask('default', ['compile', 'watch']);
};