@gulp-plugin/collect
v1.0.4
Published
Register every file that has passed through a gulp stream.
Downloads
19
Maintainers
Readme
@gulp-plugin/collect
A JavaScript/TypeScript file gathering plugin for gulp
Installation
npm install --save-dev @gulp-plugin/collect
Usage
Then, add it to your gulpfile.js
:
const collect = require('@gulp-plugin/collect');
gulp.src('src/**/*.ts')
.pipe(collect('typescript'))
.pipe(gulp.dest('dist/'));
gulp.src('src/**/*.js')
.pipe(collect('javascript'))
.pipe(gulp.dest('dist/'));
const files = filenames.get('typescript') // ['a.ts','b.ts']
License
This project is licensed under the MIT License - see the LICENSE file for details