刚开始使用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)
我至少如何查看gulp在幕后进行的调试工作?
谢谢
| 归档时间: |
|
| 查看次数: |
1506 次 |
| 最近记录: |