Skip to content

Commit 7240e75

Browse files
author
Andrea Spacca
authored
Merge pull request #53 from dutchcoders/google-fonts
local google fonts
2 parents 1e04676 + 75fda08 commit 7240e75

7 files changed

Lines changed: 793 additions & 230 deletions

File tree

Gruntfile.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,27 @@ module.exports = function (grunt) {
2222

2323
grunt.initConfig({
2424
yeoman: yeomanConfig,
25+
googlefonts: {
26+
build: {
27+
options: {
28+
fontPath: 'dist/fonts/',
29+
httpPath: '../fonts/',
30+
cssFile: 'dist/fonts/fonts.css',
31+
fonts: [
32+
{
33+
family: 'Source Sans Pro',
34+
styles: [200, 300],
35+
subsets: ['latin', 'greek', 'cyrillic']
36+
},
37+
{
38+
family: 'Droid Sans Mono',
39+
styles: [400],
40+
subsets: ['latin', 'greek', 'cyrillic']
41+
},
42+
]
43+
}
44+
}
45+
},
2546
watch: {
2647
less: {
2748
files: ['<%= yeoman.app %>/styles/{,*/}*.less'],
@@ -305,6 +326,8 @@ module.exports = function (grunt) {
305326
});
306327

307328
grunt.loadNpmTasks('grunt-npm-command');
329+
grunt.loadNpmTasks('grunt-google-fonts');
330+
308331

309332
grunt.registerTask('serve', function (target) {
310333
if (target === 'dist') {
@@ -313,6 +336,7 @@ module.exports = function (grunt) {
313336

314337
grunt.task.run([
315338
'clean:server',
339+
'googlefonts',
316340
'less',
317341
'includes:server',
318342
'copy:server',
@@ -335,6 +359,7 @@ module.exports = function (grunt) {
335359

336360
grunt.registerTask('build', [
337361
'clean:dist',
362+
'googlefonts',
338363
'npm-command',
339364
'copy:server',
340365
'concurrent',

bindata_gen.go

Lines changed: 632 additions & 104 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)