@trinitymirrordigital/dragonfly-find-files
v5.0.6-alpha.0
Published
> TODO: description
Downloads
83
Maintainers
Keywords
Readme
@trinitymirrordigital/dragonfly-find-files
A small package to find root JS & PUG files for webpack, designed to work with @trinitymirrordigital/webpack-config
Install
yarn add @trinitymirrordigital/dragonfly-find-files
Usage
const dragonflyFindFiles = require('@trinitymirrordigital/dragonfly-find-files');
const { entry } = await dragonflyFindFiles({
searchJs: 'src/**/*!(.spec).js', //glob pattern for JS
searchPug: 'src/**/*.pug', //glob pattern for PUG files
searchScss: 'src/**/!(_)*.scss', //glob pattern for SASS files
src: 'src', // root folder
repoName: 'a-repo',
});
Copyright (c) 2022 "Reach Shared Services Ltd"