Adds generate-font command

This commit is contained in:
Javier Arce 2016-01-18 11:16:53 +01:00
parent 8ec136219a
commit c3713732c8
2 changed files with 11 additions and 2 deletions

View File

@ -15,6 +15,7 @@ module.exports = function (grunt) {
var baseTasks = [
'clean',
'shell:generateFont',
'sass',
'concat',
'cssmin',
@ -22,16 +23,21 @@ module.exports = function (grunt) {
'shell'
];
var generateFontTask = baseTasks.concat([
'shell:generateFont'
]);
var devTasks = baseTasks.concat([
'connect',
'watch:scss'
]);
grunt.event.on('watch', function (action, filepath) {
grunt.task.run('shell');
grunt.task.run('shell:style');
});
grunt.registerTask('dev', devTasks);
grunt.registerTask('generate-font', generateFontTask);
grunt.registerTask('build', baseTasks);
grunt.registerTask('default', baseTasks);
grunt.registerTask('publish', ['build', 'gh-pages']);

View File

@ -1,5 +1,8 @@
module.exports = {
dist: {
style: {
command: 'styleguide'
},
generateFont: {
command: 'gulp'
}
};