var gulp = require('gulp');
var paths = require('../paths');

// copy assets, configuration files and libraries to a temprary location for the HTTP server 
gulp.task('move', ['move:libs', 'move:config', 'move:assets']);

gulp.task('move:libs', function () {
    return  gulp.src('./app/libs/**/*')
        .pipe(gulp.dest(`${paths.output}libs`));
});

gulp.task('move:config', function () {
    return gulp.src('./app/config/*')
        .pipe(gulp.dest(`${paths.output}config`));
});

gulp.task('move:assets', function () {
    var srcPaths = [
        './app/**/*.json',
        './app/**/*.svg',
        './app/**/*.woff',
        './app/**/*.ttf',
        './app/**/*.png',
        './app/**/*.ico',
        './app/**/*.jpg',
        './app/**/*.gif',
        './app/**/*.eot',
        './app/system.config.js'
    ];

    return gulp.src(srcPaths)
        .pipe(gulp.dest(paths.output));
})

@@ -209,16 +209,35 @@
 :assets'
+, 'move:assets:bug'
 %5D);%0A%0Agul
@@ -906,9 +906,271 @@
 ut));%0A%7D)
+;%0A%0Agulp.task('move:assets:bug', function () %7B%0A   // TODO : this is a temporary solution%0A   // the scss compilation does not handle well fonts and images paths%0A   return gulp.src('app/assets/**/*.*', %7Bbase: 'app/'%7D)%0A       .pipe(gulp.dest('target/tmp/src/'));%0A%7D);
 %0A

fix fonts on npm start