diff --git a/gulpfile.js b/gulpfile.js index 03c3daa..0ede873 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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'])