-
Notifications
You must be signed in to change notification settings - Fork 2
/
SampleGruntfileUsage.js
63 lines (58 loc) · 1.68 KB
/
SampleGruntfileUsage.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
'use strict';
var respokeStyle = require('respoke-style');
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.initConfig({
jade: {
myFile: {
options: {
data: {
debug: false
}
},
files: {
// 'to path': 'from path'
"build/my-jade-file.html": ["my-jade-file.jade"]
}
}
},
sass: {
dist: {
options: {
// be sure to include the sass-bourbon paths
loadPath: respokeStyle.includeStylePaths()
},
files: {
// 'to path': 'from path'
'assets/styles/base.css': respokeStyle.paths.styles + '/base.scss'
}
},
myStyles: {
options: {
loadPath: respokeStyle.includeStylePaths()
},
files: {
'myLocalStylesheet.css': 'path/to/localStylesheet.scss'
}
}
},
copy: {
dist: {
files: [{
expand: true,
src: [respokeStyle.paths.assets],
dest: 'path/to/local/project/assets/',
filter: 'isFile'
}]
}
}
});
grunt.registerTask('default', [
'jade:myFile',
'sass:dist',
'sass:myStyles',
'copy:dist'
]);
};