jeudi 26 mars 2015

Gulp.src does not consider base directory

I have following stucture of the project:



- _build/
- build-tools/
- gulpfile.js
- someFolder/
- excludeFolder/
- index.html


I want to copy all the files except _build and 'excludeFolder' dir to the _build/release directory.


I am using this gulp task:



gulp.src(['*',
'!_build/**/*',
'!build-tools/**/*',
'!excludeFolder/**/*'],{base:'..'})
.pipe(gulp.dest('_build/release'));


How can I command Gulp to start relative path from upper root directory, or any other directory that the gulfile.js is located?


Aucun commentaire:

Enregistrer un commentaire