运行gulp不产生任何输出

Ric*_*joy 5 gulp

刚开始使用gulp,请阅读一些教程。我在Mac终端中...

我非常简单的gulpfile:

var gulp = require('gulp');
var scripts = 'scripts/*.js';

gulp.task('copy', function() {
  // place code for your default task here
  return gulp.src(scripts)
      .pipe(gulp.dest('build/js'));
});
Run Code Online (Sandbox Code Playgroud)

我在命令行上运行“ gulp复制”并获得一些看起来像在运行的输出,但是没有文件被复制:

Richards-MBP:gulp-test richardlovejoy$ gulp copy
[19:30:38] Using gulpfile /Work/gulp-test/gulpfile.js
[19:30:38] Starting 'copy'...
[19:30:38] Finished 'copy' after 27 ms
Run Code Online (Sandbox Code Playgroud)
  • 我在“脚本”文件夹中有2个js文件。
  • 我最初是从一个更复杂的gulp文件开始的,该文件也无法产生任何输出。
  • 我插入了gulp-debug,但它仅显示0个文件在管道中。
  • 在撰写本文时,运行最新版本的节点(5.2.0)。
  • 尝试了gulp --verbose,但它什么也没给我。

我至少如何查看gulp在幕后进行的调试工作?

谢谢