What is this?
This package will take a directory (you give it) and scan recursively. The result is the entires directory structure under given one.
Example: if your project folder consists of this
projet root
|app
|component
|action
|reducer
|css
|image
webpack-directory-scan
will get you something like below
let directorMapped = dirScan console //output [ 'app' 'app/component' 'app/component/action' 'app/component/reducer' 'css' 'image'
Installation
npm i --save-dev webpack-directory-scan
Usage
dirScan
./
is to get all folders and sub folders of folders in root directory. By default this package will ignore node_modules
folder and .git
folder
Test
npm test