gulpfile.js 484 Bytes
/**
 * Created by Techniv on 05/12/2016.
 */

const srcPath   = './lib/relative-placement.js';
const distPath  = './dist/';

var gulp    = require('gulp');
var babel   = require('gulp-babel');
var del     = require('del');

gulp.task('default', ['build']);

gulp.task('build',['clean'], ()=>{
    return gulp.src(srcPath)
        .pipe(babel({
            presets: ['es2015']
        }))
        .pipe(gulp.dest(distPath));
});

gulp.task('clean',() => {
    return del(distPath);
});