我正在尝试将文件从一个文件夹复制到另一个文件夹。我的源文件夹有以下结构
//project-list-component
<div fxLayout="row wrap" fxLayoutGap="1em" fxLayoutAlign="center center" fxLayout.lt-sm="column">
<app-project-card *ngFor="let p of projects | async" [project]="p">
</app-project-card>
</div>
//project-list-component.css
app-project-card {
margin-top: 1em;
}
//project-card-component starts with md-card as root element, nothing special here
<md-card>
...
</md-card>
现在我的gulp任务如下
+ source
+ file1.txt
+ .bin
+ file2.txt
+ .ignore
此任务会跳过gulp.task("copy", function() {
gulp.src("./source/**/*", { base: "source" })
.pipe(gulp.dest("./dest/"));
});
文件夹和.bin
文件的复制。
如何更新我的任务以复制.ignore
文件夹和.bin
文件?
答案 0 :(得分:3)
你可以试试“dot:true”吗?
gulp.src("./source/**/*", { dot: true, base: "source" })
.pipe(gulp.dest("./dest/"))