-
Notifications
You must be signed in to change notification settings - Fork 11
/
Gruntfile.js
65 lines (61 loc) · 1.08 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
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
exec: {
phpcs_plugin: {
cmd: 'phpcs --standard=WordPress-Core markdown.php --report-width=200 -s'
},
phpcs_src: {
cmd: 'phpcs --standard=PSR2 src --report-width=200 -s'
}
},
compass: {
options: {
basePath: 'sass',
httpPath: '/',
cssDir: '../css',
sassDir: '.',
imagesDir: '../images',
javascriptsDir: '../js',
outputStyle: 'expanded'
},
prod: {
options: {
noLineComments: true,
force: true
}
},
dev: {
options: {
noLineComments: false,
force: true,
trace: true
}
}
},
watch: {
sass_dev: {
files: ['sass/*.scss'],
tasks: ['compass:dev']
},
livereload: {
options: {
livereload: true
},
files: ['css/*.css']
}
}
});
grunt.registerTask('phpcs', [
'exec:phpcs_plugin',
'exec:phpcs_src'
]);
grunt.registerTask('build', [
'compass:prod'
]);
grunt.registerTask('debug', [
'compass:dev',
'watch'
]);
grunt.registerTask('default', ['build']);
};