use print to show files included

This commit is contained in:
Jakub Sokołowski 2018-10-16 17:19:54 -04:00
parent 7c9a1036f7
commit 27fb356c0d
1 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,8 @@ const gulp = require('gulp')
const babel = require('gulp-babel')
const concat = require('gulp-concat-util')
const clean = require('gulp-clean')
const debug = require('gulp-debug');
const nodemon = require('gulp-nodemon');
const print = require('gulp-print').default
const nodemon = require('gulp-nodemon')
gulp.task('devel', () => {
nodemon({
@ -12,7 +12,7 @@ gulp.task('devel', () => {
exec: 'babel-node'
})
.on('restart', () => { console.log('>> node restart') })
});
})
gulp.task('clean', () =>
gulp.src('dist/*').pipe(clean())
@ -20,10 +20,10 @@ gulp.task('clean', () =>
gulp.task('build', () =>
gulp.src('src/**/*.js')
//.pipe(debug({title: 'debug:'}))
.pipe(babel())
.pipe(print())
.pipe(concat.scripts('counter.js'))
.pipe(gulp.dest('dist/'))
)
gulp.task('default', ['clean', 'build']);
gulp.task('default', ['clean', 'build'])