From 9d070bd33c7197e89b03d0801fc358fddcd09591 Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 8 Aug 2014 17:09:25 +0200 Subject: [PATCH] some tasks depend on the bower task --- gulpfile.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 61038ca6..78b93807 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -25,10 +25,11 @@ gulp.task('sass', function() { return gulp.src(SRC_DIR + 'sass/app.scss').pipe(sass()).pipe(gulp.dest(TEMP_DIR + 'css')); }); -gulp.task('fonts', function() { - gulp.src(SRC_DIR + 'lib/font-awesome/font/fontawesome-webfont.*').pipe(gulp.dest(BUILD_DIR + 'font')); - gulp.src(SRC_DIR + 'lib/readabilicons/webfont/fonts/readabilicons-*').pipe(gulp.dest(BUILD_DIR + 'font')); - return gulp.src(SRC_DIR + 'lib/zocial/css/zocial-regular-*').pipe(gulp.dest(BUILD_DIR + 'font')); +gulp.task('fonts', ['bower'], function() { + var font_awesome = SRC_DIR + 'lib/font-awesome/font/fontawesome-webfont.*'; + var zocial = SRC_DIR + 'lib/zocial/css/zocial-regular-*'; + var readabilicons = SRC_DIR + 'lib/readabilicons/webfont/fonts/readabilicons-*'; + return gulp.src([font_awesome, zocial, readabilicons]).pipe(gulp.dest(BUILD_DIR + 'font')); }); gulp.task('template-cache', function() { @@ -39,7 +40,7 @@ gulp.task('template-cache', function() { return gulp.src(SRC_DIR + 'templates/**/*.html').pipe(templateCache(options)).pipe(gulp.dest(TEMP_DIR + 'js')); }); -gulp.task('build', ['images', 'sass', 'fonts', 'template-cache'], function() { +gulp.task('build', ['images', 'sass', 'fonts', 'template-cache', 'bower'], function() { var assets = useref.assets({ searchPath : [SRC_DIR, TEMP_DIR] });