https://github.com/gulp-plugin/collect
A JavaScript/TypeScript file name gathering plugin for gulp.
https://github.com/gulp-plugin/collect
gulp gulp-filenames gulp-plugin
Last synced: 4 months ago
JSON representation
A JavaScript/TypeScript file name gathering plugin for gulp.
- Host: GitHub
- URL: https://github.com/gulp-plugin/collect
- Owner: gulp-plugin
- License: mit
- Created: 2019-06-01T22:45:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T13:22:01.000Z (almost 2 years ago)
- Last Synced: 2025-03-11T14:07:30.988Z (4 months ago)
- Topics: gulp, gulp-filenames, gulp-plugin
- Language: TypeScript
- Homepage:
- Size: 656 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @gulp-plugin/collect  [](https://github.com/gulp-plugin/collect/packages/)
[](https://github.com/gulp-plugin/collect/actions/workflows/node.js.yml) [](https://coveralls.io/github/gulp-plugin/collect?branch=master) [](https://david-dm.org/gulp-plugin/collect)
A JavaScript/TypeScript file gathering plugin for [gulp](https://github.com/gulpjs/gulp)
## Installation
```shell
npm install --save-dev @gulp-plugin/collect
```## Usage
Then, add it to your `gulpfile.js`:
```typescript
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](LICENSE) file for details