Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Repository files navigation

taskr-filter

Filter plugin for Taskr

NPMLicenseBuild StatusCoverage Status

Install

$ yarn add -D taskr taskr-filter

or

$ npm install --save-dev taskr taskr-filter

Usage

Function

exportdefaultfunction*(task){yieldtask.source(path.join(__dirname,'src/*')).filter((file)=>{// file.base// file.dir// file.datareturnfile.base.indexOf('.js')>1}).target('./dist')}

RegExp

exportdefaultfunction*(task){yieldtask.source(path.join(__dirname,'src/*')).filter(/\.js$/).target('./dist')}

Glob(s)

Uses multimatch, which supports multiple patterns

RegExp

exportdefaultfunction*(task){yieldtask.source(path.join(__dirname,'src/*')).filter('**/*.js').target('./dist')}

NOTE: RegExps and globs are tested against the full path. You will need to use globstars, and may want to restrict them to your workspace. For example, to match anything with 'ba', but only in a specified directory, use path.join(__dirname, 'ba*').

About

➖ Filter plugin for Taskr

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages