I have following stucture of the project:
- _build/
- build-tools/
- gulpfile.js
- someFolder/
- excludeFolder/
- index.html
我想复制除_build
和'excludeFolder'目录以外的所有文件到_build/release
目录中。
我正在使用以下gulp任务:
gulp.src(['*',
'!_build/**/*',
'!build-tools/**/*',
'!excludeFolder/**/*'],{base:'..'})
.pipe(gulp.dest('_build/release'));
我该如何命令 Gulp 从上层根目录或者其他包含 gulpfile.js 的目录开始使用相对路径启动?