【发布时间】:2016-10-27 19:25:50
【问题描述】:
例如,我想遍历所有 src 文件并将每个文件移动到以文件名本身命名的文件夹中。
来自:
hello.js
omg.js
到:
hello/
hello.js
omg/
omg.js
我有这个任务:
gulp.src('/*.js')
.pipe(gulp.dest('/' + filename here.......));
我如何做到这一点?
【问题讨论】:
标签: javascript node.js file directory gulp