Register every filename that has passed through
npm install gulp-filenames> Filename gathering plugin for gulp
First, install gulp-filenames as a development dependency:
``shell`
npm install --save-dev gulp-filenames
Then, add it to your gulpfile.js:
`javascript
var filenames = require("gulp-filenames");
gulp.src("./src/*.coffee")
.pipe(filenames("coffeescript"))
.pipe(gulp.dest("./dist"));
gulp.src("./src/*.js")
.pipe(filenames("javascript"))
.pipe(gulp.dest("./dist"));
filenames.get("coffeescript") // ["a.coffee","b.coffee"]
// Do Something With it
``
#### name
Namespace the filenames. Do not use the name "all" which is reserved by gulp-filenames to retrieve all namespaces.
#### overrideMode (default: false)
override previous files when a new one passes through
#### name
Get only these filenames ("all" to get everything)
#### what
"relative" or "full" or "base" for an array of filenames
"all" for an array of objects
#### name
Forget the filenames stored in namespace "name" ("all" to forget all files). gulp-filenames does not clear a namespace between runs by design.
[npm-url]: https://npmjs.org/package/gulp-filenames
[npm-image]: https://badge.fury.io/js/gulp-filenames.png
[travis-url]: http://travis-ci.org/JohnyDays/gulp-filenames
[travis-image]: https://secure.travis-ci.org/JohnyDays/gulp-filenames.png?branch=master
[coveralls-url]: https://coveralls.io/r/JohnyDays/gulp-filenames
[coveralls-image]: https://coveralls.io/repos/JohnyDays/gulp-filenames/badge.png
[depstat-url]: https://david-dm.org/JohnyDays/gulp-filenames
[depstat-image]: https://david-dm.org/JohnyDays/gulp-filenames.png