@fsglob/watchdir

0.0.2 • Public • Published

@fsglob/watchdir

Install

npm i -D @fsglob/watchdir

Running CLI

npx watchdir -d ./src \
  --when "{,**/}* ; {,**/}*.sass" "make js" \
  --when "{,**/}*.sass" "make css" \
  --run "echo 'all when detected has finished'"

JavaScript API

import WatchDir from '@fsglob/watchdir'

new WatchDir('./src')
  .when('{,**/}* ; !{,**/}*.sass', () => console.log('js files changed') )
  .when('{,**/}*.sass', () => console.log('sass files changed') )
  .run( () => console.log('all when detected has finished) )

Readme

Keywords

Package Sidebar

Install

npm i @fsglob/watchdir

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

6.33 kB

Total Files

9

Last publish

Collaborators

  • jgermade