"use strict";

const gulp = require('gulp'),
    rename = require('gulp-rename'),

    fonts = {
        application: application,
    };

module.exports = fonts;


function application() {
    const src = [
        'node_modules/font-awesome/fonts/*.*',
        'node_modules/footable/css/fonts/*.*',
        'app/static/fonts/*.*'
    ];
    const dest = 'app/static/vendor/fonts/.';

    /** FooTable need special folder for his fonts*/
    /** if need, please refactor this*/
    gulp.src('node_modules/footable/css/fonts/*.*')
        .pipe(gulp.dest('app/static/vendor/css/fonts/.'));

    // Same, but to boostsrap
    // if need, please refactor this
    gulp.src('bower_components/bootstrap-sass/assets/fonts/bootstrap/*.*')
        .pipe(gulp.dest('app/static/vendor/fonts/bootstrap/.'));

    return gulp
        .src(src)
        .pipe(rename({
            dirname: ''
        }))
        .pipe(gulp.dest(dest))
};
"use strict";

const gulp = require('gulp'),
    rename = require('gulp-rename'),

    fonts = {
        application: application,
    };

module.exports = fonts;


function application() {
    const src = [
        'node_modules/font-awesome/fonts/*.*',
        'node_modules/footable/css/fonts/*.*',
        'app/static/fonts/*.*'
    ];
    const dest = 'app/static/vendor/fonts/.';

    /** FooTable need special folder for his fonts*/
    /** if need, please refactor this*/
    gulp.src('node_modules/footable/css/fonts/*.*')
        .pipe(gulp.dest('app/static/vendor/css/fonts/.'));

    // Same, but to boostsrap
    // if need, please refactor this
    gulp.src('node_modules/bootstrap-sass/assets/fonts/bootstrap/*.*')
        .pipe(gulp.dest('app/static/vendor/fonts/bootstrap/.'));

    return gulp
        .src(src)
        .pipe(rename({
            dirname: ''
        }))
        .pipe(gulp.dest(dest))
};
Fix copy fonts error