var gulp = require ('gulp'); var concat = require ('gulp-concat'); var babel = require ('gulp-babel'); gulp.task ('default', function () { var js = gulp.src ('./@salix/crud/**/routes.js') .pipe (concat ('salix.routes.js')) .pipe (babel ({presets: ['es2015']})) .pipe (gulp.dest ('./build/private')); });