Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 26 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T13:22:01.000Z (over 1 year ago)
- Last Synced: 2024-11-20T02:38:21.930Z (about 1 month 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 ![npm (custom registry)](https://img.shields.io/npm/v/@gulp-plugin/collect?logo=npm) [![GitHub Package Registry version](https://img.shields.io/github/release/gulp-plugin/collect.svg?label=gpr&logo=github)](https://github.com/gulp-plugin/collect/packages/)
[![Build](https://github.com/gulp-plugin/collect/actions/workflows/node.js.yml/badge.svg)](https://github.com/gulp-plugin/collect/actions/workflows/node.js.yml) [![Coverage Status](https://coveralls.io/repos/github/gulp-plugin/collect/badge.svg?branch=master)](https://coveralls.io/github/gulp-plugin/collect?branch=master) [![dependencies Status](https://david-dm.org/gulp-plugin/collect/status.svg)](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