-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
58 lines (52 loc) · 1.4 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
/* jshint node: true */
/* global module: true */
module.exports = function(grunt) {
// load plugins 'just-in-time'
require('jit-grunt')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bowercopy: {
options: {
// Bower components folder will be removed afterwards
clean: true
},
open_sans_fontface: {
options: {
destPrefix: 'assets'
},
files: {
// Note: when copying folders, the destination (key) will be used as the location for the folder
'open-sans/fonts/Italic': 'open-sans-fontface/fonts/Italic',
'open-sans/fonts/Light': 'open-sans-fontface/fonts/Light',
'open-sans/fonts/LightItalic': 'open-sans-fontface/fonts/LightItalic',
'open-sans/fonts/Regular': 'open-sans-fontface/fonts/Regular',
'open-sans/fonts/Semibold': 'open-sans-fontface/fonts/Semibold',
'open-sans/fonts/SemiboldItalic': 'open-sans-fontface/fonts/SemiboldItalic',
'open-sans/sass': 'open-sans-fontface/sass'
}
}
},
sass: {
dist: {
options: {
style: 'expanded'
},
files: {
'assets/open-sans/open-sans.css': 'assets/open-sans/open-sans.scss'
}
}
},
watch: {
sass: {
files: ['assets/open-sans/open-sans.scss'],
tasks: ['sass'],
options: {
spawn: false
}
}
},
});
// register tasks
grunt.registerTask('default', [ 'bowercopy' ]);
grunt.registerTask('update', [ 'bowercopy' ]);
};