20 lines
375 B
JavaScript
20 lines
375 B
JavaScript
|
const gulp = require('gulp')
|
||
|
const concat = require('gulp-concat')
|
||
|
const babel = require('gulp-babel')
|
||
|
|
||
|
function defaultTask(cb) {
|
||
|
cb()
|
||
|
}
|
||
|
|
||
|
function build(callback) {
|
||
|
gulp.src('src/**/*.js', { sourcemaps: true})
|
||
|
.pipe(babel())
|
||
|
.pipe(concat('bundle.js'))
|
||
|
.pipe(gulp.dest('dist/'), { sourcemaps: '.'})
|
||
|
callback()
|
||
|
}
|
||
|
|
||
|
exports.build = build
|
||
|
exports.default = defaultTask
|
||
|
|