gulp.task('js-player', function() {
    return gulp.src(paths.src)
        .pipe(concat(paths.output_player))
        .pipe(fb.wrapModule(paths.index))
        .pipe(preprocess({context: { PLAYER: true }}))
        .pipe(gulp.dest(paths.output))
        ;
});
gulp.task('js-min', function() {
    return gulp.src(paths.src.concat(paths.editor))
        .pipe(concat(Path.basename(paths.output_min)))
        .pipe(fb.wrapModule(paths.index))
        .pipe(preprocess({context: { EDITOR: true, DEV: true }}))
        .pipe(uglify({
            compress: {
                dead_code: false,
                unused: false
            }
        }))
        .pipe(gulp.dest(Path.dirname(paths.output_min)))
        ;
});
gulp.task('js-dev', function() {
    return gulp.src(paths.src.concat(paths.editor))
        .pipe(jshint({
           multistr: true,
           smarttabs: false,
           loopfunc: true,
        }))
        .pipe(jshint.reporter(stylish))
        .pipe(concat(Path.basename(paths.output_dev)))
        .pipe(fb.wrapModule(paths.index))
        .pipe(preprocess({context: { EDITOR: true, DEBUG: true, DEV: true }}))
        .pipe(gulp.dest(Path.dirname(paths.output_dev)))
        ;
});