use print to show files included
This commit is contained in:
parent
7c9a1036f7
commit
27fb356c0d
10
gulpfile.js
10
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'])
|
||||
|
|
Loading…
Reference in New Issue