Package Exports
- gulp-filenames
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-filenames) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
gulp-filenames
Filename gathering plugin for gulp
Usage
First, install gulp-filenames
as a development dependency:
npm install --save-dev gulp-filenames
Then, add it to your gulpfile.js
:
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
API
filenames([name])
name
Namespace the filenames
filenames.get([name], [what])
name
Get only these filenames ("all" to get everything)
what
"relative" or "full" or "path" for an array of filenames
"all" for an array of objects