This repository has been archived by the owner on Dec 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
71 lines (57 loc) · 1.89 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
71
(function() {
'use strict';
// Main Grunt section ------------------------------------------------------
module.exports = function(grunt) {
// Load dependencies ---------------------------------------------------
require('time-grunt')(grunt);
// Project configuration -----------------------------------------------
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
compass: {
compile: {
options: {
}
}
},
webfont: {
icons: {
src: 'svgs/*.svg',
dest: 'fonts/icons',
destCss: 'sass',
options: {
engine: 'node',
font: 'icons',
hashes: false,
htmlDemo: false,
template: 'template/template.css',
types: 'eot,woff,ttf,svg',
stylesheet: 'sass'
}
}
},
sass: {
compile: {
options: {
style: 'expanded'
},
files: {
'demo/main.css': 'sass/main.sass'
}
}
}
});
grunt.loadNpmTasks('grunt-webfont');
grunt.loadNpmTasks('grunt-contrib-sass');
// Tasks ---------------------------------------------------------------
grunt.registerTask(
'default',
'Default task: build',
['build']
);
grunt.registerTask(
'build',
'Compiles the icon font and generates a Sass file with the icon mixins',
['webfont', 'sass']
);
};
})();