This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGruntfile.js
78 lines (70 loc) · 1.83 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
72
73
74
75
76
77
78
module.exports = function(grunt) {
'use strict';
// configuração do projeto
var gruntConfig = {
pkg: grunt.file.readJSON('package.json'),
// Webfont task
// Generates scss file and font files from glyphs
webfont: {
icons: {
src: 'fonts/raicons/glifos/*.svg',
dest: 'fonts',
destCss : '_sass/helpers',
options: {
engine: 'node',
font: 'raicons',
hashes: false,
htmlDemo: false,
ligature: false,
stylesheet: 'scss',
template: 'fonts/raicons/templates/raicons-template.css',
templateOptions: {
classPrefix: 'raicon-',
baseClass: 'raicon'
}
}
}
},
pagespeed: {
options: {
nokey: true
},
desktop: {
options: {
url: "https://www.jotateles.com.br",
locale: "en_GB",
strategy: "desktop",
threshold: 80
}
},
mobile: {
options: {
url: "https://www.jotateles.com.br",
locale: "en_GB",
strategy: "mobile",
threshold: 80
}
}
}
// watch: {
// // sass: {
// // files: 'scss/*.scss',
// // tasks: ['clean:css','sass']
// // },
// fonts: {
// files: ['fonts/raicons/glifos/*.svg'],
// tasks: ['clean:fonts','webfont']
// }
// }
};
grunt.initConfig(gruntConfig);
// carregando plugins
// grunt.loadNpmTasks('grunt-contrib-watch');
// grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-webfont');
grunt.loadNpmTasks('grunt-pagespeed');
// grunt.loadNpmTasks('grunt-contrib-sass');
// tarefas
grunt.registerTask('default', ['webfont']);
grunt.registerTask('start', ['clean','webfont', 'sass']);
};